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

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

public class ShardsAllocators
extends AbstractComponent
implements ShardsAllocator


Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
ShardsAllocators()
           
ShardsAllocators(Settings settings)
           
ShardsAllocators(Settings settings, GatewayAllocator gatewayAllocator, ShardsAllocator allocator)
           
 
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

ShardsAllocators

public ShardsAllocators()

ShardsAllocators

public ShardsAllocators(Settings settings)

ShardsAllocators

@Inject
public ShardsAllocators(Settings settings,
                               GatewayAllocator gatewayAllocator,
                               ShardsAllocator allocator)
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.