Class AssignmentDecision

java.lang.Object
org.elasticsearch.persistent.decider.AssignmentDecision

public final class AssignmentDecision
extends java.lang.Object
AssignmentDecision represents the decision made during the process of assigning a persistent task to a node of the cluster.
See Also:
EnableAssignmentDecider
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  AssignmentDecision.Type  
  • Field Summary

    Fields
    Modifier and Type Field Description
    static AssignmentDecision YES  
  • Constructor Summary

    Constructors
    Constructor Description
    AssignmentDecision​(AssignmentDecision.Type type, java.lang.String reason)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getReason()  
    AssignmentDecision.Type getType()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getType

      public AssignmentDecision.Type getType()
    • getReason

      public java.lang.String getReason()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object