Module org.elasticsearch.server
Class TransportCreateSnapshotAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<CreateSnapshotRequest,CreateSnapshotResponse>
org.elasticsearch.action.support.HandledTransportAction<CreateSnapshotRequest,CreateSnapshotResponse>
org.elasticsearch.action.support.master.TransportMasterNodeAction<CreateSnapshotRequest,CreateSnapshotResponse>
org.elasticsearch.action.admin.cluster.snapshots.create.TransportCreateSnapshotAction
- All Implemented Interfaces:
ActionWithReservedState<CreateSnapshotRequest>
public class TransportCreateSnapshotAction
extends TransportMasterNodeAction<CreateSnapshotRequest,CreateSnapshotResponse>
Transport action for create 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
ConstructorsConstructorDescriptionTransportCreateSnapshotAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, SnapshotsService snapshotsService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockExceptioncheckBlock(CreateSnapshotRequest request, ClusterState state) protected voidmasterOperation(Task task, CreateSnapshotRequest request, ClusterState state, ActionListener<CreateSnapshotResponse> listener) Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, localExecuteMethods 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
-
TransportCreateSnapshotAction
@Inject public TransportCreateSnapshotAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, SnapshotsService snapshotsService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Details
-
checkBlock
- Specified by:
checkBlockin classTransportMasterNodeAction<CreateSnapshotRequest,CreateSnapshotResponse>
-
masterOperation
protected void masterOperation(Task task, CreateSnapshotRequest request, ClusterState state, ActionListener<CreateSnapshotResponse> listener) - Specified by:
masterOperationin classTransportMasterNodeAction<CreateSnapshotRequest,CreateSnapshotResponse>
-