Class FinalizeSnapshotContext

All Implemented Interfaces:
ActionListener<RepositoryData>

public final class FinalizeSnapshotContext extends DelegatingActionListener<RepositoryData,RepositoryData>
Context for finalizing a snapshot.
  • Constructor Details

    • FinalizeSnapshotContext

      public FinalizeSnapshotContext(FinalizeSnapshotContext.UpdatedShardGenerations updatedShardGenerations, long repositoryStateId, Metadata clusterMetadata, SnapshotInfo snapshotInfo, IndexVersion repositoryMetaVersion, ActionListener<RepositoryData> listener, Runnable onDone)
      Parameters:
      updatedShardGenerations - updated shard generations for both live and deleted indices
      repositoryStateId - the unique id identifying the state of the repository when the snapshot began
      clusterMetadata - cluster metadata
      snapshotInfo - SnapshotInfo instance to write for this snapshot
      repositoryMetaVersion - version of the updated repository metadata to write
      listener - listener to be invoked with the new RepositoryData after the snapshot has been successfully added to the repository
      onDone - consumer of the new SnapshotInfo for the snapshot that is invoked after the listener once all cleanup operations after snapshot completion have executed
  • Method Details