public class TransportNodesListGatewayStartedShards extends TransportNodesAction<TransportNodesListGatewayStartedShards.Request,TransportNodesListGatewayStartedShards.NodesGatewayStartedShards,TransportNodesListGatewayStartedShards.NodeRequest,TransportNodesListGatewayStartedShards.NodeGatewayStartedShards> implements AsyncShardFetch.List<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 String |
ACTION_NAME |
clusterName, clusterService, transportService
actionName, indexNameExpressionResolver, parseFieldMatcher, taskManager, threadPool
deprecationLogger, logger, settings
Constructor and Description |
---|
TransportNodesListGatewayStartedShards(Settings settings,
ClusterName clusterName,
ThreadPool threadPool,
ClusterService clusterService,
TransportService transportService,
ActionFilters actionFilters,
IndexNameExpressionResolver indexNameExpressionResolver,
NodeEnvironment env) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
accumulateExceptions() |
void |
list(ShardId shardId,
IndexMetaData indexMetaData,
String[] nodesIds,
ActionListener<TransportNodesListGatewayStartedShards.NodesGatewayStartedShards> listener) |
protected TransportNodesListGatewayStartedShards.NodeRequest |
newNodeRequest(String nodeId,
TransportNodesListGatewayStartedShards.Request request) |
protected TransportNodesListGatewayStartedShards.NodeGatewayStartedShards |
newNodeResponse() |
protected TransportNodesListGatewayStartedShards.NodesGatewayStartedShards |
newResponse(TransportNodesListGatewayStartedShards.Request request,
AtomicReferenceArray responses) |
protected TransportNodesListGatewayStartedShards.NodeGatewayStartedShards |
nodeOperation(TransportNodesListGatewayStartedShards.NodeRequest request) |
protected String[] |
resolveNodes(TransportNodesListGatewayStartedShards.Request request,
ClusterState clusterState) |
protected boolean |
transportCompress() |
doExecute, doExecute, filterNodeIds, nodeOperation
execute, execute, execute, execute
logDeprecatedSetting, logRemovedSetting, nodeName
public static final String ACTION_NAME
@Inject public TransportNodesListGatewayStartedShards(Settings settings, ClusterName clusterName, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, NodeEnvironment env)
public void list(ShardId shardId, IndexMetaData indexMetaData, String[] nodesIds, ActionListener<TransportNodesListGatewayStartedShards.NodesGatewayStartedShards> listener)
protected String[] resolveNodes(TransportNodesListGatewayStartedShards.Request request, ClusterState clusterState)
protected boolean transportCompress()
protected TransportNodesListGatewayStartedShards.NodeRequest newNodeRequest(String nodeId, TransportNodesListGatewayStartedShards.Request request)
protected TransportNodesListGatewayStartedShards.NodeGatewayStartedShards newNodeResponse()
protected TransportNodesListGatewayStartedShards.NodesGatewayStartedShards newResponse(TransportNodesListGatewayStartedShards.Request request, AtomicReferenceArray responses)
protected TransportNodesListGatewayStartedShards.NodeGatewayStartedShards nodeOperation(TransportNodesListGatewayStartedShards.NodeRequest request)
protected boolean accumulateExceptions()
Copyright © 2009–2017. All rights reserved.