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
ConstructorDescriptionFinalizeSnapshotContext
(ShardGenerations updatedShardGenerations, long repositoryStateId, Metadata clusterMetadata, SnapshotInfo snapshotInfo, Version repositoryMetaVersion, ActionListener<Tuple<RepositoryData, SnapshotInfo>> listener) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onResponse
(Tuple<RepositoryData, SnapshotInfo> repositoryData) Handle action response.long
updatedClusterState
(ClusterState state) Methods inherited from class org.elasticsearch.action.ActionListener.Delegating
onFailure, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 newRepositoryData
andSnapshotInfo
after completing the snapshot
-
-
Method Details
-
repositoryStateId
public long repositoryStateId() -
updatedShardGenerations
-
snapshotInfo
-
repositoryMetaVersion
-
clusterMetadata
-
obsoleteShardGenerations
-
updatedClusterState
-
onResponse
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.
-