Interface ClusterStateChangeListener
-
public interface ClusterStateChangeListener
Listener interface implemented by resource adaptors to receive cluster state change callbacks.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clusterStateChange(int[] running, int[] joined, int[] left)
Notification that the cluster has changed state with respect to the resource adaptor entity that attached the listener.
-
-
-
Method Detail
-
clusterStateChange
void clusterStateChange(int[] running, int[] joined, int[] left)
Notification that the cluster has changed state with respect to the resource adaptor entity that attached the listener. This callback has slightly different semantics depending on whether the node is running in SAVANNA or POOL clustering mode as described below. In either case, the
running
set is a superset of thejoined
set and has an empty intersection with theleft
set.Rhino Savanna Clustering Mode A
running
node is a node that satisfies the following conditions:-
the node is a member of the cluster’s primary component
-
the resource adaptor entity is in the Active state on the node
-
the SLEE has an actual state of Running on the node
A resource adaptor entity will leave the
running
state on a node if the actual state of the resource adaptor entity or the SLEE transitions to Stopping on that node.Rhino Pool Clustering Mode A
running
node is a node that satisfies the following conditions:-
the node is an OPERATIONAL live (or assumed live) member of the pool
-
the SLEE has an actual state of Running on the node
A resource adaptor entity will leave the
running
state on a node if the actual state of the SLEE transitions to Stopping on that node. The actual state of the resource adaptor entity itself is ignored in pool mode.- Parameters:
running
- the current set of cluster nodes where the resource adaptor entity is runningjoined
- the set of nodes that previously did not satisfy the conditions required to be in therunning
set but now doleft
- the set of nodes that previously did satisfy the conditions required to be in therunning
set but now don’t
-
-
-