Module org.elasticsearch.server
Class AllocationQueryContext
java.lang.Object
org.elasticsearch.cluster.routing.allocation.AllocationQueryContext
A read-only view of the allocation infrastructure for a given context. An efficient way
to make multiple queries to the allocator.
TODO: Consider moving users of this into the allocation infrastructure itself
-
Constructor Summary
ConstructorsConstructorDescriptionAllocationQueryContext(RoutingAllocation routingAllocation, AllocationDeciders allocationDeciders) -
Method Summary
Modifier and TypeMethodDescriptioncanAllocate(ShardRouting shardRouting, RoutingNode node) canRemain(ShardRouting shardRouting, RoutingNode node) booleanvoiddebugDecision(boolean debugDecision) metadata()Deprecated.state()
-
Constructor Details
-
AllocationQueryContext
public AllocationQueryContext(RoutingAllocation routingAllocation, AllocationDeciders allocationDeciders)
-
-
Method Details
-
state
-
canAllocate
-
canRemain
-
debugDecision
public boolean debugDecision() -
debugDecision
public void debugDecision(boolean debugDecision) -
decision
-
desiredNodes
-
routingNodes
-
metadata
-
routingAllocation
Deprecated.Do not use this method, it's here just to support a legacy API, it will be removed
-