public abstract class ActiveInactiveFilter extends java.lang.Object implements RedundancyStateListener
ActivityLevel
transitions from:
ActiveInactiveFilter
is your man.Constructor and Description |
---|
ActiveInactiveFilter(ActivityLevel initialLevel) |
Modifier and Type | Method and Description |
---|---|
void |
redundancyConnStatusChanged(ClusterPeerConnectionStatus status)
Called when the connection state between this node and the other changes- on connect and disconnect.
|
void |
redundancyStateChanged(RedundancyState newState)
Called when the node's "redundancy state" changes - ie, its activity level.
|
abstract void |
transitionToActive(RedundancyState redundancyState)
|
abstract void |
transitionToInactive(RedundancyState redundancyState)
|
public ActiveInactiveFilter(ActivityLevel initialLevel)
public void redundancyStateChanged(RedundancyState newState)
RedundancyStateListener
redundancyStateChanged
in interface RedundancyStateListener
public void redundancyConnStatusChanged(ClusterPeerConnectionStatus status)
RedundancyStateListener
redundancyConnStatusChanged
in interface RedundancyStateListener
public abstract void transitionToActive(RedundancyState redundancyState)
ActivityLevel
has transitioned from not-ActivityLevel.Active
to
ActivityLevel.Active
.
Do some startup stuff maybe!
This call occurs while synchronized on ActiveInactiveFilter.this
.
redundancyState
- The RedundancyState
that caused this transition.public abstract void transitionToInactive(RedundancyState redundancyState)
ActivityLevel
has transitioned from ActivityLevel.Active
to
not-ActivityLevel.Active
.
Do some shutdown stuff maybe!
This call occurs while synchronized on ActiveInactiveFilter.this
.
redundancyState
- The RedundancyState
that caused this transition.