|
JBoss EJB client 1.0.3.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb.client.ClusterContext
public final class ClusterContext
A ClusterContext
keeps track of a specific cluster and the ClusterNode
s
in that cluster. A ClusterContext
is always associated with a EJBClientContext
Method Summary | |
---|---|
void |
addClusterNode(String nodeName,
ClusterNodeManager clusterNodeManager)
Adds a cluster node and the ClusterNodeManager associated with that node, to this cluster context |
String |
getClusterName()
|
EJBClientContext |
getEJBClientContext()
|
void |
receiverContextClosed(EJBReceiverContext receiverContext)
A callback method which will be invoked when the receiverContext
is closed. |
void |
registerEJBReceiver(EJBReceiver receiver)
Register a EJBReceiver with this cluster context |
void |
removeAllClusterNodes()
Removes all previously associated cluster node(s), if any, from this cluster context |
void |
removeClusterNode(String nodeName)
Removes a previously assoicated cluster node, if any, from this cluster context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getClusterName()
public EJBClientContext getEJBClientContext()
public void addClusterNode(String nodeName, ClusterNodeManager clusterNodeManager)
ClusterNodeManager
associated with that node, to this cluster context
nodeName
- The cluster node nameclusterNodeManager
- The cluster node manager for that nodepublic void removeClusterNode(String nodeName)
nodeName
- The node namepublic void removeAllClusterNodes()
public void registerEJBReceiver(EJBReceiver receiver)
EJBReceiver
with this cluster context
receiver
- The EJB receiver for that nodepublic void receiverContextClosed(EJBReceiverContext receiverContext)
receiverContext
is closed. This method can do the necessary cleanup (if any) of resources associated with the
receiver context
receiverContext
- The receiver context which was closed
|
JBoss EJB client 1.0.3.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |