org.elasticsearch.cluster.routing.allocation.decider
Class AllocationDecider
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider
- Direct Known Subclasses:
- AllocationDeciders, AwarenessAllocationDecider, ClusterRebalanceAllocationDecider, ConcurrentRebalanceAllocationDecider, DisableAllocationDecider, FilterAllocationDecider, RebalanceOnlyWhenActiveAllocationDecider, ReplicaAfterPrimaryActiveAllocationDecider, SameShardAllocationDecider, ShardsLimitAllocationDecider, ThrottlingAllocationDecider
public abstract class AllocationDecider
- 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 |
AllocationDecider
protected AllocationDecider(Settings settings)
canRebalance
public boolean canRebalance(ShardRouting shardRouting,
RoutingAllocation allocation)
canAllocate
public AllocationDecider.Decision canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation)
canRemain
public boolean canRemain(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation)
- Can the provided shard routing remain on the node?
Copyright © 2009-2012. All Rights Reserved.