Class RoutingExplanations

org.elasticsearch.cluster.routing.allocation.RoutingExplanations
All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

public class RoutingExplanations extends implements org.elasticsearch.common.xcontent.ToXContentFragment
Class used to encapsulate a number of RerouteExplanation explanations.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent

    org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
  • Field Summary

    Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    add​(RerouteExplanation explanation)
     
     
    <>
    Provides feedback from commands with a YES decision that should be displayed to the user after the command has been applied
    Read in a RoutingExplanations object
    org.elasticsearch.common.xcontent.XContentBuilder
    toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
     
    static void
    writeTo​(RoutingExplanations explanations, StreamOutput out)
    Write the RoutingExplanations object

    Methods inherited from class java.lang.

    , , , , , , , , , ,

    Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment

    isFragment
  • Constructor Details

    • RoutingExplanations

      public RoutingExplanations()
  • Method Details

    • add

      public RoutingExplanations add(RerouteExplanation explanation)
    • explanations

      public <RerouteExplanation> explanations()
    • getYesDecisionMessages

      public <> getYesDecisionMessages()
      Provides feedback from commands with a YES decision that should be displayed to the user after the command has been applied
    • readFrom

      public static RoutingExplanations readFrom(StreamInput in) throws
      Read in a RoutingExplanations object
      Throws:
    • writeTo

      public static void writeTo(RoutingExplanations explanations, StreamOutput out) throws
      Write the RoutingExplanations object
      Throws:
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws: