org.elasticsearch.cluster.routing.allocation.decider
Class RebalanceOnlyWhenActiveAllocationDecider

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider
          extended by org.elasticsearch.cluster.routing.allocation.decider.RebalanceOnlyWhenActiveAllocationDecider

public class RebalanceOnlyWhenActiveAllocationDecider
extends AllocationDecider

Only allow rebalancing when all shards are active within the shard replication group.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider
AllocationDecider.Decision
 
Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
RebalanceOnlyWhenActiveAllocationDecider(Settings settings)
           
 
Method Summary
 boolean canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)
           
 
Methods inherited from class org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider
canAllocate, canRemain
 
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

RebalanceOnlyWhenActiveAllocationDecider

@Inject
public RebalanceOnlyWhenActiveAllocationDecider(Settings settings)
Method Detail

canRebalance

public boolean canRebalance(ShardRouting shardRouting,
                            RoutingAllocation allocation)
Overrides:
canRebalance in class AllocationDecider


Copyright © 2009-2012. All Rights Reserved.