public class RerouteExplanation extends Object implements ToXContent
AllocationCommand
taken from the DecidersToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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
IOException
public static void writeTo(RerouteExplanation explanation, StreamOutput out) throws IOException
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2016. All rights reserved.