Module org.elasticsearch.server
Class TransportBroadcastUnpromotableAction<Request extends BroadcastUnpromotableRequest,Response extends ActionResponse>
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.broadcast.unpromotable.TransportBroadcastUnpromotableAction<Request,Response>
- Direct Known Subclasses:
TransportUnpromotableShardRefreshAction
public abstract class TransportBroadcastUnpromotableAction<Request extends BroadcastUnpromotableRequest,Response extends ActionResponse>
extends HandledTransportAction<Request,Response>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ClusterService
protected final Executor
protected final ShardStateAction
protected final TransportService
protected final String
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TransportBroadcastUnpromotableAction
(String actionName, ClusterService clusterService, TransportService transportService, ShardStateAction shardStateAction, ActionFilters actionFilters, Writeable.Reader<Request> requestReader, Executor executor) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Response
combineUnpromotableShardResponses
(List<Response> responses) protected void
doExecute
(Task task, Request request, ActionListener<Response> listener) protected abstract Response
protected abstract Response
protected abstract void
unpromotableShardOperation
(Task task, Request request, ActionListener<Response> listener) Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, localOnly
-
Field Details
-
clusterService
-
transportService
-
shardStateAction
-
transportUnpromotableAction
-
executor
-
-
Constructor Details
-
TransportBroadcastUnpromotableAction
protected TransportBroadcastUnpromotableAction(String actionName, ClusterService clusterService, TransportService transportService, ShardStateAction shardStateAction, ActionFilters actionFilters, Writeable.Reader<Request> requestReader, Executor executor)
-
-
Method Details
-
unpromotableShardOperation
protected abstract void unpromotableShardOperation(Task task, Request request, ActionListener<Response> listener) -
doExecute
- Specified by:
doExecute
in classTransportAction<Request extends BroadcastUnpromotableRequest,
Response extends ActionResponse>
-
combineUnpromotableShardResponses
-
readResponse
- Throws:
IOException
-
emptyResponse
-