Class RerouteExplanation
java.lang.Object
org.opensearch.cluster.routing.allocation.RerouteExplanation
- All Implemented Interfaces:
org.opensearch.common.xcontent.ToXContent
,org.opensearch.common.xcontent.ToXContentObject
public class RerouteExplanation
extends java.lang.Object
implements org.opensearch.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 AllocationCommand
command()
Decision
decisions()
static RerouteExplanation
readFrom(StreamInput in)
org.opensearch.common.xcontent.XContentBuilder
toXContent(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params)
static void
writeTo(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.opensearch.common.xcontent.XContentBuilder toXContent(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceorg.opensearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-