Class OpenSearchAllocationTestCase.TestAllocateDecision
java.lang.Object
org.opensearch.cluster.routing.allocation.decider.AllocationDecider
org.opensearch.cluster.OpenSearchAllocationTestCase.TestAllocateDecision
- Enclosing class:
OpenSearchAllocationTestCase
public static class OpenSearchAllocationTestCase.TestAllocateDecision
extends org.opensearch.cluster.routing.allocation.decider.AllocationDecider
-
Constructor Summary
ConstructorsConstructorDescriptionTestAllocateDecision(org.opensearch.cluster.routing.allocation.decider.Decision decision) -
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.cluster.routing.allocation.decider.DecisioncanAllocate(org.opensearch.cluster.routing.ShardRouting shardRouting, org.opensearch.cluster.routing.allocation.RoutingAllocation allocation) org.opensearch.cluster.routing.allocation.decider.DecisioncanAllocate(org.opensearch.cluster.routing.ShardRouting shardRouting, org.opensearch.cluster.routing.RoutingNode node, org.opensearch.cluster.routing.allocation.RoutingAllocation allocation) Methods inherited from class org.opensearch.cluster.routing.allocation.decider.AllocationDecider
canAllocate, canAllocateAnyShardToNode, canForceAllocatePrimary, canMoveAnyShard, canMoveAway, canRebalance, canRebalance, canRemain, shouldAutoExpandToNode
-
Constructor Details
-
TestAllocateDecision
public TestAllocateDecision(org.opensearch.cluster.routing.allocation.decider.Decision decision)
-
-
Method Details
-
canAllocate
public org.opensearch.cluster.routing.allocation.decider.Decision canAllocate(org.opensearch.cluster.routing.ShardRouting shardRouting, org.opensearch.cluster.routing.RoutingNode node, org.opensearch.cluster.routing.allocation.RoutingAllocation allocation) - Overrides:
canAllocatein classorg.opensearch.cluster.routing.allocation.decider.AllocationDecider
-
canAllocate
public org.opensearch.cluster.routing.allocation.decider.Decision canAllocate(org.opensearch.cluster.routing.ShardRouting shardRouting, org.opensearch.cluster.routing.allocation.RoutingAllocation allocation) - Overrides:
canAllocatein classorg.opensearch.cluster.routing.allocation.decider.AllocationDecider
-