org.javagroups.stack
Class RpcProtocol

java.lang.Object
  |
  +--org.javagroups.stack.Protocol
        |
        +--org.javagroups.stack.MessageProtocol
              |
              +--org.javagroups.stack.RpcProtocol
All Implemented Interfaces:
RequestHandler
Direct Known Subclasses:
DEADLOCK, FLUSH, GMS, RpcProtocolEXAMPLE, STABLE, TOTAL_TOKEN

public class RpcProtocol
extends MessageProtocol

Base class for group RMC peer protocols.

Author:
Bela Ban

Field Summary
 
Fields inherited from class org.javagroups.stack.MessageProtocol
_corr, members
 
Fields inherited from class org.javagroups.stack.Protocol
down_handler, down_prot, down_queue, down_thread, down_thread_prio, observer, props, stack, up_handler, up_prot, up_queue, up_thread, up_thread_prio
 
Constructor Summary
RpcProtocol()
           
 
Method Summary
 java.lang.Object callRemoteMethod(Address dest, MethodCall method_call, int mode, long timeout)
           
 java.lang.Object callRemoteMethod(Address dest, java.lang.String method_name, int mode, long timeout)
           
 java.lang.Object callRemoteMethod(Address dest, java.lang.String method_name, java.lang.Object[] args, java.lang.Class[] types, int mode, long timeout)
           
 java.lang.Object callRemoteMethod(Address dest, java.lang.String method_name, java.lang.Object[] args, java.lang.String[] signature, int mode, long timeout)
           
 java.lang.Object callRemoteMethod(Address dest, java.lang.String method_name, java.lang.Object arg1, int mode, long timeout)
          Deprecated. this method results in an invalid method call if the argument is null
 java.lang.Object callRemoteMethod(Address dest, java.lang.String method_name, java.lang.Object arg1, java.lang.Object arg2, int mode, long timeout)
          Deprecated. this method results in an invalid method call if the argument is null
 java.lang.Object callRemoteMethod(Address dest, java.lang.String method_name, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, int mode, long timeout)
          Deprecated. this method results in an invalid method call if the argument is null
 java.lang.Object callRemoteMethod(Address dest, java.lang.String method_name, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, int mode, long timeout)
          Deprecated. this method results in an invalid method call if the argument is null
 java.lang.Object callRemoteMethod(Address dest, java.lang.String method_name, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5, int mode, long timeout)
          Deprecated. this method results in an invalid method call if the argument is null
 RspList callRemoteMethods(java.util.Vector dests, MethodCall method_call, int mode, long timeout)
           
 RspList callRemoteMethods(java.util.Vector dests, java.lang.String method_name, int mode, long timeout)
          Deprecated. this method results in an invalid method call if the argument is null
 RspList callRemoteMethods(java.util.Vector dests, java.lang.String method_name, java.lang.Object[] args, java.lang.Class[] types, int mode, long timeout)
           
 RspList callRemoteMethods(java.util.Vector dests, java.lang.String method_name, java.lang.Object[] args, java.lang.String[] signature, int mode, long timeout)
           
 RspList callRemoteMethods(java.util.Vector dests, java.lang.String method_name, java.lang.Object arg1, int mode, long timeout)
          Deprecated. this method results in an invalid method call if the argument is null
 RspList callRemoteMethods(java.util.Vector dests, java.lang.String method_name, java.lang.Object arg1, java.lang.Object arg2, int mode, long timeout)
          Deprecated. this method results in an invalid method call if the argument is null
 RspList callRemoteMethods(java.util.Vector dests, java.lang.String method_name, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, int mode, long timeout)
          Deprecated. this method results in an invalid method call if the argument is null
 RspList callRemoteMethods(java.util.Vector dests, java.lang.String method_name, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, int mode, long timeout)
          Deprecated. this method results in an invalid method call if the argument is null
 RspList callRemoteMethods(java.util.Vector dests, java.lang.String method_name, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5, int mode, long timeout)
          Deprecated. this method results in an invalid method call if the argument is null
 java.lang.String getName()
           
 java.lang.Object handle(Message req)
          Message contains MethodCall.
 boolean handleDownEvent(Event evt)
          Handle down event.
 boolean handleUpEvent(Event evt)
          Handle up event.
 
