Class RoutingExplanations
java.lang.Object
org.elasticsearch.cluster.routing.allocation.RoutingExplanations
- All Implemented Interfaces:
ToXContent
,ToXContentFragment
Class used to encapsulate a number of
RerouteExplanation
explanations.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(RerouteExplanation explanation) 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 objecttoXContent
(XContentBuilder builder, ToXContent.Params params) static void
writeTo
(RoutingExplanations explanations, StreamOutput out) Write the RoutingExplanations objectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
RoutingExplanations
public RoutingExplanations()
-
-
Method Details
-
add
-
explanations
-
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:
IOException
-
writeTo
Write the RoutingExplanations object- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-