public class ShardRecoveryResponse extends BroadcastShardOperationResponse implements ToXContent
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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, getShardId
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContext
public void recoveryState(RecoveryState recoveryState)
recoveryState
- Recovery state@Nullable public RecoveryState recoveryState()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class BroadcastShardOperationResponse
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class BroadcastShardOperationResponse
IOException
public static ShardRecoveryResponse readShardRecoveryResponse(StreamInput in) throws IOException
in
- Input streamIOException
Copyright © 2009–2015. All rights reserved.