Interface ClusterStateChangeFacility
-
public interface ClusterStateChangeFacility
Rhino extension facility that reports to a resource adaptor entity nodes on which it is activated or deactivated in the cluster.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_PROPERTY_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addStateChangeListener(ClusterStateChangeListener listener)
Add a state change listener.void
addStateChangeListener(ClusterStateChangeListenerV2 listener)
Add a v2 state change listener.void
removeStateChangeListener(ClusterStateChangeListener listener)
Remove a state change listener.void
removeStateChangeListener(ClusterStateChangeListenerV2 listener)
Remove a v2 state change listener.
-
-
-
Field Detail
-
CONFIG_PROPERTY_NAME
static final String CONFIG_PROPERTY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
addStateChangeListener
void addStateChangeListener(ClusterStateChangeListener listener)
Add a state change listener.
If the listener has not already been added then
clusterStateChange
will be immediately invoked on it to notify the listener of the current cluster state. In this instance the joined set will be equal to the running set.Typically this method would be called in
raConfigure(ConfigProperties)
orraActive()
- Parameters:
listener
- the state change listener
-
addStateChangeListener
void addStateChangeListener(ClusterStateChangeListenerV2 listener)
Add a v2 state change listener.
If the listener has not already been added then
clusterStateChange
will be immediately invoked on it to notify the listener of the current cluster state. In this instance the joined set will be equal to the running set.Typically this method would be called in
raConfigure(ConfigProperties)
orraActive()
.- Parameters:
listener
- the state change listener.- Since:
- Rhino 2.6.1
-
removeStateChangeListener
void removeStateChangeListener(ClusterStateChangeListener listener)
Remove a state change listener.
This method would typically be called in
raUnconfigure()
,raStopping()
, orraInactive()
- Parameters:
listener
-
-
removeStateChangeListener
void removeStateChangeListener(ClusterStateChangeListenerV2 listener)
Remove a v2 state change listener.
This method would typically be called in
raUnconfigure()
,raStopping()
, orraInactive()
.- Parameters:
listener
- the state change listener.- Since:
- Rhino 2.6.1
-
-