Class RerouteExplanation
- java.lang.Object
-
- org.elasticsearch.cluster.routing.allocation.RerouteExplanation
-
- All Implemented Interfaces:
ToXContent
,ToXContentObject
public class RerouteExplanation extends java.lang.Object implements ToXContentObject
Class encapsulating the explanation for a singleAllocationCommand
taken from the Deciders
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description RerouteExplanation(AllocationCommand command, Decision decisions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocationCommand
command()
Decision
decisions()
static RerouteExplanation
readFrom(StreamInput in)
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
static void
writeTo(RerouteExplanation explanation, StreamOutput out)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Constructor Detail
-
RerouteExplanation
public RerouteExplanation(AllocationCommand command, Decision decisions)
-
-
Method Detail
-
command
public AllocationCommand command()
-
decisions
public Decision decisions()
-
readFrom
public static RerouteExplanation readFrom(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
writeTo
public static void writeTo(RerouteExplanation explanation, StreamOutput out) throws java.io.IOException
- Throws:
java.io.IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
-