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

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.SameShardAllocationDecider

public class SameShardAllocationDecider
extends AllocationDecider

An allocation strategy that does not allow for the same shard instance to be allocated on the same node.


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

Field Detail

SAME_HOST_SETTING

public static final String SAME_HOST_SETTING
See Also:
Constant Field Values
Constructor Detail

SameShardAllocationDecider

@Inject
public SameShardAllocationDecider(Settings settings)
Method Detail

canAllocate

public AllocationDecider.Decision canAllocate(ShardRouting shardRouting,
                                              RoutingNode node,
                                              RoutingAllocation allocation)
Overrides:
canAllocate in class AllocationDecider


Copyright © 2009-2012. All Rights Reserved.