|
|||||||||||
PREV CLASS NEXT CLASS | 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
|
Field Summary | |
protected Object |
handler
|
protected Class |
intf
|
protected Map |
invokerMap
|
protected String |
key
|
protected org.jboss.logging.Logger |
log
|
protected RemoteStub |
rmistub
|
protected Object |
stub
|
protected HARMIServerImpl.RefreshProxiesHATarget |
target
|
Fields inherited from interface org.jboss.ha.framework.interfaces.HARMIServer |
rmiServers |
Constructor Summary | |
HARMIServerImpl(HAPartition partition,
String replicantName,
Class intf,
Object handler)
Create a new HARMIServer implementation that will act as a RMI end-point for a specific server. |
|
HARMIServerImpl(HAPartition partition,
String replicantName,
Class intf,
Object handler,
int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
|
|
HARMIServerImpl(HAPartition partition,
String replicantName,
Class intf,
Object handler,
int port,
RMIClientSocketFactory clientSocketFactory,
RMIServerSocketFactory serverSocketFactory,
InetAddress bindAddress)
|
Method Summary | |
Object |
createHAStub(LoadBalancePolicy 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()
|
Object |
getLocal()
Get local stub for this service. |
List |
getReplicants()
Returns a list of node stubs that are current replica of this service. |
HARMIResponse |
invoke(long clientViewId,
org.jboss.invocation.MarshalledInvocation 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 Object handler
protected Map invokerMap
protected org.jboss.logging.Logger log
protected RemoteStub rmistub
protected Object stub
protected String key
protected Class intf
protected HARMIServerImpl.RefreshProxiesHATarget target
Constructor Detail |
public HARMIServerImpl(HAPartition partition, String replicantName, Class intf, Object handler, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws Exception
public HARMIServerImpl(HAPartition partition, String replicantName, Class intf, Object handler, int port, RMIClientSocketFactory clientSocketFactory, RMIServerSocketFactory serverSocketFactory, InetAddress bindAddress) throws Exception
public HARMIServerImpl(HAPartition partition, String replicantName, Class intf, Object handler) throws Exception
partition
- HAPartition
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
Exception
- Thrown if any exception occurs during call forwardingMethod Detail |
public Object createHAStub(LoadBalancePolicy policy)
policy
- LoadBalancePolicy
implementation to ues on the client.
public void destroy()
public HARMIResponse invoke(long clientViewId, org.jboss.invocation.MarshalledInvocation mi) throws Exception
HARMIServer
invoke
in interface HARMIServer
Exception
public List getReplicants() throws Exception
HARMIServer
getReplicants
in interface HARMIServer
Exception
public Object getLocal() throws Exception
HARMIServer
getLocal
in interface HARMIServer
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |