public abstract class ReplicaShardAllocator extends AbstractComponent
deprecationLogger, logger, settings
Constructor and Description |
---|
ReplicaShardAllocator(Settings settings) |
Modifier and Type | Method and Description |
---|---|
boolean |
allocateUnassigned(RoutingAllocation allocation) |
protected abstract AsyncShardFetch.FetchResult<TransportNodesListShardStoreMetaData.NodeStoreFilesMetaData> |
fetchData(ShardRouting shard,
RoutingAllocation allocation) |
boolean |
ignoreUnassignedIfDelayed(RoutingNodes.UnassignedShards.UnassignedIterator unassignedIterator,
ShardRouting shard)
Check if the allocation of the replica is to be delayed.
|
boolean |
processExistingRecoveries(RoutingAllocation allocation)
Process existing recoveries of replicas and see if we need to cancel them if we find a better
match.
|
logDeprecatedSetting, logRemovedSetting, nodeName
public ReplicaShardAllocator(Settings settings)
public boolean processExistingRecoveries(RoutingAllocation allocation)
public boolean allocateUnassigned(RoutingAllocation allocation)
public boolean ignoreUnassignedIfDelayed(RoutingNodes.UnassignedShards.UnassignedIterator unassignedIterator, ShardRouting shard)
unassignedIterator
- iterator over unassigned shardsshard
- the shard which might be delayedprotected abstract AsyncShardFetch.FetchResult<TransportNodesListShardStoreMetaData.NodeStoreFilesMetaData> fetchData(ShardRouting shard, RoutingAllocation allocation)
Copyright © 2009–2016. All rights reserved.