org.elasticsearch.cluster.routing.allocation
Class NodeAllocation
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.cluster.routing.allocation.NodeAllocation
- Direct Known Subclasses:
- BlobReuseExistingNodeAllocation, LocalGatewayNodeAllocation, NodeAllocations, RebalanceOnlyWhenActiveNodeAllocation, ReplicaAfterPrimaryActiveNodeAllocation, SameShardNodeAllocation, ThrottlingNodeAllocation
public abstract class NodeAllocation
- extends AbstractComponent
A pluggable logic allowing to control if allocation of a shard is allowed on a specific node.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeAllocation
protected NodeAllocation(Settings settings)
applyStartedShards
public void applyStartedShards(NodeAllocations nodeAllocations,
StartedRerouteAllocation allocation)
applyFailedShards
public void applyFailedShards(NodeAllocations nodeAllocations,
FailedRerouteAllocation allocation)
allocateUnassigned
public boolean allocateUnassigned(NodeAllocations nodeAllocations,
RoutingAllocation allocation)
canRebalance
public boolean canRebalance(ShardRouting shardRouting,
RoutingAllocation allocation)
canAllocate
public NodeAllocation.Decision canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation)