org.elasticsearch.cluster.routing.allocation
Class NodeAllocations
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.cluster.routing.allocation.NodeAllocation
org.elasticsearch.cluster.routing.allocation.NodeAllocations
public class NodeAllocations
- extends NodeAllocation
Holds several NodeAllocation
s and combines them into a single allocation decision.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeAllocations
public NodeAllocations(Settings settings)
NodeAllocations
@Inject
public NodeAllocations(Settings settings,
java.util.Set<NodeAllocation> allocations)
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
canRebalance
public boolean canRebalance(ShardRouting shardRouting,
RoutingAllocation allocation)
- Overrides:
canRebalance
in class NodeAllocation
allocateUnassigned
public boolean allocateUnassigned(NodeAllocations nodeAllocations,
RoutingAllocation allocation)
- Overrides:
allocateUnassigned
in class NodeAllocation
canAllocate
public NodeAllocation.Decision canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation)
- Overrides:
canAllocate
in class NodeAllocation