org.elasticsearch.cluster.routing.allocation.allocator
Class EvenShardsCountAllocator
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.cluster.routing.allocation.allocator.EvenShardsCountAllocator
- All Implemented Interfaces:
- ShardsAllocator
public class EvenShardsCountAllocator
- extends AbstractComponent
- implements ShardsAllocator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EvenShardsCountAllocator
@Inject
public EvenShardsCountAllocator(Settings settings)
applyStartedShards
public void applyStartedShards(StartedRerouteAllocation allocation)
- Specified by:
applyStartedShards
in interface ShardsAllocator
applyFailedShards
public void applyFailedShards(FailedRerouteAllocation allocation)
- Specified by:
applyFailedShards
in interface ShardsAllocator
allocateUnassigned
public boolean allocateUnassigned(RoutingAllocation allocation)
- Specified by:
allocateUnassigned
in interface ShardsAllocator
rebalance
public boolean rebalance(RoutingAllocation allocation)
- Specified by:
rebalance
in interface ShardsAllocator
move
public boolean move(MutableShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation)
- Specified by:
move
in interface ShardsAllocator
Copyright © 2009-2012. All Rights Reserved.