public class ShardRecoveryResponse extends BroadcastShardOperationResponse implements ToXContent
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsheadersEMPTY_PARAMS| Constructor and Description |
|---|
ShardRecoveryResponse() |
| Modifier and Type | Method and Description |
|---|---|
void |
readFrom(StreamInput in) |
static ShardRecoveryResponse |
readShardRecoveryResponse(StreamInput in)
Builds a new ShardRecoveryResponse from the give input stream.
|
RecoveryState |
recoveryState()
Gets the recovery state information for the shard.
|
void |
recoveryState(RecoveryState recoveryState)
Sets the recovery state information for the shard.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
getIndex, getShardIdputHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextpublic void recoveryState(RecoveryState recoveryState)
recoveryState - Recovery state@Nullable public RecoveryState recoveryState()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class BroadcastShardOperationResponseIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class BroadcastShardOperationResponseIOExceptionpublic static ShardRecoveryResponse readShardRecoveryResponse(StreamInput in) throws IOException
in - Input streamIOExceptionCopyright © 2009–2016. All rights reserved.