Class RoutingExplanations
java.lang.Object
org.elasticsearch.cluster.routing.allocation.RoutingExplanations
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
public class RoutingExplanations
extends java.lang.Object
implements org.elasticsearch.common.xcontent.ToXContentFragment
Class used to encapsulate a number of
RerouteExplanation
explanations.-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RoutingExplanations()
-
Method Summary
Modifier and Type Method Description RoutingExplanations
add(RerouteExplanation explanation)
java.util.List<RerouteExplanation>
explanations()
java.util.List<java.lang.String>
getYesDecisionMessages()
Provides feedback from commands with a YES decision that should be displayed to the user after the command has been appliedstatic RoutingExplanations
readFrom(StreamInput in)
Read in a RoutingExplanations objectorg.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
-
Constructor Details
-
RoutingExplanations
public RoutingExplanations()
-
-
Method Details
-
add
-
explanations
-
getYesDecisionMessages
public java.util.List<java.lang.String> getYesDecisionMessages()Provides feedback from commands with a YES decision that should be displayed to the user after the command has been applied -
readFrom
Read in a RoutingExplanations object- Throws:
java.io.IOException
-
writeTo
public static void writeTo(RoutingExplanations explanations, StreamOutput out) throws java.io.IOExceptionWrite the RoutingExplanations object- Throws:
java.io.IOException
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-