org.elasticsearch.gateway.local
Class LocalGatewayNodeAllocation

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.cluster.routing.allocation.NodeAllocation
          extended by org.elasticsearch.gateway.local.LocalGatewayNodeAllocation

public class LocalGatewayNodeAllocation
extends NodeAllocation


Nested Class Summary
 
Nested classes/interfaces inherited from class org.elasticsearch.cluster.routing.allocation.NodeAllocation
NodeAllocation.Decision
 
Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
LocalGatewayNodeAllocation(Settings settings, TransportNodesListGatewayStartedShards listGatewayStartedShards, TransportNodesListShardStoreMetaData listShardStoreMetaData)
           
 
Method Summary
 boolean allocateUnassigned(NodeAllocations nodeAllocations, RoutingAllocation allocation)
           
 void applyFailedShards(NodeAllocations nodeAllocations, FailedRerouteAllocation allocation)
           
 void applyStartedShards(NodeAllocations nodeAllocations, StartedRerouteAllocation allocation)
           
 
Methods inherited from class org.elasticsearch.cluster.routing.allocation.NodeAllocation
canAllocate, canRebalance
 
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

LocalGatewayNodeAllocation

@Inject
public LocalGatewayNodeAllocation(Settings settings,
                                         TransportNodesListGatewayStartedShards listGatewayStartedShards,
                                         TransportNodesListShardStoreMetaData listShardStoreMetaData)
Method Detail

applyStartedShards

public void applyStartedShards(NodeAllocations nodeAllocations,
                               StartedRerouteAllocation allocation)
Overrides:
applyStartedShards in class NodeAllocation

applyFailedShards

public void applyFailedShards(NodeAllocations nodeAllocations,
                              FailedRerouteAllocation allocation)
Overrides:
applyFailedShards in class NodeAllocation

allocateUnassigned

public boolean allocateUnassigned(NodeAllocations nodeAllocations,
                                  RoutingAllocation allocation)
Overrides:
allocateUnassigned in class NodeAllocation