org.jboss.ha.framework.interfaces
Interface HARMIServer

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
HARMIServerImpl (src)

public interface HARMIServer
extends java.rmi.Remote

When using HA-RMI, the RMI communication end-point on the server-side is an instance of this class. All invocations are sent through this servant that will route the call to the appropriate object and call the appropriate Java method.


Field Summary
static java.util.Hashtable rmiServers
           
 
Method Summary
 java.lang.Object getLocal()
          Get local stub for this service.
 java.util.List getReplicants()
          Returns a list of node stubs that are current replica of this service.
 HARMIResponse (src) invoke(long tag, MarshalledInvocation (src)  mi)
          Performs an invocation through this HA-RMI for the target object hidden behind it.
 

Field Detail

rmiServers

public static final java.util.Hashtable rmiServers
Method Detail

invoke

public HARMIResponse (src)  invoke(long tag,
                            MarshalledInvocation (src)  mi)
                     throws java.lang.Exception
Performs an invocation through this HA-RMI for the target object hidden behind it.

Throws:
java.lang.Exception

getReplicants

public java.util.List getReplicants()
                             throws java.lang.Exception
Returns a list of node stubs that are current replica of this service.

Throws:
java.lang.Exception

getLocal

public java.lang.Object getLocal()
                          throws java.lang.Exception
Get local stub for this service.

Throws:
java.lang.Exception