Class RerouteExplanation
java.lang.Object
org.elasticsearch.cluster.routing.allocation.RerouteExplanation
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class RerouteExplanation
extends java.lang.Object
implements org.elasticsearch.common.xcontent.ToXContentObject
Class encapsulating the explanation for a single
AllocationCommand
taken from the Deciders-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RerouteExplanation(AllocationCommand command, Decision decisions) -
Method Summary
Modifier and Type Method Description AllocationCommandcommand()Decisiondecisions()static RerouteExplanationreadFrom(StreamInput in)org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)static voidwriteTo(RerouteExplanation explanation, StreamOutput out)
-
Constructor Details
-
Method Details
-
command
-
decisions
-
readFrom
- Throws:
java.io.IOException
-
writeTo
public static void writeTo(RerouteExplanation explanation, StreamOutput out) throws java.io.IOException- 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:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-