public abstract class TransportMasterNodeAction<Request extends MasterNodeRequest,Response extends ActionResponse> extends HandledTransportAction<Request,Response>
Modifier and Type | Field and Description |
---|---|
protected ClusterService |
clusterService |
protected TransportService |
transportService |
actionName, indexNameExpressionResolver, parseFieldMatcher, taskManager, threadPool
deprecationLogger, logger, settings
Modifier | Constructor and Description |
---|---|
protected |
TransportMasterNodeAction(Settings settings,
String actionName,
TransportService transportService,
ClusterService clusterService,
ThreadPool threadPool,
ActionFilters actionFilters,
IndexNameExpressionResolver indexNameExpressionResolver,
Class<Request> request) |
Modifier and Type | Method and Description |
---|---|
protected abstract ClusterBlockException |
checkBlock(Request request,
ClusterState state) |
protected void |
doExecute(Request request,
ActionListener<Response> listener) |
protected void |
doExecute(Task task,
Request request,
ActionListener<Response> listener) |
protected abstract String |
executor() |
protected boolean |
localExecute(Request request) |
protected abstract void |
masterOperation(Request request,
ClusterState state,
ActionListener<Response> listener) |
protected void |
masterOperation(Task task,
Request request,
ClusterState state,
ActionListener<Response> listener)
Override this operation if access to the task parameter is needed
|
protected abstract Response |
newResponse() |
execute, execute, execute, execute
logDeprecatedSetting, logRemovedSetting, nodeName
protected final TransportService transportService
protected final ClusterService clusterService
protected TransportMasterNodeAction(Settings settings, String actionName, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Class<Request> request)
protected abstract String executor()
protected abstract Response newResponse()
protected abstract void masterOperation(Request request, ClusterState state, ActionListener<Response> listener) throws Exception
Exception
protected void masterOperation(Task task, Request request, ClusterState state, ActionListener<Response> listener) throws Exception
Exception
protected boolean localExecute(Request request)
protected abstract ClusterBlockException checkBlock(Request request, ClusterState state)
protected final void doExecute(Request request, ActionListener<Response> listener)
doExecute
in class TransportAction<Request extends MasterNodeRequest,Response extends ActionResponse>
protected void doExecute(Task task, Request request, ActionListener<Response> listener)
doExecute
in class TransportAction<Request extends MasterNodeRequest,Response extends ActionResponse>
Copyright © 2009–2016. All rights reserved.