Package io.aeron.cluster
Class ClusterBackupMediaDriver
java.lang.Object
io.aeron.cluster.ClusterBackupMediaDriver
- All Implemented Interfaces:
AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionarchive()Get theArchiveused in the aggregate.voidclose()Get theClusterBackupused in the aggregate.static ClusterBackupMediaDriverlaunch()Launch a newClusterBackupMediaDriverwith default contexts.static ClusterBackupMediaDriverlaunch(MediaDriver.Context driverCtx, Archive.Context archiveCtx, ClusterBackup.Context clusterBackupCtx) Launch a newClusterBackupMediaDriverwith provided contexts.static voidLaunch the cluster backup media driver aggregate and await a shutdown signal.Get theMediaDriverused in the aggregate.
-
Method Details
-
main
Launch the cluster backup 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 newClusterBackupMediaDriverwith default contexts.- Returns:
- a new
ClusterBackupMediaDriverwith default contexts.
-
launch
public static ClusterBackupMediaDriver launch(MediaDriver.Context driverCtx, Archive.Context archiveCtx, ClusterBackup.Context clusterBackupCtx) Launch a newClusterBackupMediaDriverwith provided contexts.- Parameters:
driverCtx- for configuring theMediaDriver.archiveCtx- for configuring theArchive.clusterBackupCtx- for the configuration of theClusterBackup.- Returns:
- a new
ClusterBackupMediaDriverwith 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.
-
clusterBackup
Get theClusterBackupused in the aggregate.- Returns:
- the
ClusterBackupused in the aggregate.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-