public class RerouteExplanation extends 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 IOException
IOExceptionpublic static void writeTo(RerouteExplanation explanation, StreamOutput out) throws IOException
IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.