T
- Type of AllocationCommand
s created by this AllocationCommand.Factory
public static interface AllocationCommand.Factory<T extends AllocationCommand>
AllocationCommand
sModifier 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 StreamInput
IOException
- if something happens during readingvoid writeTo(T command, StreamOutput out) throws IOException
AllocationCommand
to a StreamOutput
command
- 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 XContentBuilder
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.