public class RerouteExplanation extends java.lang.Object implements ToXContent
AllocationCommand
taken from the DecidersToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
RerouteExplanation(AllocationCommand command,
Decision decisions) |
| Modifier and Type | Method and Description |
|---|---|
AllocationCommand |
command() |
Decision |
decisions() |
static RerouteExplanation |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
static void |
writeTo(RerouteExplanation explanation,
StreamOutput out) |
public 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