java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.action.support.BaseAction<Request,Response>
org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<Request,Response,ShardRequest,ShardResponse>
- All Implemented Interfaces:
- Action<Request,Response>
- Direct Known Subclasses:
- TransportBroadcastPingAction, TransportClearIndicesCacheAction, TransportCountAction, TransportFlushAction, TransportGatewaySnapshotAction, TransportIndicesSegmentsAction, TransportIndicesStatusAction, TransportOptimizeAction, TransportRefreshAction
public abstract class TransportBroadcastOperationAction<Request extends BroadcastOperationRequest,Response extends BroadcastOperationResponse,ShardRequest extends BroadcastShardOperationRequest,ShardResponse extends BroadcastShardOperationResponse>
- extends BaseAction<Request,Response>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
clusterService
protected final ClusterService clusterService
transportService
protected final TransportService transportService
threadPool
protected final ThreadPool threadPool
TransportBroadcastOperationAction
protected TransportBroadcastOperationAction(Settings settings,
ThreadPool threadPool,
ClusterService clusterService,
TransportService transportService)
doExecute
protected void doExecute(Request request,
ActionListener<Response> listener)
- Specified by:
doExecute
in class BaseAction<Request extends BroadcastOperationRequest,Response extends BroadcastOperationResponse>
transportAction
protected abstract java.lang.String transportAction()
transportShardAction
protected abstract java.lang.String transportShardAction()
executor
protected abstract java.lang.String executor()
newRequest
protected abstract Request newRequest()
newResponse
protected abstract Response newResponse(Request request,
java.util.concurrent.atomic.AtomicReferenceArray shardsResponses,
ClusterState clusterState)
newShardRequest
protected abstract ShardRequest newShardRequest()
newShardRequest
protected abstract ShardRequest newShardRequest(ShardRouting shard,
Request request)
newShardResponse
protected abstract ShardResponse newShardResponse()
shardOperation
protected abstract ShardResponse shardOperation(ShardRequest request)
throws ElasticSearchException
- Throws:
ElasticSearchException
shards
protected abstract GroupShardsIterator shards(Request request,
java.lang.String[] concreteIndices,
ClusterState clusterState)
accumulateExceptions
protected boolean accumulateExceptions()
ignoreNonActiveExceptions
protected boolean ignoreNonActiveExceptions()
checkBlock
protected void checkBlock(Request request,
java.lang.String[] indices,
ClusterState state)