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 Object
implements org.elasticsearch.common.xcontent.ToXContentFragment
Class used to encapsulate a number of 
RerouteExplanation
 explanations.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContentorg.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
- 
Field SummaryFields inherited from interface org.elasticsearch.common.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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 RoutingExplanationsreadFrom(StreamInput in)Read in a RoutingExplanations objectorg.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)static voidwriteTo(RoutingExplanations explanations, StreamOutput out)Write the RoutingExplanations objectMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragmentisFragment
- 
Constructor Details- 
RoutingExplanationspublic RoutingExplanations()
 
- 
- 
Method Details- 
add
- 
explanations
- 
getYesDecisionMessagesProvides feedback from commands with a YES decision that should be displayed to the user after the command has been applied
- 
readFromRead in a RoutingExplanations object- Throws:
- IOException
 
- 
writeToWrite the RoutingExplanations object- Throws:
- IOException
 
- 
toXContentpublic org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
- toXContentin interface- org.elasticsearch.common.xcontent.ToXContent
- Throws:
- IOException
 
 
-