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

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider
Direct Known Subclasses:
AllocationDeciders, AwarenessAllocationDecider, ClusterRebalanceAllocationDecider, ConcurrentRebalanceAllocationDecider, DisableAllocationDecider, FilterAllocationDecider, RebalanceOnlyWhenActiveAllocationDecider, ReplicaAfterPrimaryActiveAllocationDecider, SameShardAllocationDecider, ShardsLimitAllocationDecider, ThrottlingAllocationDecider

public abstract class AllocationDecider
extends AbstractComponent

A pluggable logic allowing to control if allocation of a shard is allowed on a specific node.


Nested Class Summary
static class AllocationDecider.Decision
           
 
Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
protected AllocationDecider(Settings settings)
           
 
Method Summary
 AllocationDecider.Decision canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)
           
 boolean canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)
           
 boolean canRemain(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)
          Can the provided shard routing remain on the node?
 
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

AllocationDecider

protected AllocationDecider(Settings settings)
Method Detail

canRebalance

public boolean canRebalance(ShardRouting shardRouting,
                            RoutingAllocation allocation)

canAllocate

public AllocationDecider.Decision canAllocate(ShardRouting shardRouting,
                                              RoutingNode node,
                                              RoutingAllocation allocation)

canRemain

public boolean canRemain(ShardRouting shardRouting,
                         RoutingNode node,
                         RoutingAllocation allocation)
Can the provided shard routing remain on the node?



Copyright © 2009-2012. All Rights Reserved.