@Deprecated 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)
Deprecated.
Adds the cluster nodes managed by the
clusterNodeManagers , to this cluster context |
String |
getClusterName()
Deprecated.
|
Set<String> |
getConnectedAndDeployedNodes(EJBLocator locator)
Deprecated.
|
EJBClientContext |
getEJBClientContext()
Deprecated.
|
void |
receiverContextClosed(EJBReceiverContext receiverContext)
Deprecated.
A callback method which will be invoked when the
receiverContext
is closed. |
void |
registerEJBReceiver(EJBReceiver receiver)
Deprecated.
Register a
EJBReceiver with this cluster context |
void |
removeAllClusterNodes()
Deprecated.
Removes all previously associated cluster node(s), if any, from this cluster context
|
void |
removeClusterNode(String nodeName)
Deprecated.
Removes a previously assoicated cluster node, if any, from this cluster context.
|
public String getClusterName()
public EJBClientContext getEJBClientContext()
public Set<String> getConnectedAndDeployedNodes(EJBLocator locator)
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 © 2016 JBoss by Red Hat. All rights reserved.