Class ESAllocationTestCase.TestAllocateDecision

java.lang.Object
org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider
org.elasticsearch.cluster.ESAllocationTestCase.TestAllocateDecision
Enclosing class:
ESAllocationTestCase

public static class ESAllocationTestCase.TestAllocateDecision extends org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    org.elasticsearch.cluster.routing.allocation.decider.Decision
    canAllocate(org.elasticsearch.cluster.routing.ShardRouting shardRouting, org.elasticsearch.cluster.routing.allocation.RoutingAllocation allocation)
     
    org.elasticsearch.cluster.routing.allocation.decider.Decision
    canAllocate(org.elasticsearch.cluster.routing.ShardRouting shardRouting, org.elasticsearch.cluster.routing.RoutingNode node, org.elasticsearch.cluster.routing.allocation.RoutingAllocation allocation)
     

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

    canAllocate, canAllocateReplicaWhenThereIsRetentionLease, canForceAllocateDuringReplace, canForceAllocatePrimary, 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.elasticsearch.cluster.routing.allocation.decider.Decision decision)
  • Method Details

    • canAllocate

      public org.elasticsearch.cluster.routing.allocation.decider.Decision canAllocate(org.elasticsearch.cluster.routing.ShardRouting shardRouting, org.elasticsearch.cluster.routing.RoutingNode node, org.elasticsearch.cluster.routing.allocation.RoutingAllocation allocation)
      Overrides:
      canAllocate in class org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider
    • canAllocate

      public org.elasticsearch.cluster.routing.allocation.decider.Decision canAllocate(org.elasticsearch.cluster.routing.ShardRouting shardRouting, org.elasticsearch.cluster.routing.allocation.RoutingAllocation allocation)
      Overrides:
      canAllocate in class org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider