Package io.aeron.cluster
Class ClusteredMediaDriver
java.lang.Object
io.aeron.cluster.ClusteredMediaDriver
- All Implemented Interfaces:
AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionarchive()Get theArchiveused in the aggregate.voidclose()Get theConsensusModuleused in the aggregate.static ClusteredMediaDriverlaunch()Launch a newClusteredMediaDriverwith default contexts.static ClusteredMediaDriverlaunch(MediaDriver.Context driverCtx, Archive.Context archiveCtx, ConsensusModule.Context consensusModuleCtx) Launch a newClusteredMediaDriverwith provided contexts.static voidLaunch the clustered media driver aggregate and await a shutdown signal.Get theMediaDriverused in the aggregate.
-
Method Details
-
main
Launch the clustered media driver 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 newClusteredMediaDriverwith default contexts.- Returns:
- a new
ClusteredMediaDriverwith default contexts.
-
launch
public static ClusteredMediaDriver launch(MediaDriver.Context driverCtx, Archive.Context archiveCtx, ConsensusModule.Context consensusModuleCtx) Launch a newClusteredMediaDriverwith provided contexts.- Parameters:
driverCtx- for configuring theMediaDriver.archiveCtx- for configuring theArchive.consensusModuleCtx- for the configuration of theConsensusModule.- Returns:
- a new
ClusteredMediaDriverwith the provided contexts.
-
mediaDriver
Get theMediaDriverused in the aggregate.- Returns:
- the
MediaDriverused in the aggregate.
-
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
-