public class TransportUpgradeStatusAction extends TransportBroadcastByNodeAction<UpgradeStatusRequest,UpgradeStatusResponse,ShardUpgradeStatus>
TransportBroadcastByNodeAction.AsyncAction, TransportBroadcastByNodeAction.EmptyResult, TransportBroadcastByNodeAction.NodeRequest
actionName, indexNameExpressionResolver, taskManager, threadPool
deprecationLogger, logger, settings
Constructor and Description |
---|
TransportUpgradeStatusAction(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,
UpgradeStatusRequest request)
Executes a global block check before polling the cluster state.
|
protected ClusterBlockException |
checkRequestBlock(ClusterState state,
UpgradeStatusRequest countRequest,
java.lang.String[] concreteIndices)
Executes a global request-level check before polling the cluster state.
|
protected UpgradeStatusResponse |
newResponse(UpgradeStatusRequest request,
int totalShards,
int successfulShards,
int failedShards,
java.util.List<ShardUpgradeStatus> responses,
java.util.List<ShardOperationFailedException> shardFailures,
ClusterState clusterState)
Creates a new response to the underlying request.
|
protected UpgradeStatusRequest |
readRequestFrom(StreamInput in)
Deserialize a request from an input stream
|
protected ShardUpgradeStatus |
readShardResult(StreamInput in)
Deserialize a shard-level result from an input stream
|
protected ShardUpgradeStatus |
shardOperation(UpgradeStatusRequest request,
ShardRouting shardRouting)
Executes the shard-level operation.
|
protected ShardsIterator |
shards(ClusterState clusterState,
UpgradeStatusRequest request,
java.lang.String[] concreteIndices)
Getting upgrade stats from *all* active shards.
|
doExecute, doExecute
execute, execute, execute, execute
logDeprecatedSetting, logRemovedSetting, nodeName
@Inject public TransportUpgradeStatusAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, IndicesService indicesService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
protected ShardsIterator shards(ClusterState clusterState, UpgradeStatusRequest request, java.lang.String[] concreteIndices)
shards
in class TransportBroadcastByNodeAction<UpgradeStatusRequest,UpgradeStatusResponse,ShardUpgradeStatus>
clusterState
- the cluster staterequest
- the underlying requestconcreteIndices
- the concrete indices on which to execute the operationprotected ClusterBlockException checkGlobalBlock(ClusterState state, UpgradeStatusRequest request)
TransportBroadcastByNodeAction
checkGlobalBlock
in class TransportBroadcastByNodeAction<UpgradeStatusRequest,UpgradeStatusResponse,ShardUpgradeStatus>
state
- the cluster staterequest
- the underlying requestprotected ClusterBlockException checkRequestBlock(ClusterState state, UpgradeStatusRequest countRequest, java.lang.String[] concreteIndices)
TransportBroadcastByNodeAction
checkRequestBlock
in class TransportBroadcastByNodeAction<UpgradeStatusRequest,UpgradeStatusResponse,ShardUpgradeStatus>
state
- the cluster statecountRequest
- the underlying requestconcreteIndices
- the concrete indices on which to execute the operationprotected ShardUpgradeStatus readShardResult(StreamInput in) throws java.io.IOException
TransportBroadcastByNodeAction
readShardResult
in class TransportBroadcastByNodeAction<UpgradeStatusRequest,UpgradeStatusResponse,ShardUpgradeStatus>
in
- input streamjava.io.IOException
protected UpgradeStatusResponse newResponse(UpgradeStatusRequest request, int totalShards, int successfulShards, int failedShards, java.util.List<ShardUpgradeStatus> responses, java.util.List<ShardOperationFailedException> shardFailures, ClusterState clusterState)
TransportBroadcastByNodeAction
newResponse
in class TransportBroadcastByNodeAction<UpgradeStatusRequest,UpgradeStatusResponse,ShardUpgradeStatus>
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 UpgradeStatusRequest readRequestFrom(StreamInput in) throws java.io.IOException
TransportBroadcastByNodeAction
readRequestFrom
in class TransportBroadcastByNodeAction<UpgradeStatusRequest,UpgradeStatusResponse,ShardUpgradeStatus>
in
- input streamjava.io.IOException
protected ShardUpgradeStatus shardOperation(UpgradeStatusRequest request, ShardRouting shardRouting)
TransportBroadcastByNodeAction
shardOperation
in class TransportBroadcastByNodeAction<UpgradeStatusRequest,UpgradeStatusResponse,ShardUpgradeStatus>
request
- the node-level requestshardRouting
- the shard on which to execute the operation