public class SnapshotIndexShardStatus extends BroadcastShardResponse implements ToXContent
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsheadersEMPTY_PARAMS| Modifier and Type | Method and Description |
|---|---|
String |
getFailure()
Returns reason for snapshot failure
|
String |
getNodeId()
Returns node id of the node where snapshot is currently running
|
SnapshotIndexShardStage |
getStage()
Returns snapshot stage
|
SnapshotStats |
getStats()
Returns snapshot stats
|
void |
readFrom(StreamInput in) |
static SnapshotIndexShardStatus |
readShardSnapshotStatus(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
getIndex, getShardIdremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic SnapshotIndexShardStage getStage()
public SnapshotStats getStats()
public String getNodeId()
public String getFailure()
public static SnapshotIndexShardStatus readShardSnapshotStatus(StreamInput in) throws IOException
IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class BroadcastShardResponseIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class BroadcastShardResponseIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.