public abstract class TransportInstanceSingleOperationAction<Request extends InstanceShardOperationRequest<Request>,Response extends ActionResponse> extends HandledTransportAction<Request,Response>
Modifier and Type | Field and Description |
---|---|
protected ClusterService |
clusterService |
protected TransportService |
transportService |
actionName, indexNameExpressionResolver, taskManager, threadPool
deprecationLogger, logger, settings
Modifier | Constructor and Description |
---|---|
protected |
TransportInstanceSingleOperationAction(Settings settings,
java.lang.String actionName,
ThreadPool threadPool,
ClusterService clusterService,
TransportService transportService,
ActionFilters actionFilters,
IndexNameExpressionResolver indexNameExpressionResolver,
java.util.function.Supplier<Request> request) |
Modifier and Type | Method and Description |
---|---|
protected ClusterBlockException |
checkGlobalBlock(ClusterState state) |
protected ClusterBlockException |
checkRequestBlock(ClusterState state,
Request request) |
protected void |
doExecute(Request request,
ActionListener<Response> listener) |
protected abstract java.lang.String |
executor() |
protected abstract Response |
newResponse() |
protected abstract void |
resolveRequest(ClusterState state,
Request request)
Resolves the request.
|
protected boolean |
retryOnFailure(java.lang.Exception e) |
protected abstract void |
shardOperation(Request request,
ActionListener<Response> listener) |
protected abstract ShardIterator |
shards(ClusterState clusterState,
Request request)
Should return an iterator with a single shard!
|
protected TransportRequestOptions |
transportOptions() |
doExecute, execute, execute, execute, execute
logDeprecatedSetting, logRemovedSetting, nodeName
protected final ClusterService clusterService
protected final TransportService transportService
protected TransportInstanceSingleOperationAction(Settings settings, java.lang.String actionName, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, java.util.function.Supplier<Request> request)
protected void doExecute(Request request, ActionListener<Response> listener)
doExecute
in class TransportAction<Request extends InstanceShardOperationRequest<Request>,Response extends ActionResponse>
protected abstract java.lang.String executor()
protected abstract void shardOperation(Request request, ActionListener<Response> listener)
protected abstract Response newResponse()
protected ClusterBlockException checkGlobalBlock(ClusterState state)
protected ClusterBlockException checkRequestBlock(ClusterState state, Request request)
protected abstract void resolveRequest(ClusterState state, Request request)
protected boolean retryOnFailure(java.lang.Exception e)
protected TransportRequestOptions transportOptions()
protected abstract ShardIterator shards(ClusterState clusterState, Request request)