Class ActiveInactiveFilter
java.lang.Object
com.inductiveautomation.ignition.gateway.redundancy.util.ActiveInactiveFilter
- All Implemented Interfaces:
RedundancyStateListener
,EventListener
Only care about doing something when the
ActivityLevel
transitions from:
- !Active => Active
- Active =>!Active
ActiveInactiveFilter
is your man.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
ActiveInactiveFilter
-
-
Method Details
-
redundancyStateChanged
Description copied from interface:RedundancyStateListener
Called when the node's "redundancy state" changes - ie, its activity level.- Specified by:
redundancyStateChanged
in interfaceRedundancyStateListener
-
redundancyConnStatusChanged
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
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
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.
-