public final class ClusterContext extends Object
ClusterContext
keeps track of a specific cluster and the ClusterNode
s
in that cluster. A ClusterContext
is always associated with a EJBClientContext
Modifier and Type | Method and Description |
---|---|
void |
addClusterNode(String nodeName,
ClusterNodeManager clusterNodeManager)
Deprecated.
Since 1.0.6.Final. Use
addClusterNodes(ClusterNodeManager...) instead |
void |
addClusterNodes(ClusterNodeManager... clusterNodeManagers)
Adds the cluster nodes managed by the
clusterNodeManagers , 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.
|
public String getClusterName()
public EJBClientContext getEJBClientContext()
public void addClusterNode(String nodeName, ClusterNodeManager clusterNodeManager)
addClusterNodes(ClusterNodeManager...)
insteadClusterNodeManager
associated with that node, to this cluster contextnodeName
- The cluster node nameclusterNodeManager
- The cluster node manager for that nodepublic void addClusterNodes(ClusterNodeManager... clusterNodeManagers)
clusterNodeManagers
, to this cluster contextclusterNodeManagers
- The cluster node managerspublic void removeClusterNode(String nodeName)
nodeName
- The node namepublic void removeAllClusterNodes()
public void registerEJBReceiver(EJBReceiver receiver)
EJBReceiver
with this cluster contextreceiver
- 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 contextreceiverContext
- The receiver context which was closedCopyright © 2012 JBoss by Red Hat. All Rights Reserved.