Package io.aeron.cluster
Class RecordingLog.RecoveryPlan
java.lang.Object
io.aeron.cluster.RecordingLog.RecoveryPlan
- Enclosing class:
- RecordingLog
The snapshots and steps to recover the state of a cluster.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal longThe position reached for local appended log.final longThe position reached for the local appended log for which the commit position is known.final longThe last, i.e.final longThe last, i.e.final RecordingLog.LogThe appended local log details.final ArrayList<RecordingLog.Snapshot>The most recent snapshots for the consensus module and services to accelerate recovery. -
Constructor Summary
ConstructorsConstructorDescriptionRecoveryPlan(long lastLeadershipTermId, long lastTermBaseLogPosition, long appendedLogPosition, long committedLogPosition, ArrayList<RecordingLog.Snapshot> snapshots, RecordingLog.Log log) -
Method Summary
-
Field Details
-
lastLeadershipTermId
public final long lastLeadershipTermIdThe last, i.e. most recent, leadership term identity for the log. -
lastTermBaseLogPosition
public final long lastTermBaseLogPositionThe last, i.e. most recent, leadership term base log position. -
appendedLogPosition
public final long appendedLogPositionThe position reached for local appended log. -
committedLogPosition
public final long committedLogPositionThe position reached for the local appended log for which the commit position is known. -
snapshots
The most recent snapshots for the consensus module and services to accelerate recovery. -
log
The appended local log details.
-
-
Constructor Details
-
RecoveryPlan
public RecoveryPlan(long lastLeadershipTermId, long lastTermBaseLogPosition, long appendedLogPosition, long committedLogPosition, ArrayList<RecordingLog.Snapshot> snapshots, RecordingLog.Log log) - Parameters:
lastLeadershipTermId- the last, i.e. most recent, leadership term identity for the log.lastTermBaseLogPosition- last, i.e. most recent, leadership term base log position.appendedLogPosition- reached for local appended log.committedLogPosition- reached for the local appended log for which the commit position is known.snapshots- most recent snapshots for the consensus module and services.log- appended local log details.
-
-
Method Details