Methods inherited from class org.javagroups.stack.MessageProtocol
castMessage, down, sendMessage, start, stop, up, updateView
 
Methods inherited from class org.javagroups.stack.Protocol
destroy, getDownProtocol, getDownQueue, getProperties, getUpProtocol, getUpQueue, init, passDown, passUp, providedDownServices, providedUpServices, receiveDownEvent, receiveUpEvent, requiredDownServices, requiredUpServices, setDownProtocol, setObserver, setProperties, setPropertiesInternal, setProtocolStack, setUpProtocol, startDownHandler, startUpHandler, stopInternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RpcProtocol

public RpcProtocol()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in class Protocol

callRemoteMethods

public RspList callRemoteMethods(java.util.Vector dests,
                                 java.lang.String method_name,
                                 int mode,
                                 long timeout)
Deprecated. this method results in an invalid method call if the argument is null

See Also:
callRemoteMethods(Vector,MethodCall,int,long)

callRemoteMethods

public RspList callRemoteMethods(java.util.Vector dests,
                                 java.lang.String method_name,
                                 java.lang.Object arg1,
                                 int mode,
                                 long timeout)
Deprecated. this method results in an invalid method call if the argument is null

See Also:
callRemoteMethods(Vector,MethodCall,int,long)

callRemoteMethods

public RspList callRemoteMethods(java.util.Vector dests,
                                 java.lang.String method_name,
                                 java.lang.Object arg1,
                                 java.lang.Object arg2,
                                 int mode,
                                 long timeout)
Deprecated. this method results in an invalid method call if the argument is null

See Also:
callRemoteMethods(Vector,MethodCall,int,long)

callRemoteMethods

public RspList callRemoteMethods(java.util.Vector dests,
                                 java.lang.String method_name,
                                 java.lang.Object arg1,
                                 java.lang.Object arg2,
                                 java.lang.Object arg3,
                                 int mode,
                                 long timeout)
Deprecated. this method results in an invalid method call if the argument is null

See Also:
callRemoteMethods(Vector,MethodCall,int,long)

callRemoteMethods

public RspList callRemoteMethods(java.util.Vector dests,
                                 java.lang.String method_name,
                                 java.lang.Object arg1,
                                 java.lang.Object arg2,
                                 java.lang.Object arg3,
                                 java.lang.Object arg4,
                                 int mode,
                                 long timeout)
Deprecated. this method results in an invalid method call if the argument is null

See Also:
callRemoteMethods(Vector,MethodCall,int,long)

callRemoteMethods

public RspList callRemoteMethods(java.util.Vector dests,
                                 java.lang.String method_name,
                                 java.lang.Object arg1,
                                 java.lang.Object arg2,
                                 java.lang.Object arg3,
                                 java.lang.Object arg4,
                                 java.lang.Object arg5,
                                 int mode,
                                 long timeout)
Deprecated. this method results in an invalid method call if the argument is null

See Also:
callRemoteMethods(Vector,MethodCall,int,long)

callRemoteMethods

public RspList callRemoteMethods(java.util.Vector dests,
                                 java.lang.String method_name,
                                 java.lang.Object[] args,
                                 java.lang.Class[] types,
                                 int mode,
                                 long timeout)

callRemoteMethods

public RspList callRemoteMethods(java.util.Vector dests,
                                 java.lang.String method_name,
                                 java.lang.Object[] args,
                                 java.lang.String[] signature,
                                 int mode,
                                 long timeout)

callRemoteMethods

public RspList callRemoteMethods(java.util.Vector dests,
                                 MethodCall method_call,
                                 int mode,
                                 long timeout)

callRemoteMethod

public java.lang.Object callRemoteMethod(Address dest,
                                         java.lang.String method_name,
                                         int mode,
                                         long timeout)
                                  throws TimeoutException,
                                         SuspectedException
TimeoutException
SuspectedException

