Class ActiveInactiveFilter
- java.lang.Object
-
- com.inductiveautomation.ignition.gateway.redundancy.util.ActiveInactiveFilter
-
- All Implemented Interfaces:
RedundancyStateListener
,java.util.EventListener
public abstract class ActiveInactiveFilter extends java.lang.Object implements RedundancyStateListener
Only care about doing something when theActivityLevel
transitions from:- !Active => Active
- Active =>!Active
ActiveInactiveFilter
is your man.
-
-
Constructor Summary
Constructors Constructor Description ActiveInactiveFilter(ActivityLevel initialLevel)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
ActiveInactiveFilter
public ActiveInactiveFilter(ActivityLevel initialLevel)
-
-
Method Detail
-
redundancyStateChanged
public void redundancyStateChanged(RedundancyState newState)
Description copied from interface:RedundancyStateListener
Called when the node's "redundancy state" changes - ie, its activity level.- Specified by:
redundancyStateChanged
in interfaceRedundancyStateListener
-
redundancyConnStatusChanged
public void redundancyConnStatusChanged(ClusterPeerConnectionStatus status)
Description copied from interface:RedundancyStateListener
Called when the connection state between this node and the other changes- on connect and disconnect.- Specified by:
redundancyConnStatusChanged
in interfaceRedundancyStateListener
-
transitionToActive
public abstract void transitionToActive(RedundancyState redundancyState)
ActivityLevel
has transitioned from not-ActivityLevel.Active
toActivityLevel.Active
. Do some startup stuff maybe!This call occurs while synchronized on
ActiveInactiveFilter.this
.- Parameters:
redundancyState
- TheRedundancyState
that caused this transition.
-
transitionToInactive
public abstract void transitionToInactive(RedundancyState redundancyState)
ActivityLevel
has transitioned fromActivityLevel.Active
to not-ActivityLevel.Active
. Do some shutdown stuff maybe!This call occurs while synchronized on
ActiveInactiveFilter.this
.- Parameters:
redundancyState
- TheRedundancyState
that caused this transition.
-
-