public static class MoveAllocationCommand.Factory extends Object implements AllocationCommand.Factory<MoveAllocationCommand>
| Constructor and Description |
|---|
Factory() |
| Modifier and Type | Method and Description |
|---|---|
MoveAllocationCommand |
fromXContent(XContentParser parser)
|
MoveAllocationCommand |
readFrom(StreamInput in)
|
void |
toXContent(MoveAllocationCommand command,
XContentBuilder builder,
ToXContent.Params params,
String objectName)
Writes an
AllocationCommand using an XContentBuilder |
void |
writeTo(MoveAllocationCommand command,
StreamOutput out)
Writes an
AllocationCommand to a StreamOutput |
public MoveAllocationCommand readFrom(StreamInput in) throws IOException
AllocationCommand.FactoryreadFrom in interface AllocationCommand.Factory<MoveAllocationCommand>in - StreamInput to read the AllocationCommand fromAllocationCommand read from the StreamInputIOException - if something happens during readingpublic void writeTo(MoveAllocationCommand command, StreamOutput out) throws IOException
AllocationCommand.FactoryAllocationCommand to a StreamOutputwriteTo in interface AllocationCommand.Factory<MoveAllocationCommand>command - AllocationCommand to writeout - StreamOutput to write the AllocationCommand toIOException - if something happens during writing the commandpublic MoveAllocationCommand fromXContent(XContentParser parser) throws IOException
AllocationCommand.FactoryfromXContent in interface AllocationCommand.Factory<MoveAllocationCommand>parser - XContentParser to useAllocationCommand readIOException - if something happens during readingpublic void toXContent(MoveAllocationCommand command, XContentBuilder builder, ToXContent.Params params, String objectName) throws IOException
AllocationCommand.FactoryAllocationCommand using an XContentBuildertoXContent in interface AllocationCommand.Factory<MoveAllocationCommand>command - 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.