ToXContent, ToXContentObjectpublic class RerouteExplanation extends java.lang.Object implements ToXContentObject
AllocationCommand
taken from the DecidersToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor | Description |
|---|---|
RerouteExplanation(AllocationCommand command,
Decision decisions) |
| 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic RerouteExplanation(AllocationCommand command, Decision decisions)
public AllocationCommand command()
public Decision decisions()
public static RerouteExplanation readFrom(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic static void writeTo(RerouteExplanation explanation, StreamOutput out) throws java.io.IOException
java.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOException