org.elasticsearch.cluster.routing.allocation.allocator
Class ShardsAllocators
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.cluster.routing.allocation.allocator.ShardsAllocators
- All Implemented Interfaces:
- ShardsAllocator
public class ShardsAllocators
- extends AbstractComponent
- implements ShardsAllocator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShardsAllocators
public ShardsAllocators()
ShardsAllocators
public ShardsAllocators(Settings settings)
ShardsAllocators
@Inject
public ShardsAllocators(Settings settings,
GatewayAllocator gatewayAllocator,
ShardsAllocator allocator)
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.