Package io.aeron.cluster
Class ClusterBackup.Configuration
java.lang.Object
io.aeron.cluster.ClusterBackup.Configuration
- Enclosing class:
- ClusterBackup
Configuration options for
ClusterBackup with defaults and constants for system properties lookup.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDetermines what position to start from when backing up the log from the cluster. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault channel template used for catchup and replication of log and snapshots.static final StringChannel template used for catchup and replication of log and snapshots.static final StringChannel template used for catchup and replication of log and snapshots.static final longDefault interval at which the cluster back is re-initialised after an exception has been thrown.static final StringInterval at which the cluster backup is re-initialised after an exception has been thrown.static final longDefault interval at which a cluster backup will send backup queries.static final StringInterval at which a cluster backup will send backup queries.static final longDefault timeout within which a cluster backup will expect progress.static final StringTimeout within which a cluster backup will expect progress.static final longDefault timeout within which a cluster backup will expect a response from a backup query.static final StringTimeout within which a cluster backup will expect a response from a backup query.static final StringDefault source type to receive log traffic from.static final StringThe source type used for the cluster backup.static final ClusterBackup.Configuration.ReplayStartDefault value for the initial cluster replay start.static final StringProperty name for setting the cluster replay start. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringThe valueCLUSTER_BACKUP_CATCHUP_CHANNEL_DEFAULTor system propertyCLUSTER_BACKUP_CATCHUP_CHANNEL_PROP_NAMEif set.static StringThe value of system propertyCLUSTER_BACKUP_CATCHUP_ENDPOINT_PROP_NAMEif set, otherwise it will try to derive the catchup endpoint fromConsensusModule.Configuration.clusterMembers()andConsensusModule.Configuration.clusterMemberId().static longInterval at which the cluster backup is re-initialised after an exception has been thrown.static longInterval at which a cluster backup will send backup queries.static longTimeout within which a cluster backup will expect progress.static longTimeout within which a cluster backup will expect a response from a backup query.static StringReturns the string representation of theClusterBackup.SourceTypethat this backup instance will use depending on the value of theCLUSTER_BACKUP_CATCHUP_CHANNEL_PROP_NAMEsystem property if set orCLUSTER_BACKUP_SOURCE_TYPE_DEFAULTif not.Get the initial value for the cluster relay start.static StringThe value of system propertyConsensusModule.Configuration.consensusChannel()if set.
-
Field Details
-
CLUSTER_BACKUP_CATCHUP_ENDPOINT_PROP_NAME
Channel template used for catchup and replication of log and snapshots.- See Also:
-
CLUSTER_BACKUP_CATCHUP_CHANNEL_PROP_NAME
Channel template used for catchup and replication of log and snapshots.- See Also:
-
CLUSTER_BACKUP_CATCHUP_CHANNEL_DEFAULT
Default channel template used for catchup and replication of log and snapshots.- See Also:
-
CLUSTER_BACKUP_INTERVAL_PROP_NAME
Interval at which a cluster backup will send backup queries.- See Also:
-
CLUSTER_BACKUP_INTERVAL_DEFAULT_NS
public static final long CLUSTER_BACKUP_INTERVAL_DEFAULT_NSDefault interval at which a cluster backup will send backup queries. -
CLUSTER_BACKUP_RESPONSE_TIMEOUT_PROP_NAME
Timeout within which a cluster backup will expect a response from a backup query.- See Also:
-
CLUSTER_BACKUP_RESPONSE_TIMEOUT_DEFAULT_NS
public static final long CLUSTER_BACKUP_RESPONSE_TIMEOUT_DEFAULT_NSDefault timeout within which a cluster backup will expect a response from a backup query. -
CLUSTER_BACKUP_PROGRESS_TIMEOUT_PROP_NAME
Timeout within which a cluster backup will expect progress.- See Also:
-
CLUSTER_BACKUP_COOL_DOWN_INTERVAL_PROP_NAME
Interval at which the cluster backup is re-initialised after an exception has been thrown.- See Also:
-
CLUSTER_BACKUP_COOL_DOWN_INTERVAL_DEFAULT_NS
public static final long CLUSTER_BACKUP_COOL_DOWN_INTERVAL_DEFAULT_NSDefault interval at which the cluster back is re-initialised after an exception has been thrown. -
CLUSTER_BACKUP_PROGRESS_TIMEOUT_DEFAULT_NS
public static final long CLUSTER_BACKUP_PROGRESS_TIMEOUT_DEFAULT_NSDefault timeout within which a cluster backup will expect progress. -
CLUSTER_BACKUP_SOURCE_TYPE_PROP_NAME
The source type used for the cluster backup. Should match on of theClusterBackup.SourceTypeenum values.- See Also:
-
CLUSTER_BACKUP_SOURCE_TYPE_DEFAULT
Default source type to receive log traffic from. -
CLUSTER_INITIAL_REPLAY_START_DEFAULT
Default value for the initial cluster replay start. -
CLUSTER_INITIAL_REPLAY_START_PROP_NAME
Property name for setting the cluster replay start.- See Also:
-
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
catchupEndpoint
The value of system propertyCLUSTER_BACKUP_CATCHUP_ENDPOINT_PROP_NAMEif set, otherwise it will try to derive the catchup endpoint fromConsensusModule.Configuration.clusterMembers()andConsensusModule.Configuration.clusterMemberId(). Failing that null will be returned.- Returns:
- system property
CLUSTER_BACKUP_CATCHUP_ENDPOINT_PROP_NAME, the derived value, or null.
-
catchupChannel
The valueCLUSTER_BACKUP_CATCHUP_CHANNEL_DEFAULTor system propertyCLUSTER_BACKUP_CATCHUP_CHANNEL_PROP_NAMEif set.- Returns:
CLUSTER_BACKUP_CATCHUP_CHANNEL_DEFAULTor system propertyCLUSTER_BACKUP_CATCHUP_CHANNEL_PROP_NAMEif set.
-
consensusChannel
The value of system propertyConsensusModule.Configuration.consensusChannel()if set. If that channel does not have an endpoint set, then this will try to derive one usingConsensusModule.Configuration.clusterMembers()andConsensusModule.Configuration.clusterMemberId().- Returns:
- system property
CLUSTER_BACKUP_CATCHUP_CHANNEL_PROP_NAME, the derived value, or null.
-
clusterBackupIntervalNs
public static long clusterBackupIntervalNs()Interval at which a cluster backup will send backup queries.- Returns:
- Interval at which a cluster backup will send backup queries.
- See Also:
-
clusterBackupResponseTimeoutNs
public static long clusterBackupResponseTimeoutNs()Timeout within which a cluster backup will expect a response from a backup query.- Returns:
- timeout within which a cluster backup will expect a response from a backup query.
- See Also:
-
clusterBackupProgressTimeoutNs
public static long clusterBackupProgressTimeoutNs()Timeout within which a cluster backup will expect progress.- Returns:
- timeout within which a cluster backup will expect progress.
- See Also:
-
clusterBackupCoolDownIntervalNs
public static long clusterBackupCoolDownIntervalNs()Interval at which the cluster backup is re-initialised after an exception has been thrown.- Returns:
- interval at which the cluster backup is re-initialised after an exception has been thrown.
- See Also:
-
clusterBackupSourceType
Returns the string representation of theClusterBackup.SourceTypethat this backup instance will use depending on the value of theCLUSTER_BACKUP_CATCHUP_CHANNEL_PROP_NAMEsystem property if set orCLUSTER_BACKUP_SOURCE_TYPE_DEFAULTif not.- Returns:
- the configured source type.
-
clusterInitialReplayStart
Get the initial value for the cluster relay start.- Returns:
- enum to determine where to start replaying the log from.
- See Also:
-