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.


Constructor Index

 o RpcDispatcher(Channel, MessageListener, MembershipListener, Object)

Method Index

 o CallRemoteMethod(Object, MethodCall, int, long)
 o CallRemoteMethod(Object, String, int, long)
 o CallRemoteMethod(Object, String, Object, int, long)
 o CallRemoteMethod(Object, String, Object, Object, int, long)
 o CallRemoteMethod(Object, String, Object, Object, Object, int, long)
 o CallRemoteMethods(Vector, MethodCall, int, long)
 o CallRemoteMethods(Vector, String, int, long)
 o CallRemoteMethods(Vector, String, Object, int, long)
 o CallRemoteMethods(Vector, String, Object, Object, int, long)
 o CallRemoteMethods(Vector, String, Object, Object, Object, int, long)
 o CastMessage(Vector, Message, int, long)
Cast a message to all members, and wait for mode responses.
 o ChannelClosed(Channel)
 o ChannelConnected(Channel)
 o ChannelDisconnected(Channel)
 o GetName()
 o Handle(Message)
Message contains MethodCall.
 o SendMessage(Message, int, long)
Sends a message to a single member (destination = msg.dest) and returns the response.

Constructors

 o RpcDispatcher
 public RpcDispatcher(Channel channel,
                      MessageListener l,
                      MembershipListener l2,
                      Object server_obj)

Methods

 o GetName
 public String GetName()
Overrides:
GetName in class MessageDispatcher
 o 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
 o 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
 o CallRemoteMethods
 public RspList CallRemoteMethods(Vector dests,
                                  String method_name,
                                  int mode,
                                  long timeout)
 o CallRemoteMethods
 public RspList CallRemoteMethods(Vector dests,
                                  String method_name,
                                  Object arg1,
                                  int mode,
                                  long timeout)
 o CallRemoteMethods
 public RspList CallRemoteMethods(Vector dests,
                                  String method_name,
                                  Object arg1,
                                  Object arg2,
                                  int mode,
                                  long timeout)
 o CallRemoteMethods
 public RspList CallRemoteMethods(Vector dests,
                                  String method_name,
                                  Object arg1,
                                  Object arg2,
                                  Object arg3,
                                  int mode,
                                  long timeout)
 o CallRemoteMethods
 public RspList CallRemoteMethods(Vector dests,
                                  MethodCall method_call,
                                  int mode,
                                  long timeout)
 o CallRemoteMethod
 public Object CallRemoteMethod(Object dest,
                                String method_name,
                                int mode,
                                long timeout) throws Timeout, Suspected
 o CallRemoteMethod
 public Object CallRemoteMethod(Object dest,
                                String method_name,
                                Object arg1,
                                int mode,
                                long timeout) throws Timeout, Suspected
 o CallRemoteMethod
 public Object CallRemoteMethod(Object dest,
                                String method_name,
                                Object arg1,
                                Object arg2,
                                int mode,
                                long timeout) throws Timeout, Suspected
 o CallRemoteMethod
 public Object CallRemoteMethod(Object dest,
                                String method_name,
                                Object arg1,
                                Object arg2,
                                Object arg3,
                                int mode,
                                long timeout) throws Timeout, Suspected
 o CallRemoteMethod
 public Object CallRemoteMethod(Object dest,
                                MethodCall method_call,
                                int mode,
                                long timeout) throws Timeout, Suspected
 o 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
 o ChannelConnected
 public void ChannelConnected(Channel channel)
 o ChannelDisconnected
 public void ChannelDisconnected(Channel channel)
 o ChannelClosed
 public void ChannelClosed(Channel channel)

All Packages  Class Hierarchy  This Package  Previous  Next  Index