public class RpcDispatcher extends MessageDispatcher implements ChannelListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
RpcDispatcher.Marshaller |
static interface |
RpcDispatcher.Marshaller2 |
static class |
RpcDispatcher.MarshallerAdapter
Used to provide a Marshaller2 interface to a Marshaller.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<ChannelListener> |
additionalChannelListeners |
protected MethodLookup |
method_lookup |
protected RpcDispatcher.Marshaller2 |
req_marshaller
Marshaller to marshall requests at the caller and unmarshal requests at the receiver(s)
|
protected RpcDispatcher.Marshaller2 |
rsp_marshaller
Marshaller to marshal responses at the receiver(s) and unmarshal responses at the caller
|
protected Object |
server_obj |
adapter, channel, corr, handler, hardware_multicast_supported, id, local_addr, log, members, membership_listener, msg_listener, prot_adapter, req_handler, transport_adapter| Constructor and Description |
|---|
RpcDispatcher() |
RpcDispatcher(Channel channel,
MessageListener l,
MembershipListener l2,
Object server_obj) |
RpcDispatcher(Channel channel,
MessageListener l,
MembershipListener l2,
Object server_obj,
boolean deadlock_detection)
Deprecated.
|
RpcDispatcher(Channel channel,
MessageListener l,
MembershipListener l2,
Object server_obj,
boolean deadlock_detection,
boolean concurrent_processing)
Deprecated.
|
RpcDispatcher(PullPushAdapter adapter,
Serializable id,
MessageListener l,
MembershipListener l2,
Object server_obj)
Deprecated.
|
cast, castMessage, castMessage, castMessage, castMessage, castMessageWithFuture, castMessageWithFuture, createRequestCorrelator, done, getChannel, getConcurrentProcessing, getDeadlockDetection, getMembers, getMessageListener, getProtocolAdapter, installUpHandler, send, sendMessage, sendMessage, sendMessageWithFuture, sendMessageWithFuture, setChannel, setConcurrentProcessing, setDeadlockDetection, setMembershipListener, setMessageListener, setRequestHandler, start, stopprotected Object server_obj
protected RpcDispatcher.Marshaller2 req_marshaller
protected RpcDispatcher.Marshaller2 rsp_marshaller
protected final List<ChannelListener> additionalChannelListeners
protected MethodLookup method_lookup
public RpcDispatcher()
public RpcDispatcher(Channel channel, MessageListener l, MembershipListener l2, Object server_obj)
@Deprecated public RpcDispatcher(Channel channel, MessageListener l, MembershipListener l2, Object server_obj, boolean deadlock_detection)
@Deprecated public RpcDispatcher(Channel channel, MessageListener l, MembershipListener l2, Object server_obj, boolean deadlock_detection, boolean concurrent_processing)
@Deprecated public RpcDispatcher(PullPushAdapter adapter, Serializable id, MessageListener l, MembershipListener l2, Object server_obj)
public static String getName()
public RpcDispatcher.Marshaller getRequestMarshaller()
public void setRequestMarshaller(RpcDispatcher.Marshaller m)
public RpcDispatcher.Marshaller getResponseMarshaller()
public void setResponseMarshaller(RpcDispatcher.Marshaller m)
public RpcDispatcher.Marshaller getMarshaller()
public void setMarshaller(RpcDispatcher.Marshaller m)
public Object getServerObject()
public void setServerObject(Object server_obj)
public MethodLookup getMethodLookup()
public void setMethodLookup(MethodLookup method_lookup)
@Deprecated public RspList callRemoteMethods(Vector<Address> dests, String method_name, Object[] args, Class[] types, int mode, long timeout)
@Deprecated public RspList callRemoteMethods(Vector<Address> dests, String method_name, Object[] args, Class[] types, int mode, long timeout, boolean use_anycasting)
@Deprecated public RspList callRemoteMethods(Vector<Address> dests, String method_name, Object[] args, Class[] types, int mode, long timeout, boolean use_anycasting, RspFilter filter)
public RspList callRemoteMethods(Collection<Address> dests, String method_name, Object[] args, Class[] types, RequestOptions options)
@Deprecated public RspList callRemoteMethods(Vector<Address> dests, String method_name, Object[] args, String[] signature, int mode, long timeout)
@Deprecated public RspList callRemoteMethods(Vector<Address> dests, String method_name, Object[] args, String[] signature, int mode, long timeout, boolean use_anycasting)
@Deprecated public RspList callRemoteMethods(Vector<Address> dests, MethodCall method_call, int mode, long timeout)
public RspList callRemoteMethods(Collection<Address> dests, MethodCall method_call, RequestOptions options)
dests - A list of addresses. If null, the method will be invoked on all cluster membersmethod_call - The method (plus args) to be invokedoptions - A collection of call options, e.g. sync versus async, timeout etc@Deprecated public NotifyingFuture<RspList> callRemoteMethodsWithFuture(Vector<Address> dests, MethodCall method_call, int mode, long timeout, boolean use_anycasting, boolean oob, RspFilter filter)
@Deprecated public NotifyingFuture<RspList> callRemoteMethodsWithFuture(Vector<Address> dests, MethodCall method_call)
public NotifyingFuture<RspList> callRemoteMethodsWithFuture(Collection<Address> dests, MethodCall method_call, RequestOptions options)
@Deprecated public Object callRemoteMethod(Address dest, String method_name, Object[] args, Class[] types, int mode, long timeout) throws Throwable
Throwablepublic Object callRemoteMethod(Address dest, String method_name, Object[] args, Class[] types, RequestOptions options) throws Throwable
Throwable@Deprecated public Object callRemoteMethod(Address dest, String method_name, Object[] args, String[] signature, int mode, long timeout) throws Throwable
Throwable@Deprecated public Object callRemoteMethod(Address dest, MethodCall method_call, int mode, long timeout) throws Throwable
Throwable@Deprecated public Object callRemoteMethod(Address dest, MethodCall method_call, int mode, long timeout, boolean oob) throws Throwable
Throwable@Deprecated public Object callRemoteMethod(Address dest, MethodCall call) throws Throwable
Throwablepublic Object callRemoteMethod(Address dest, MethodCall call, RequestOptions options) throws Throwable
Throwable@Deprecated public <T> NotifyingFuture<T> callRemoteMethodWithFuture(Address dest, MethodCall method_call, int mode, long timeout, boolean oob) throws Throwable
Throwable@Deprecated public <T> NotifyingFuture<T> callRemoteMethodWithFuture(Address dest, MethodCall call) throws Throwable
Throwablepublic <T> NotifyingFuture<T> callRemoteMethodWithFuture(Address dest, MethodCall call, RequestOptions options) throws Throwable
Throwableprotected void correlatorStarted()
correlatorStarted in class MessageDispatcherpublic Object handle(Message req)
handle in interface RequestHandlerhandle in class MessageDispatcherpublic boolean addChannelListener(ChannelListener l)
public boolean removeChannelListener(ChannelListener l)
public void channelConnected(Channel channel)
channelConnected in interface ChannelListenerpublic void channelDisconnected(Channel channel)
channelDisconnected in interface ChannelListenerpublic void channelClosed(Channel channel)
channelClosed in interface ChannelListenerpublic void channelShunned()
channelShunned in interface ChannelListenerpublic void channelReconnected(Address new_addr)
channelReconnected in interface ChannelListenerCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.