callRemoteMethod

public java.lang.Object callRemoteMethod(Address dest,
                                         java.lang.String method_name,
                                         java.lang.Object arg1,
                                         int mode,
                                         long timeout)
                                  throws TimeoutException,
                                         SuspectedException
Deprecated. this method results in an invalid method call if the argument is null

TimeoutException
SuspectedException
See Also:
callRemoteMethod(Address,MethodCall,int,long)

callRemoteMethod

public java.lang.Object callRemoteMethod(Address dest,
                                         java.lang.String method_name,
                                         java.lang.Object arg1,
                                         java.lang.Object arg2,
                                         int mode,
                                         long timeout)
                                  throws TimeoutException,
                                         SuspectedException
Deprecated. this method results in an invalid method call if the argument is null

TimeoutException
SuspectedException
See Also:
callRemoteMethod(Address,MethodCall,int,long)

callRemoteMethod

public java.lang.Object callRemoteMethod(Address dest,
                                         java.lang.String method_name,
                                         java.lang.Object arg1,
                                         java.lang.Object arg2,
                                         java.lang.Object arg3,
                                         int mode,
                                         long timeout)
                                  throws TimeoutException,
                                         SuspectedException
Deprecated. this method results in an invalid method call if the argument is null

TimeoutException
SuspectedException
See Also:
callRemoteMethod(Address,MethodCall,int,long)

callRemoteMethod

public java.lang.Object callRemoteMethod(Address dest,
                                         java.lang.String method_name,
                                         java.lang.Object arg1,
                                         java.lang.Object arg2,
                                         java.lang.Object arg3,
                                         java.lang.Object arg4,
                                         int mode,
                                         long timeout)
                                  throws TimeoutException,
                                         SuspectedException
Deprecated. this method results in an invalid method call if the argument is null

TimeoutException
SuspectedException
See Also:
callRemoteMethod(Address,MethodCall,int,long)

callRemoteMethod

public java.lang.Object callRemoteMethod(Address dest,
                                         java.lang.String method_name,
                                         java.lang.Object arg1,
                                         java.lang.Object arg2,
                                         java.lang.Object arg3,
                                         java.lang.Object arg4,
                                         java.lang.Object arg5,
                                         int mode,
                                         long timeout)
                                  throws TimeoutException,
                                         SuspectedException
Deprecated. this method results in an invalid method call if the argument is null

TimeoutException
SuspectedException
See Also:
callRemoteMethod(Address,MethodCall,int,long)

callRemoteMethod

public java.lang.Object callRemoteMethod(Address dest,
                                         java.lang.String method_name,
                                         java.lang.Object[] args,
                                         java.lang.Class[] types,
                                         int mode,
                                         long timeout)
                                  throws TimeoutException,
                                         SuspectedException
TimeoutException
SuspectedException

callRemoteMethod

public java.lang.Object callRemoteMethod(Address dest,
                                         java.lang.String method_name,
                                         java.lang.Object[] args,
                                         java.lang.String[] signature,
                                         int mode,
                                         long timeout)
                                  throws TimeoutException,
                                         SuspectedException
TimeoutException
SuspectedException

callRemoteMethod

public java.lang.Object callRemoteMethod(Address dest,
                                         MethodCall method_call,
                                         int mode,
                                         long timeout)
                                  throws TimeoutException,
                                         SuspectedException
TimeoutException
SuspectedException

handle

public java.lang.Object handle(Message req)
Message contains MethodCall. Execute it against *this* object and return result. Use MethodCall.invoke() to do this. Return result.

Specified by:
handle in interface RequestHandler
Overrides:
handle in class MessageProtocol

handleUpEvent

public boolean handleUpEvent(Event evt)
Handle up event. Return false if it should not be passed up the stack.

Overrides:
handleUpEvent in class MessageProtocol

handleDownEvent

public boolean handleDownEvent(Event evt)
Handle down event. Return false if it should not be passed down the stack.

Overrides:
handleDownEvent in class MessageProtocol


Copyright ? 2001,2002 www.javagroups.com . All Rights Reserved.