Package io.aeron.cluster
Class NodeControl
java.lang.Object
io.aeron.cluster.NodeControl
Toggle control
NodeControl.ToggleStates for a cluster node such as NodeControl.ToggleState.REPLICATE_STANDBY_SNAPSHOT.
This can only be applied to individual nodes and does not apply across the cluster.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumToggle states for controlling the cluster node once it has entered the active state after initialising. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCounter type id for the control toggle. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AtomicCounterfindControlToggle(CountersReader counters, int clusterId) Find the control toggle counter or return null if not found.static voidMain method for launching the process.
-
Field Details
-
CONTROL_TOGGLE_TYPE_ID
public static final int CONTROL_TOGGLE_TYPE_IDCounter type id for the control toggle.- See Also:
-
-
Constructor Details
-
NodeControl
public NodeControl()
-
-
Method Details
-
findControlToggle
Find the control toggle counter or return null if not found.- Parameters:
counters- to search within.clusterId- to which the allocated counter belongs.- Returns:
- the control toggle counter or return null if not found.
-
main
Main method for launching the process.- Parameters:
args- passed to the process.
-