org.elasticsearch.cluster.routing.allocation.allocator
Class EvenShardsCountAllocator

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.cluster.routing.allocation.allocator.EvenShardsCountAllocator
All Implemented Interfaces:
ShardsAllocator

public class EvenShardsCountAllocator
extends AbstractComponent
implements ShardsAllocator


Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
EvenShardsCountAllocator(Settings settings)
           
 
Method Summary
 boolean allocateUnassigned(RoutingAllocation allocation)
           
 void applyFailedShards(FailedRerouteAllocation allocation)
           
 void applyStartedShards(StartedRerouteAllocation allocation)
           
 boolean move(MutableShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)
           
 boolean rebalance(RoutingAllocation allocation)
           
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvenShardsCountAllocator

@Inject
public EvenShardsCountAllocator(Settings settings)
Method Detail

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.