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,
java.lang.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 java.io.IOException
in
- StreamInput
to read the AllocationCommand
fromAllocationCommand
read from the StreamInput
java.io.IOException
- if something happens during readingvoid writeTo(T command, StreamOutput out) throws java.io.IOException
AllocationCommand
to a StreamOutput
command
- AllocationCommand
to writeout
- StreamOutput
to write the AllocationCommand
tojava.io.IOException
- if something happens during writing the commandT fromXContent(XContentParser parser) throws java.io.IOException
parser
- XContentParser
to useAllocationCommand
readjava.io.IOException
- if something happens during readingvoid toXContent(T command, XContentBuilder builder, ToXContent.Params params, @Nullable java.lang.String objectName) throws java.io.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 objectjava.io.IOException
- if something happens during writing the command