org.elasticsearch.cluster.routing.allocation.decider
Class ShardsLimitAllocationDecider
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider
org.elasticsearch.cluster.routing.allocation.decider.ShardsLimitAllocationDecider
public class ShardsLimitAllocationDecider
- extends AllocationDecider
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INDEX_TOTAL_SHARDS_PER_NODE
public static final String INDEX_TOTAL_SHARDS_PER_NODE
- See Also:
- Constant Field Values
ShardsLimitAllocationDecider
@Inject
public ShardsLimitAllocationDecider(Settings settings)
canAllocate
public AllocationDecider.Decision canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation)
- Overrides:
canAllocate
in class AllocationDecider
canRemain
public boolean canRemain(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation)
- Description copied from class:
AllocationDecider
- Can the provided shard routing remain on the node?
- Overrides:
canRemain
in class AllocationDecider
Copyright © 2009-2012. All Rights Reserved.