AsyncShardFetch.Lister<TransportNodesListGatewayStartedShards.NodesGatewayStartedShards,TransportNodesListGatewayStartedShards.NodeGatewayStartedShards>
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 | Description |
---|---|---|
static class |
TransportNodesListGatewayStartedShards.NodeGatewayStartedShards |
|
static class |
TransportNodesListGatewayStartedShards.NodeRequest |
|
static class |
TransportNodesListGatewayStartedShards.NodesGatewayStartedShards |
|
static class |
TransportNodesListGatewayStartedShards.Request |
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
ACTION_NAME |
deprecationLogger, logger, settings
actionName, indexNameExpressionResolver, taskManager, threadPool
clusterService, nodeResponseClass, transportService
Constructor | Description |
---|---|
TransportNodesListGatewayStartedShards(Settings settings,
ThreadPool threadPool,
ClusterService clusterService,
TransportService transportService,
ActionFilters actionFilters,
IndexNameExpressionResolver indexNameExpressionResolver,
NodeEnvironment env,
IndicesService indicesService) |
logDeprecatedSetting, logRemovedSetting, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, execute, execute, execute
doExecute, doExecute, newResponse, nodeOperation, resolveRequest
public 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)
TransportNodesAction
TransportNodesAction
(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)