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

    Constructors 
    Constructor Description
    TestAllocateDecision​(org.opensearch.cluster.routing.allocation.decider.Decision decision)  
  • Method Summary

    Modifier and Type Method Description
    org.opensearch.cluster.routing.allocation.decider.Decision canAllocate​(org.opensearch.cluster.routing.ShardRouting shardRouting, org.opensearch.cluster.routing.allocation.RoutingAllocation allocation)  
    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)  

    Methods inherited from class org.opensearch.cluster.routing.allocation.decider.AllocationDecider

    canAllocate, canAllocateAnyShardToNode, canForceAllocatePrimary, canMoveAnyShard, canMoveAway, canRebalance, canRebalance, canRemain, shouldAutoExpandToNode

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      canAllocate in class org.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:
      canAllocate in class org.opensearch.cluster.routing.allocation.decider.AllocationDecider