Package org.elasticsearch.repositories
Class FinalizeSnapshotContext
java.lang.Object
org.elasticsearch.action.ActionListener.Delegating<Tuple<RepositoryData,SnapshotInfo>,Tuple<RepositoryData,SnapshotInfo>>
org.elasticsearch.repositories.FinalizeSnapshotContext
- All Implemented Interfaces:
ActionListener<Tuple<RepositoryData,SnapshotInfo>>
public final class FinalizeSnapshotContext
extends ActionListener.Delegating<Tuple<RepositoryData,SnapshotInfo>,Tuple<RepositoryData,SnapshotInfo>>
Context for finalizing a snapshot.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.action.ActionListener
ActionListener.Delegating<Response,DelegateResponse>, ActionListener.DelegatingActionListener<T>, ActionListener.DelegatingFailureActionListener<T, R>, ActionListener.MappedActionListener<Response, MappedResponse>, ActionListener.RunAfterActionListener<T>, ActionListener.RunBeforeActionListener<T> -
Field Summary
Fields inherited from class org.elasticsearch.action.ActionListener.Delegating
delegate -
Constructor Summary
ConstructorsConstructorDescriptionFinalizeSnapshotContext(ShardGenerations updatedShardGenerations, long repositoryStateId, Metadata clusterMetadata, SnapshotInfo snapshotInfo, Version repositoryMetaVersion, ActionListener<Tuple<RepositoryData, SnapshotInfo>> listener) -
Method Summary
Modifier and TypeMethodDescriptionvoidonResponse(Tuple<RepositoryData, SnapshotInfo> repositoryData) Handle action response.longupdatedClusterState(ClusterState state) Methods inherited from class org.elasticsearch.action.ActionListener.Delegating
onFailure, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.action.ActionListener
delegateFailure, delegateResponse, map
-
Constructor Details
-
FinalizeSnapshotContext
public FinalizeSnapshotContext(ShardGenerations updatedShardGenerations, long repositoryStateId, Metadata clusterMetadata, SnapshotInfo snapshotInfo, Version repositoryMetaVersion, ActionListener<Tuple<RepositoryData, SnapshotInfo>> listener) - Parameters:
updatedShardGenerations- updated shard generationsrepositoryStateId- the unique id identifying the state of the repository when the snapshot beganclusterMetadata- cluster metadatasnapshotInfo- SnapshotInfo instance to write for this snapshotrepositoryMetaVersion- version of the updated repository metadata to writelistener- listener to be invoked with the newRepositoryDataandSnapshotInfoafter completing the snapshot
-
-
Method Details
-
repositoryStateId
public long repositoryStateId() -
updatedShardGenerations
-
snapshotInfo
-
repositoryMetaVersion
-
clusterMetadata
-
obsoleteShardGenerations
-
updatedClusterState
-
onResponse
Description copied from interface:ActionListenerHandle action response. This response may constitute a failure or a success but it is up to the listener to make that decision.
-