org.elasticsearch.cluster.routing.allocation.decider
Class AllocationDeciders
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider
org.elasticsearch.cluster.routing.allocation.decider.AllocationDeciders
public class AllocationDeciders
- extends AllocationDecider
Holds several AllocationDecider
s and combines them into a single allocation decision.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AllocationDeciders
public AllocationDeciders(Settings settings,
NodeSettingsService nodeSettingsService)
AllocationDeciders
@Inject
public AllocationDeciders(Settings settings,
Set<AllocationDecider> allocations)
canRebalance
public boolean canRebalance(ShardRouting shardRouting,
RoutingAllocation allocation)
- Overrides:
canRebalance
in class AllocationDecider
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.