public class ClusterControl extends Object
ClusterControl.ToggleStates for a cluster node such as ClusterControl.ToggleState.SUSPEND or
ClusterControl.ToggleState.RESUME. This can only be applied to the Cluster.Role.LEADER.| Modifier and Type | Class and Description |
|---|---|
static class |
ClusterControl.ToggleState
Toggle states for controlling the cluster node once it has entered the active state after initialising.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CONTROL_TOGGLE_TYPE_ID
Counter type id for the control toggle.
|
| Constructor and Description |
|---|
ClusterControl() |
| Modifier and Type | Method and Description |
|---|---|
static AtomicCounter |
findControlToggle(CountersReader counters,
int clusterId)
Find the control toggle counter or return null if not found.
|
static void |
main(String[] args)
Main method for launching the process.
|
static CountersReader |
mapCounters(File cncFile)
Map a
CountersReader over the provided File for the CnC file. |
public static final int CONTROL_TOGGLE_TYPE_ID
public static CountersReader mapCounters(File cncFile)
CountersReader over the provided File for the CnC file.cncFile - for the counters.CountersReader over the provided CnC file.public static AtomicCounter findControlToggle(CountersReader counters, int clusterId)
counters - to search within.clusterId - to which the allocated counter belongs.public static void main(String[] args)
args - passed to the process.Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.