Module org.elasticsearch.server
Class TransportRestoreSnapshotAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<RestoreSnapshotRequest,RestoreSnapshotResponse>
org.elasticsearch.action.support.HandledTransportAction<RestoreSnapshotRequest,RestoreSnapshotResponse>
org.elasticsearch.action.support.master.TransportMasterNodeAction<RestoreSnapshotRequest,RestoreSnapshotResponse>
org.elasticsearch.action.admin.cluster.snapshots.restore.TransportRestoreSnapshotAction
- All Implemented Interfaces:
ActionWithReservedState<RestoreSnapshotRequest>
public class TransportRestoreSnapshotAction
extends TransportMasterNodeAction<RestoreSnapshotRequest,RestoreSnapshotResponse>
Transport action for restore snapshot operation
-
Field Summary
FieldsFields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, executor, threadPool, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportRestoreSnapshotAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, RestoreService restoreService, ActionFilters actionFilters) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockExceptioncheckBlock(RestoreSnapshotRequest request, ClusterState state) protected voidmasterOperation(Task task, RestoreSnapshotRequest request, ClusterState state, ActionListener<RestoreSnapshotResponse> listener) Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, localExecute, validateForReservedStateMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.reservedstate.ActionWithReservedState
modifiedKeys, reservedStateHandlerName, validateForReservedState
-
Field Details
-
TYPE
-
-
Constructor Details
-
TransportRestoreSnapshotAction
@Inject public TransportRestoreSnapshotAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, RestoreService restoreService, ActionFilters actionFilters)
-
-
Method Details
-
checkBlock
- Specified by:
checkBlockin classTransportMasterNodeAction<RestoreSnapshotRequest,RestoreSnapshotResponse>
-
masterOperation
protected void masterOperation(Task task, RestoreSnapshotRequest request, ClusterState state, ActionListener<RestoreSnapshotResponse> listener) - Specified by:
masterOperationin classTransportMasterNodeAction<RestoreSnapshotRequest,RestoreSnapshotResponse>
-