public interface ClusterNodeSelector
EJBReceivercorresponding to the selected node will then be used to forward the invocations on a EJB. Typical usage of a
ClusterNodeSelectorinvolve load balancing of calls to various nodes in the cluster
totalAvailableNodes, as the target node for EJB invocations. The selector can decide whether to pick an already connected node (from the passed
connectedNodes) or decide to select a node to which a connection hasn't yet been established. If a node to which a connection hasn't been established, is selected then the cluster context will create a connection to it before letting the corresponding
EJBReceiverto handle the EJB invocation.
clusterName- The name of the cluster to which the nodes belong
connectedNodes- The cluster context auto-connects to only a maximum allowed limit of nodes. This
connectedNodesarray contains the node names to which a connection has been established. This can be an empty array but will not be null.
totalAvailableNodes- Total available nodes in the cluster. This even includes the connected nodes. This array will neither be empty nor null.
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.