Module org.elasticsearch.server
Package org.elasticsearch.action.support
Class TransportAction<Request extends ActionRequest,Response extends ActionResponse>
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
- Direct Known Subclasses:
GetHealthAction.LocalAction,HandledTransportAction,TransportLocalClusterStateAction,TransportNodesAction,TransportReplicationAction,TransportSingleShardAction,VerifyNodeRepositoryCoordinationAction.LocalAction
public abstract class TransportAction<Request extends ActionRequest,Response extends ActionResponse>
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Stringprotected org.apache.logging.log4j.LoggerDeprecated.declare your own logger.protected final TaskManager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransportAction(String actionName, ActionFilters actionFilters, TaskManager taskManager, Executor executor) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoExecute(Task task, Request request, ActionListener<Response> listener) final voidexecute(Task task, Request request, ActionListener<Response> listener) protected final voidexecuteDirect(Task task, Request request, ActionListener<Response> listener) Use this method when the transport action should continue to run in the context of the current taskstatic <T> TA method to use as a placeholder in implementations ofTransportActionwhich only ever run on the local node, and therefore do not need to serialize or deserialize any messages.
-
Field Details
-
actionName
-
taskManager
-
logger
Deprecated.declare your own logger.
-
-
Constructor Details
-
TransportAction
protected TransportAction(String actionName, ActionFilters actionFilters, TaskManager taskManager, Executor executor)
-
-
Method Details
-
executeDirect
Use this method when the transport action should continue to run in the context of the current task -
execute
-
doExecute
-
localOnly
public static <T> T localOnly()A method to use as a placeholder in implementations ofTransportActionwhich only ever run on the local node, and therefore do not need to serialize or deserialize any messages.
-