Package io.aeron.cluster
Class ClusteredArchive
java.lang.Object
io.aeron.cluster.ClusteredArchive
- All Implemented Interfaces:
AutoCloseable
Clustered archive which is an aggregate of a
ConsensusModule and an Archive.-
Method Summary
Modifier and TypeMethodDescriptionarchive()Get theArchiveused in the aggregate.voidclose()Get theConsensusModuleused in the aggregate.static ClusteredArchivelaunch()Launch a newClusteredArchivewith default contexts.static ClusteredArchivelaunch(String aeronDirectoryName, Archive.Context archiveCtx, ConsensusModule.Context consensusModuleCtx) Launch a newClusteredArchivewith provided contexts.static voidLaunch the clustered archive aggregate and await a shutdown signal.
-
Method Details
-
main
Launch the clustered archive aggregate and await a shutdown signal.- Parameters:
args- command line argument which is a list for properties files as URLs or filenames.
-
launch
Launch a newClusteredArchivewith default contexts.- Returns:
- a new
ClusteredArchivewith default contexts.
-
launch
public static ClusteredArchive launch(String aeronDirectoryName, Archive.Context archiveCtx, ConsensusModule.Context consensusModuleCtx) Launch a newClusteredArchivewith provided contexts.- Parameters:
aeronDirectoryName- for connecting to theMediaDriver.archiveCtx- for configuring theArchive.consensusModuleCtx- for the configuration of theConsensusModule.- Returns:
- a new
ClusteredArchivewith the provided contexts.
-
archive
Get theArchiveused in the aggregate.- Returns:
- the
Archiveused in the aggregate.
-
consensusModule
Get theConsensusModuleused in the aggregate.- Returns:
- the
ConsensusModuleused in the aggregate.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-