public class SnapshotIndexShardStatus extends BroadcastShardResponse implements ToXContent
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
headers
EMPTY_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, getShardId
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public SnapshotIndexShardStage getStage()
public SnapshotStats getStats()
public String getNodeId()
public String getFailure()
public static SnapshotIndexShardStatus readShardSnapshotStatus(StreamInput in) throws IOException
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class BroadcastShardResponse
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class BroadcastShardResponse
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2016. All rights reserved.