public class GatewayAllocator extends AbstractComponent
deprecationLogger, logger, settings
Constructor and Description |
---|
GatewayAllocator(Settings settings,
TransportNodesListGatewayStartedShards startedAction,
TransportNodesListShardStoreMetaData storeAction) |
Modifier and Type | Method and Description |
---|---|
void |
allocateUnassigned(RoutingAllocation allocation) |
void |
applyFailedShards(FailedRerouteAllocation allocation) |
void |
applyStartedShards(StartedRerouteAllocation allocation) |
int |
getNumberOfInFlightFetch() |
boolean |
hasFetchPending(ShardId shardId,
boolean primary)
Returns true if the given shard has an async fetch pending
|
protected static void |
innerAllocatedUnassigned(RoutingAllocation allocation,
PrimaryShardAllocator primaryShardAllocator,
ReplicaShardAllocator replicaShardAllocator) |
void |
setReallocation(ClusterService clusterService,
RoutingService routingService) |
logDeprecatedSetting, logRemovedSetting, nodeName
@Inject public GatewayAllocator(Settings settings, TransportNodesListGatewayStartedShards startedAction, TransportNodesListShardStoreMetaData storeAction)
public boolean hasFetchPending(ShardId shardId, boolean primary)
public void setReallocation(ClusterService clusterService, RoutingService routingService)
public int getNumberOfInFlightFetch()
public void applyStartedShards(StartedRerouteAllocation allocation)
public void applyFailedShards(FailedRerouteAllocation allocation)
public void allocateUnassigned(RoutingAllocation allocation)
protected static void innerAllocatedUnassigned(RoutingAllocation allocation, PrimaryShardAllocator primaryShardAllocator, ReplicaShardAllocator replicaShardAllocator)