Class TransportDeleteSnapshotAction
- 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<DeleteSnapshotRequest,AcknowledgedResponse>
-
- org.elasticsearch.action.admin.cluster.snapshots.delete.TransportDeleteSnapshotAction
-
public class TransportDeleteSnapshotAction extends TransportMasterNodeAction<DeleteSnapshotRequest,AcknowledgedResponse>
Transport action for delete snapshot operation
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, transportService
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, indexNameExpressionResolver, taskManager, threadPool
-
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
logger
-
-
Constructor Summary
Constructors Constructor Description TransportDeleteSnapshotAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, SnapshotsService snapshotsService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
Modifier and Type Method Description protected ClusterBlockExceptioncheckBlock(DeleteSnapshotRequest request, ClusterState state)protected java.lang.Stringexecutor()protected voidmasterOperation(DeleteSnapshotRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)protected AcknowledgedResponsenewResponse()-
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, doExecute, getMasterActionName, localExecute, masterOperation, read
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute, execute
-
-
-
-
Constructor Detail
-
TransportDeleteSnapshotAction
@Inject public TransportDeleteSnapshotAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, SnapshotsService snapshotsService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
executor
protected java.lang.String executor()
- Specified by:
executorin classTransportMasterNodeAction<DeleteSnapshotRequest,AcknowledgedResponse>
-
newResponse
protected AcknowledgedResponse newResponse()
- Specified by:
newResponsein classTransportMasterNodeAction<DeleteSnapshotRequest,AcknowledgedResponse>- Returns:
- a new response instance. Typically this is used for serialization using the
Streamable.readFrom(StreamInput)method.
-
checkBlock
protected ClusterBlockException checkBlock(DeleteSnapshotRequest request, ClusterState state)
- Specified by:
checkBlockin classTransportMasterNodeAction<DeleteSnapshotRequest,AcknowledgedResponse>
-
masterOperation
protected void masterOperation(DeleteSnapshotRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)
- Specified by:
masterOperationin classTransportMasterNodeAction<DeleteSnapshotRequest,AcknowledgedResponse>
-
-