public class TransportClearIndicesCacheAction extends TransportBroadcastByNodeAction<ClearIndicesCacheRequest,ClearIndicesCacheResponse,TransportBroadcastByNodeAction.EmptyResult>
TransportBroadcastByNodeAction.AsyncAction, TransportBroadcastByNodeAction.EmptyResult, TransportBroadcastByNodeAction.NodeRequestactionName, indexNameExpressionResolver, taskManager, threadPooldeprecationLogger, logger, settings| Constructor and Description |
|---|
TransportClearIndicesCacheAction(Settings settings,
ThreadPool threadPool,
ClusterService clusterService,
TransportService transportService,
IndicesService indicesService,
ActionFilters actionFilters,
IndexNameExpressionResolver indexNameExpressionResolver) |
| Modifier and Type | Method and Description |
|---|---|
protected ClusterBlockException |
checkGlobalBlock(ClusterState state,
ClearIndicesCacheRequest request)
Executes a global block check before polling the cluster state.
|
protected ClusterBlockException |
checkRequestBlock(ClusterState state,
ClearIndicesCacheRequest request,
java.lang.String[] concreteIndices)
Executes a global request-level check before polling the cluster state.
|
protected ClearIndicesCacheResponse |
newResponse(ClearIndicesCacheRequest request,
int totalShards,
int successfulShards,
int failedShards,
java.util.List<TransportBroadcastByNodeAction.EmptyResult> responses,
java.util.List<ShardOperationFailedException> shardFailures,
ClusterState clusterState)
Creates a new response to the underlying request.
|
protected ClearIndicesCacheRequest |
readRequestFrom(StreamInput in)
Deserialize a request from an input stream
|
protected TransportBroadcastByNodeAction.EmptyResult |
readShardResult(StreamInput in)
Deserialize a shard-level result from an input stream
|
protected TransportBroadcastByNodeAction.EmptyResult |
shardOperation(ClearIndicesCacheRequest request,
ShardRouting shardRouting)
Executes the shard-level operation.
|
protected ShardsIterator |
shards(ClusterState clusterState,
ClearIndicesCacheRequest request,
java.lang.String[] concreteIndices)
The refresh request works against *all* shards.
|
doExecute, doExecuteexecute, execute, execute, executelogDeprecatedSetting, logRemovedSetting, nodeName@Inject public TransportClearIndicesCacheAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, IndicesService indicesService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
protected TransportBroadcastByNodeAction.EmptyResult readShardResult(StreamInput in) throws java.io.IOException
TransportBroadcastByNodeActionreadShardResult in class TransportBroadcastByNodeAction<ClearIndicesCacheRequest,ClearIndicesCacheResponse,TransportBroadcastByNodeAction.EmptyResult>in - input streamjava.io.IOExceptionprotected ClearIndicesCacheResponse newResponse(ClearIndicesCacheRequest request, int totalShards, int successfulShards, int failedShards, java.util.List<TransportBroadcastByNodeAction.EmptyResult> responses, java.util.List<ShardOperationFailedException> shardFailures, ClusterState clusterState)
TransportBroadcastByNodeActionnewResponse in class TransportBroadcastByNodeAction<ClearIndicesCacheRequest,ClearIndicesCacheResponse,TransportBroadcastByNodeAction.EmptyResult>request - the underlying requesttotalShards - the total number of shards considered for execution of the operationsuccessfulShards - the total number of shards for which execution of the operation was successfulfailedShards - the total number of shards for which execution of the operation failedresponses - the per-node aggregated shard-level resultsshardFailures - the exceptions corresponding to shard operation failuresclusterState - the cluster stateprotected ClearIndicesCacheRequest readRequestFrom(StreamInput in) throws java.io.IOException
TransportBroadcastByNodeActionreadRequestFrom in class TransportBroadcastByNodeAction<ClearIndicesCacheRequest,ClearIndicesCacheResponse,TransportBroadcastByNodeAction.EmptyResult>in - input streamjava.io.IOExceptionprotected TransportBroadcastByNodeAction.EmptyResult shardOperation(ClearIndicesCacheRequest request, ShardRouting shardRouting)
TransportBroadcastByNodeActionshardOperation in class TransportBroadcastByNodeAction<ClearIndicesCacheRequest,ClearIndicesCacheResponse,TransportBroadcastByNodeAction.EmptyResult>request - the node-level requestshardRouting - the shard on which to execute the operationprotected ShardsIterator shards(ClusterState clusterState, ClearIndicesCacheRequest request, java.lang.String[] concreteIndices)
shards in class TransportBroadcastByNodeAction<ClearIndicesCacheRequest,ClearIndicesCacheResponse,TransportBroadcastByNodeAction.EmptyResult>clusterState - the cluster staterequest - the underlying requestconcreteIndices - the concrete indices on which to execute the operationprotected ClusterBlockException checkGlobalBlock(ClusterState state, ClearIndicesCacheRequest request)
TransportBroadcastByNodeActioncheckGlobalBlock in class TransportBroadcastByNodeAction<ClearIndicesCacheRequest,ClearIndicesCacheResponse,TransportBroadcastByNodeAction.EmptyResult>state - the cluster staterequest - the underlying requestprotected ClusterBlockException checkRequestBlock(ClusterState state, ClearIndicesCacheRequest request, java.lang.String[] concreteIndices)
TransportBroadcastByNodeActioncheckRequestBlock in class TransportBroadcastByNodeAction<ClearIndicesCacheRequest,ClearIndicesCacheResponse,TransportBroadcastByNodeAction.EmptyResult>state - the cluster staterequest - the underlying requestconcreteIndices - the concrete indices on which to execute the operation