public class SnapshotIndexShardStatus extends BroadcastShardOperationResponse implements ToXContent
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
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
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, 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 BroadcastShardOperationResponse
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class BroadcastShardOperationResponse
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2015. All rights reserved.