All Packages Class Hierarchy This Package Previous Next Index
Class JavaGroups.RpcDispatcher
java.lang.Object
|
+----JavaGroups.JavaStack.Protocol
|
+----JavaGroups.MessageDispatcher
|
+----JavaGroups.RpcDispatcher
- public class RpcDispatcher
- extends MessageDispatcher
- implements ChannelListener
Dispatches and receives remote group method calls. Is the equivalent of RpcProtocol
on the application rather than protocol level.
-
RpcDispatcher(Channel, MessageListener, MembershipListener, Object)
-
-
CallRemoteMethod(Object, MethodCall, int, long)
-
-
CallRemoteMethod(Object, String, int, long)
-
-
CallRemoteMethod(Object, String, Object, int, long)
-
-
CallRemoteMethod(Object, String, Object, Object, int, long)
-
-
CallRemoteMethod(Object, String, Object, Object, Object, int, long)
-
-
CallRemoteMethods(Vector, MethodCall, int, long)
-
-
CallRemoteMethods(Vector, String, int, long)
-
-
CallRemoteMethods(Vector, String, Object, int, long)
-
-
CallRemoteMethods(Vector, String, Object, Object, int, long)
-
-
CallRemoteMethods(Vector, String, Object, Object, Object, int, long)
-
-
CastMessage(Vector, Message, int, long)
- Cast a message to all members, and wait for
mode responses.
-
ChannelClosed(Channel)
-
-
ChannelConnected(Channel)
-
-
ChannelDisconnected(Channel)
-
-
GetName()
-
-
Handle(Message)
- Message contains MethodCall.
-
SendMessage(Message, int, long)
- Sends a message to a single member (destination = msg.dest) and returns the response.
RpcDispatcher
public RpcDispatcher(Channel channel,
MessageListener l,
MembershipListener l2,
Object server_obj)
GetName
public String GetName()
- Overrides:
- GetName in class MessageDispatcher
CastMessage
public RspList CastMessage(Vector dests,
Message msg,
int mode,
long timeout)
- Cast a message to all members, and wait for
mode responses.
- Overrides:
- CastMessage in class MessageDispatcher
SendMessage
public Object SendMessage(Message msg,
int mode,
long timeout) throws Timeout, Suspected
- Sends a message to a single member (destination = msg.dest) and returns the response.
- Overrides:
- SendMessage in class MessageDispatcher
CallRemoteMethods
public RspList CallRemoteMethods(Vector dests,
String method_name,
int mode,
long timeout)
CallRemoteMethods
public RspList CallRemoteMethods(Vector dests,
String method_name,
Object arg1,
int mode,
long timeout)
CallRemoteMethods
public RspList CallRemoteMethods(Vector dests,
String method_name,
Object arg1,
Object arg2,
int mode,
long timeout)
CallRemoteMethods
public RspList CallRemoteMethods(Vector dests,
String method_name,
Object arg1,
Object arg2,
Object arg3,
int mode,
long timeout)
CallRemoteMethods
public RspList CallRemoteMethods(Vector dests,
MethodCall method_call,
int mode,
long timeout)
CallRemoteMethod
public Object CallRemoteMethod(Object dest,
String method_name,
int mode,
long timeout) throws Timeout, Suspected
CallRemoteMethod
public Object CallRemoteMethod(Object dest,
String method_name,
Object arg1,
int mode,
long timeout) throws Timeout, Suspected
CallRemoteMethod
public Object CallRemoteMethod(Object dest,
String method_name,
Object arg1,
Object arg2,
int mode,
long timeout) throws Timeout, Suspected
CallRemoteMethod
public Object CallRemoteMethod(Object dest,
String method_name,
Object arg1,
Object arg2,
Object arg3,
int mode,
long timeout) throws Timeout, Suspected
CallRemoteMethod
public Object CallRemoteMethod(Object dest,
MethodCall method_call,
int mode,
long timeout) throws Timeout, Suspected
Handle
public Object Handle(Message req)
- Message contains MethodCall. Execute it against *this* object and return result.
Use MethodCall.Invoke() to do this. Return result.
- Overrides:
- Handle in class MessageDispatcher
ChannelConnected
public void ChannelConnected(Channel channel)
ChannelDisconnected
public void ChannelDisconnected(Channel channel)
ChannelClosed
public void ChannelClosed(Channel channel)
All Packages Class Hierarchy This Package Previous Next Index