public final class ConsensusModule extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
ConsensusModule.Configuration
Configuration options for cluster.
|
static class |
ConsensusModule.Context
Programmable overrides for configuring the
ConsensusModule in a cluster. |
static class |
ConsensusModule.State
Possible states for the
ConsensusModule. |
| Modifier and Type | Field and Description |
|---|---|
static int |
CLUSTER_ACTION_FLAGS_DEFAULT
Default set of flags when taking a snapshot
|
static int |
CLUSTER_ACTION_FLAGS_STANDBY_SNAPSHOT
Flag for a snapshot taken on a standby node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
AgentInvoker |
conductorAgentInvoker()
Get the
AgentInvoker for the consensus module. |
ConsensusModule.Context |
context()
Get the
ConsensusModule.Context that is used by this ConsensusModule. |
static ConsensusModule |
launch()
Launch an
ConsensusModule using a default configuration. |
static ConsensusModule |
launch(ConsensusModule.Context ctx)
Launch an
ConsensusModule by providing a configuration context. |
static void |
main(String[] args)
Launch an
ConsensusModule with that communicates with an out of process Archive
and MediaDriver then awaits shutdown signal. |
String |
toString() |
public static final int CLUSTER_ACTION_FLAGS_DEFAULT
public static final int CLUSTER_ACTION_FLAGS_STANDBY_SNAPSHOT
public static void main(String[] args)
ConsensusModule with that communicates with an out of process Archive
and MediaDriver then awaits shutdown signal.args - command line argument which is a list for properties files as URLs or filenames.public static ConsensusModule launch()
ConsensusModule using a default configuration.ConsensusModule.public static ConsensusModule launch(ConsensusModule.Context ctx)
ConsensusModule by providing a configuration context.ctx - for the configuration parameters.ConsensusModule.public ConsensusModule.Context context()
ConsensusModule.Context that is used by this ConsensusModule.ConsensusModule.Context that is used by this ConsensusModule.public AgentInvoker conductorAgentInvoker()
AgentInvoker for the consensus module.AgentInvoker for the consensus module.public void close()
close in interface AutoCloseableCopyright © 2014-2023 Real Logic Limited. All Rights Reserved.