public static class MoveAllocationCommand.Factory extends Object implements AllocationCommand.Factory<MoveAllocationCommand>
Constructor and Description |
---|
MoveAllocationCommand.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.Factory
readFrom
in interface AllocationCommand.Factory<MoveAllocationCommand>
in
- StreamInput
to read the AllocationCommand
fromAllocationCommand
read from the StreamInput
IOException
- if something happens during readingpublic void writeTo(MoveAllocationCommand command, StreamOutput out) throws IOException
AllocationCommand.Factory
AllocationCommand
to a StreamOutput
writeTo
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.Factory
fromXContent
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.Factory
AllocationCommand
using an XContentBuilder
toXContent
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–2017. All rights reserved.