public class ClusterControl extends Object
ClusterControl.ToggleState
s 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)
Find the control toggle counter or return null if not found.
|
static void |
main(String[] args) |
static CountersReader |
mapCounters()
Map a
CountersReader over the default location CnC file. |
static CountersReader |
mapCounters(File cncFile)
Map a
CountersReader over the provided File for the CnC file. |
static CountersReader |
mapCounters(String filename)
Map a
CountersReader over the provided filename for the CnC file. |
public static final int CONTROL_TOGGLE_TYPE_ID
public static CountersReader mapCounters()
CountersReader
over the default location CnC file.CountersReader
over the default location CnC file.public static CountersReader mapCounters(String filename)
CountersReader
over the provided filename for the CnC file.filename
- for the CnC file.CountersReader
over the provided CnC file.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)
counters
- to search for the control toggle.public static void main(String[] args)
Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.