Class FinalizeSnapshotContext

java.lang.Object
org.elasticsearch.action.ActionListener.Delegating<org.elasticsearch.core.Tuple<RepositoryData,​SnapshotInfo>,​org.elasticsearch.core.Tuple<RepositoryData,​SnapshotInfo>>
org.elasticsearch.repositories.FinalizeSnapshotContext
All Implemented Interfaces:
ActionListener<org.elasticsearch.core.Tuple<RepositoryData,​SnapshotInfo>>

public final class FinalizeSnapshotContext extends ActionListener.Delegating<org.elasticsearch.core.Tuple<RepositoryData,​SnapshotInfo>,​org.elasticsearch.core.Tuple<RepositoryData,​SnapshotInfo>>
Context for finalizing a snapshot.
  • Constructor Details

    • FinalizeSnapshotContext

      public FinalizeSnapshotContext(ShardGenerations updatedShardGenerations, long repositoryStateId, Metadata clusterMetadata, SnapshotInfo snapshotInfo, Version repositoryMetaVersion, ActionListener<org.elasticsearch.core.Tuple<RepositoryData,​SnapshotInfo>> listener)
      Parameters:
      updatedShardGenerations - updated shard generations
      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 and SnapshotInfo after completing the snapshot
  • Method Details

    • repositoryStateId

      public long repositoryStateId()
    • updatedShardGenerations

      public ShardGenerations updatedShardGenerations()
    • snapshotInfo

      public SnapshotInfo snapshotInfo()
    • repositoryMetaVersion

      public Version repositoryMetaVersion()
    • clusterMetadata

      public Metadata clusterMetadata()
    • updatedClusterState

      public ClusterState updatedClusterState(ClusterState state)
    • onResponse

      public void onResponse(org.elasticsearch.core.Tuple<RepositoryData,​SnapshotInfo> repositoryData)
      Description copied from interface: ActionListener
      Handle action response. This response may constitute a failure or a success but it is up to the listener to make that decision.