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

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

public class AllocationDeciders
extends AllocationDecider

Holds several AllocationDeciders and combines them into a single allocation decision.


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
AllocationDeciders(Settings settings, NodeSettingsService nodeSettingsService)
           
AllocationDeciders(Settings settings, Set<AllocationDecider> allocations)
           
 
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

AllocationDeciders

public AllocationDeciders(Settings settings,
                          NodeSettingsService nodeSettingsService)

AllocationDeciders

@Inject
public AllocationDeciders(Settings settings,
                                 Set<AllocationDecider> allocations)
Method Detail

canRebalance

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

canAllocate

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

canRemain

public boolean canRemain(ShardRouting shardRouting,
                         RoutingNode node,
                         RoutingAllocation allocation)
Description copied from class: AllocationDecider
Can the provided shard routing remain on the node?

Overrides:
canRemain in class AllocationDecider


Copyright © 2009-2012. All Rights Reserved.