|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ha.framework.server.HARMIServerImpl
This class is a server-side proxy for replicated RMI objects.
Nested Class Summary | |
class |
HARMIServerImpl.RefreshProxiesHATarget (src)
|
Field Summary | |
protected java.lang.Object |
handler
|
protected java.lang.Class |
intf
|
protected java.util.Map |
invokerMap
|
protected java.lang.String |
key
|
protected Logger (src) |
log
|
protected java.rmi.server.RemoteStub |
rmistub
|
protected java.lang.Object |
stub
|
protected HARMIServerImpl.RefreshProxiesHATarget (src) |
target
|
Fields inherited from interface org.jboss.ha.framework.interfaces.HARMIServer (src) |
rmiServers |
Constructor Summary | |
HARMIServerImpl(HAPartition (src) partition,
java.lang.String replicantName,
java.lang.Class intf,
java.lang.Object handler)
Create a new HARMIServer implementation that will act as a RMI end-point for a specific server. |
|
HARMIServerImpl(HAPartition (src) partition,
java.lang.String replicantName,
java.lang.Class intf,
java.lang.Object handler,
int port,
java.rmi.server.RMIClientSocketFactory csf,
java.rmi.server.RMIServerSocketFactory ssf)
|
|
HARMIServerImpl(HAPartition (src) partition,
java.lang.String replicantName,
java.lang.Class intf,
java.lang.Object handler,
int port,
java.rmi.server.RMIClientSocketFactory clientSocketFactory,
java.rmi.server.RMIServerSocketFactory serverSocketFactory,
java.net.InetAddress bindAddress)
|
Method Summary | |
java.lang.Object |
createHAStub(LoadBalancePolicy (src) policy)
Once a HARMIServer implementation exists, it is possible to ask for a stub that can, for example, be bound in JNDI for client use. |
void |
destroy()
|
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 clientViewId,
MarshalledInvocation (src) mi)
Performs an invocation through this HA-RMI for the target object hidden behind it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.Object handler
protected java.util.Map invokerMap
protected Logger (src) log
protected java.rmi.server.RemoteStub rmistub
protected java.lang.Object stub
protected java.lang.String key
protected java.lang.Class intf
protected HARMIServerImpl.RefreshProxiesHATarget (src) target
Constructor Detail |
public HARMIServerImpl(HAPartition (src) partition, java.lang.String replicantName, java.lang.Class intf, java.lang.Object handler, int port, java.rmi.server.RMIClientSocketFactory csf, java.rmi.server.RMIServerSocketFactory ssf) throws java.lang.Exception
public HARMIServerImpl(HAPartition (src) partition, java.lang.String replicantName, java.lang.Class intf, java.lang.Object handler, int port, java.rmi.server.RMIClientSocketFactory clientSocketFactory, java.rmi.server.RMIServerSocketFactory serverSocketFactory, java.net.InetAddress bindAddress) throws java.lang.Exception
public HARMIServerImpl(HAPartition (src) partition, java.lang.String replicantName, java.lang.Class intf, java.lang.Object handler) throws java.lang.Exception
partition
- HAPartition
(src) that will determine the cluster memberreplicantName
- Name of the service using this HARMIServerintf
- Class type under which should appear the RMI server dynamically builthandler
- Target object to which calls will be forwarded
java.lang.Exception
- Thrown if any exception occurs during call forwardingMethod Detail |
public java.lang.Object createHAStub(LoadBalancePolicy (src) policy)
policy
- LoadBalancePolicy
(src) implementation to ues on the client.
public void destroy()
public HARMIResponse (src) invoke(long clientViewId, MarshalledInvocation (src) mi) throws java.lang.Exception
HARMIServer (src)
invoke
in interface HARMIServer (src)
java.lang.Exception
public java.util.List getReplicants() throws java.lang.Exception
HARMIServer (src)
getReplicants
in interface HARMIServer (src)
java.lang.Exception
public java.lang.Object getLocal() throws java.lang.Exception
HARMIServer (src)
getLocal
in interface HARMIServer (src)
java.lang.Exception
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |