Class TransportCreateSnapshotAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.master.TransportMasterNodeAction<CreateSnapshotRequest,CreateSnapshotResponse>
org.elasticsearch.action.admin.cluster.snapshots.create.TransportCreateSnapshotAction
public class TransportCreateSnapshotAction extends TransportMasterNodeAction<CreateSnapshotRequest,CreateSnapshotResponse>
Transport action for create snapshot operation
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, indexNameExpressionResolver, threadPool, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
Constructors Constructor Description TransportCreateSnapshotAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, SnapshotsService snapshotsService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) -
Method Summary
Modifier and Type Method Description protected ClusterBlockExceptioncheckBlock(CreateSnapshotRequest request, ClusterState state)protected java.lang.Stringexecutor()protected voidmasterOperation(CreateSnapshotRequest request, ClusterState state, ActionListener<CreateSnapshotResponse> listener)protected CreateSnapshotResponseread(StreamInput in)Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, getMasterActionName, localExecute, masterOperationMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportCreateSnapshotAction
@Inject public TransportCreateSnapshotAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, SnapshotsService snapshotsService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Details
-
executor
protected java.lang.String executor()- Specified by:
executorin classTransportMasterNodeAction<CreateSnapshotRequest,CreateSnapshotResponse>
-
read
- Specified by:
readin classTransportMasterNodeAction<CreateSnapshotRequest,CreateSnapshotResponse>- Throws:
java.io.IOException
-
checkBlock
- Specified by:
checkBlockin classTransportMasterNodeAction<CreateSnapshotRequest,CreateSnapshotResponse>
-
masterOperation
protected void masterOperation(CreateSnapshotRequest request, ClusterState state, ActionListener<CreateSnapshotResponse> listener)- Specified by:
masterOperationin classTransportMasterNodeAction<CreateSnapshotRequest,CreateSnapshotResponse>
-