public class ClusteredArchive extends Object implements AutoCloseable
ConsensusModule and an Archive.| Modifier and Type | Method and Description |
|---|---|
Archive |
archive()
Get the
Archive used in the aggregate. |
void |
close() |
ConsensusModule |
consensusModule()
Get the
ConsensusModule used in the aggregate. |
static ClusteredArchive |
launch()
Launch a new
ClusteredArchive with default contexts. |
static ClusteredArchive |
launch(String aeronDirectoryName,
Archive.Context archiveCtx,
ConsensusModule.Context consensusModuleCtx)
Launch a new
ClusteredArchive with provided contexts. |
static void |
main(String[] args)
Launch the clustered archive aggregate and await a shutdown signal.
|
public static void main(String[] args)
args - command line argument which is a list for properties files as URLs or filenames.public static ClusteredArchive launch()
ClusteredArchive with default contexts.ClusteredArchive with default contexts.public static ClusteredArchive launch(String aeronDirectoryName, Archive.Context archiveCtx, ConsensusModule.Context consensusModuleCtx)
ClusteredArchive with provided contexts.aeronDirectoryName - for connecting to the MediaDriver.archiveCtx - for configuring the Archive.consensusModuleCtx - for the configuration of the ConsensusModule.ClusteredArchive with the provided contexts.public Archive archive()
Archive used in the aggregate.Archive used in the aggregate.public ConsensusModule consensusModule()
ConsensusModule used in the aggregate.ConsensusModule used in the aggregate.public void close()
close in interface AutoCloseableCopyright © 2014-2020 Real Logic Limited. All Rights Reserved.