public class TransportNodesListGatewayStartedShards extends TransportNodesAction<TransportNodesListGatewayStartedShards.Request,TransportNodesListGatewayStartedShards.NodesGatewayStartedShards,TransportNodesListGatewayStartedShards.NodeRequest,TransportNodesListGatewayStartedShards.NodeGatewayStartedShards> implements AsyncShardFetch.Lister<TransportNodesListGatewayStartedShards.NodesGatewayStartedShards,TransportNodesListGatewayStartedShards.NodeGatewayStartedShards>
GatewayAllocator.
We use this to find out which node holds the latest shard version and which of them used to be a primary in order to allocate
shards after node or cluster restarts.| Modifier and Type | Class and Description |
|---|---|
static class |
TransportNodesListGatewayStartedShards.NodeGatewayStartedShards |
static class |
TransportNodesListGatewayStartedShards.NodeRequest |
static class |
TransportNodesListGatewayStartedShards.NodesGatewayStartedShards |
static class |
TransportNodesListGatewayStartedShards.Request |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION_NAME |
clusterService, nodeResponseClass, transportServiceactionName, indexNameExpressionResolver, taskManager, threadPooldeprecationLogger, logger, settings| Constructor and Description |
|---|
TransportNodesListGatewayStartedShards(Settings settings,
ThreadPool threadPool,
ClusterService clusterService,
TransportService transportService,
ActionFilters actionFilters,
IndexNameExpressionResolver indexNameExpressionResolver,
NodeEnvironment env,
IndicesService indicesService) |
| Modifier and Type | Method and Description |
|---|---|
void |
list(ShardId shardId,
DiscoveryNode[] nodes,
ActionListener<TransportNodesListGatewayStartedShards.NodesGatewayStartedShards> listener) |
protected TransportNodesListGatewayStartedShards.NodeRequest |
newNodeRequest(java.lang.String nodeId,
TransportNodesListGatewayStartedShards.Request request) |
protected TransportNodesListGatewayStartedShards.NodeGatewayStartedShards |
newNodeResponse() |
protected TransportNodesListGatewayStartedShards.NodesGatewayStartedShards |
newResponse(TransportNodesListGatewayStartedShards.Request request,
java.util.List<TransportNodesListGatewayStartedShards.NodeGatewayStartedShards> responses,
java.util.List<FailedNodeException> failures)
Create a new
NodesResponse (multi-node response). |
protected TransportNodesListGatewayStartedShards.NodeGatewayStartedShards |
nodeOperation(TransportNodesListGatewayStartedShards.NodeRequest request) |
protected boolean |
transportCompress() |
doExecute, doExecute, newResponse, nodeOperation, resolveRequestexecute, execute, execute, executelogDeprecatedSetting, logRemovedSetting, nodeNamepublic static final java.lang.String ACTION_NAME
@Inject public TransportNodesListGatewayStartedShards(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, NodeEnvironment env, IndicesService indicesService)
public void list(ShardId shardId, DiscoveryNode[] nodes, ActionListener<TransportNodesListGatewayStartedShards.NodesGatewayStartedShards> listener)
protected boolean transportCompress()
protected TransportNodesListGatewayStartedShards.NodeRequest newNodeRequest(java.lang.String nodeId, TransportNodesListGatewayStartedShards.Request request)
protected TransportNodesListGatewayStartedShards.NodeGatewayStartedShards newNodeResponse()
protected TransportNodesListGatewayStartedShards.NodesGatewayStartedShards newResponse(TransportNodesListGatewayStartedShards.Request request, java.util.List<TransportNodesListGatewayStartedShards.NodeGatewayStartedShards> responses, java.util.List<FailedNodeException> failures)
TransportNodesActionNodesResponse (multi-node response).newResponse in class TransportNodesAction<TransportNodesListGatewayStartedShards.Request,TransportNodesListGatewayStartedShards.NodesGatewayStartedShards,TransportNodesListGatewayStartedShards.NodeRequest,TransportNodesListGatewayStartedShards.NodeGatewayStartedShards>request - The associated request.responses - All successful node-level responses.failures - All node-level failures.null.protected TransportNodesListGatewayStartedShards.NodeGatewayStartedShards nodeOperation(TransportNodesListGatewayStartedShards.NodeRequest request)