public class ClusteredMediaDriver extends Object implements AutoCloseable
| 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 ClusteredMediaDriver |
launch()
Launch a new
ClusteredMediaDriver with default contexts. |
static ClusteredMediaDriver |
launch(MediaDriver.Context driverCtx,
Archive.Context archiveCtx,
ConsensusModule.Context consensusModuleCtx)
Launch a new
ClusteredMediaDriver with provided contexts. |
static void |
main(String[] args)
Launch the clustered media driver aggregate and await a shutdown signal.
|
MediaDriver |
mediaDriver()
Get the
MediaDriver used in the aggregate. |
public static void main(String[] args)
args - command line argument which is a list for properties files as URLs or filenames.public static ClusteredMediaDriver launch()
ClusteredMediaDriver with default contexts.ClusteredMediaDriver with default contexts.public static ClusteredMediaDriver launch(MediaDriver.Context driverCtx, Archive.Context archiveCtx, ConsensusModule.Context consensusModuleCtx)
ClusteredMediaDriver with provided contexts.driverCtx - for configuring the MediaDriver.archiveCtx - for configuring the Archive.consensusModuleCtx - for the configuration of the ConsensusModule.ClusteredMediaDriver with the provided contexts.public MediaDriver mediaDriver()
MediaDriver used in the aggregate.MediaDriver used in the aggregate.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.