Class TransportNodesListGatewayStartedShards

All Implemented Interfaces:
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>
This transport action is used to fetch the shard version from each node during primary allocation in 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.