Class TransportCreateSnapshotAction
- java.lang.Object
-
- org.elasticsearch.common.component.AbstractComponent
-
- 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.common.component.AbstractComponent
deprecationLogger, logger, settings
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, indexNameExpressionResolver, taskManager, threadPool
-
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, transportService
-
-
Constructor Summary
Constructors Constructor Description TransportCreateSnapshotAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, SnapshotsService snapshotsService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClusterBlockException
checkBlock(CreateSnapshotRequest request, ClusterState state)
protected java.lang.String
executor()
protected void
masterOperation(CreateSnapshotRequest request, ClusterState state, ActionListener<CreateSnapshotResponse> listener)
protected CreateSnapshotResponse
newResponse()
-
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
logDeprecatedSetting, logRemovedSetting, nodeName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute, execute
-
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, doExecute, getMasterActionName, localExecute, masterOperation
-
-
-
-
Constructor Detail
-
TransportCreateSnapshotAction
@Inject public TransportCreateSnapshotAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, SnapshotsService snapshotsService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
executor
protected java.lang.String executor()
- Specified by:
executor
in classTransportMasterNodeAction<CreateSnapshotRequest,CreateSnapshotResponse>
-
newResponse
protected CreateSnapshotResponse newResponse()
- Specified by:
newResponse
in classTransportMasterNodeAction<CreateSnapshotRequest,CreateSnapshotResponse>
-
checkBlock
protected ClusterBlockException checkBlock(CreateSnapshotRequest request, ClusterState state)
- Specified by:
checkBlock
in classTransportMasterNodeAction<CreateSnapshotRequest,CreateSnapshotResponse>
-
masterOperation
protected void masterOperation(CreateSnapshotRequest request, ClusterState state, ActionListener<CreateSnapshotResponse> listener)
- Specified by:
masterOperation
in classTransportMasterNodeAction<CreateSnapshotRequest,CreateSnapshotResponse>
-
-