T - Type of AllocationCommands created by this AllocationCommand.Factorypublic static interface AllocationCommand.Factory<T extends AllocationCommand>
AllocationCommands| Modifier and Type | Method and Description |
|---|---|
T |
fromXContent(XContentParser parser)
|
T |
readFrom(StreamInput in)
|
void |
toXContent(T command,
XContentBuilder builder,
ToXContent.Params params,
String objectName)
Writes an
AllocationCommand using an XContentBuilder |
void |
writeTo(T command,
StreamOutput out)
Writes an
AllocationCommand to a StreamOutput |
T readFrom(StreamInput in) throws IOException
in - StreamInput to read the AllocationCommand fromAllocationCommand read from the StreamInputIOException - if something happens during readingvoid writeTo(T command, StreamOutput out) throws IOException
AllocationCommand to a StreamOutputcommand - AllocationCommand to writeout - StreamOutput to write the AllocationCommand toIOException - if something happens during writing the commandT fromXContent(XContentParser parser) throws IOException
parser - XContentParser to useAllocationCommand readIOException - if something happens during readingvoid toXContent(T command, XContentBuilder builder, ToXContent.Params params, @Nullable String objectName) throws IOException
AllocationCommand using an XContentBuildercommand - AllocationCommand to writebuilder - XContentBuilder to useparams - parameters to use when writing the commandobjectName - object the encoding should be encased in, null means a plain objectIOException - if something happens during writing the commandCopyright © 2009–2016. All rights reserved.