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