java.lang.Object
org.elasticsearch.cluster.routing.allocation.decider.Decision
org.elasticsearch.cluster.routing.allocation.decider.Decision.Single
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject
Enclosing class:
Decision

public static class Decision.Single extends Decision implements org.elasticsearch.xcontent.ToXContentObject
Simple class representing a single decision
  • Constructor Details

    • Single

      public Single(Decision.Type type, @Nullable String label, @Nullable String explanation, @Nullable Object... explanationParams)
      Creates a new Decision.Single decision of a given type
      Parameters:
      type - Decision.Type of the decision
      explanation - An explanation of this Decision
      explanationParams - A set of additional parameters
  • Method Details