Class RecordingLog.RecoveryPlan

java.lang.Object
io.aeron.cluster.RecordingLog.RecoveryPlan
Enclosing class:
RecordingLog

public static final class RecordingLog.RecoveryPlan extends Object
The snapshots and steps to recover the state of a cluster.
  • Field Details

    • lastLeadershipTermId

      public final long lastLeadershipTermId
      The last, i.e. most recent, leadership term identity for the log.
    • lastTermBaseLogPosition

      public final long lastTermBaseLogPosition
      The last, i.e. most recent, leadership term base log position.
    • appendedLogPosition

      public final long appendedLogPosition
      The position reached for local appended log.
    • committedLogPosition

      public final long committedLogPosition
      The position reached for the local appended log for which the commit position is known.
    • snapshots

      public final ArrayList<RecordingLog.Snapshot> snapshots
      The most recent snapshots for the consensus module and services to accelerate recovery.
    • log

      public final RecordingLog.Log 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