public class MuxRpcDispatcher extends RpcDispatcher
Channel c = new JChannel(...);
c.setUpHandler(new MuxUpHandler());
RpcDispatcher d1 = new MuxRpcDispatcher((short) 1, c, ...);
RpcDispatcher d2 = new MuxRpcDispatcher((short) 2, c, ...);
c.connect(...);
RpcDispatcher.Marshaller
method_lookup, req_marshaller, rsp_marshaller, server_obj
channel, channel_listeners, corr, hardware_multicast_supported, local_addr, log, members, membership_listener, msg_listener, prot_adapter, req_handler
Constructor and Description |
---|
MuxRpcDispatcher(short scopeId) |
MuxRpcDispatcher(short scopeId,
Channel channel,
MessageListener messageListener,
MembershipListener membershipListener,
Object serverObject) |
MuxRpcDispatcher(short scopeId,
Channel channel,
MessageListener messageListener,
MembershipListener membershipListener,
Object serverObject,
MethodLookup method_lookup) |
Modifier and Type | Method and Description |
---|---|
protected <T> GroupRequest<T> |
cast(Collection<Address> dests,
Message msg,
RequestOptions options,
boolean blockForResults) |
protected RequestCorrelator |
createRequestCorrelator(Protocol transport,
RequestHandler handler,
Address localAddr) |
void |
start() |
void |
stop() |
callRemoteMethod, callRemoteMethod, callRemoteMethods, callRemoteMethods, callRemoteMethodsWithFuture, callRemoteMethodWithFuture, correlatorStarted, getMarshaller, getMethodLookup, getName, getRequestMarshaller, getResponseMarshaller, getServerObject, handle, setMarshaller, setMethodLookup, setRequestMarshaller, setResponseMarshaller, setServerObject
addChannelListener, castMessage, castMessageWithFuture, channelClosed, channelConnected, channelDisconnected, done, getChannel, getMessageListener, getProtocolAdapter, installUpHandler, removeChannelListener, sendMessage, sendMessageWithFuture, setChannel, setMembers, setMembershipListener, setMessageListener, setRequestHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
channelClosed, channelConnected, channelDisconnected
public MuxRpcDispatcher(short scopeId)
public MuxRpcDispatcher(short scopeId, Channel channel, MessageListener messageListener, MembershipListener membershipListener, Object serverObject)
public MuxRpcDispatcher(short scopeId, Channel channel, MessageListener messageListener, MembershipListener membershipListener, Object serverObject, MethodLookup method_lookup)
protected RequestCorrelator createRequestCorrelator(Protocol transport, RequestHandler handler, Address localAddr)
createRequestCorrelator
in class MessageDispatcher
public void start()
start
in class MessageDispatcher
public void stop()
stop
in class MessageDispatcher
protected <T> GroupRequest<T> cast(Collection<Address> dests, Message msg, RequestOptions options, boolean blockForResults) throws Exception
cast
in class MessageDispatcher
Exception
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.