public class SnapshotStatus extends Object implements ToXContent, Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Modifier and Type | Method and Description |
---|---|
Map<String,SnapshotIndexStatus> |
getIndices()
Returns list of snapshot indices
|
List<SnapshotIndexShardStatus> |
getShards()
Returns list of snapshot shards
|
SnapshotShardsStats |
getShardsStats() |
SnapshotId |
getSnapshotId()
Returns snapshot id
|
SnapshotsInProgress.State |
getState()
Returns snapshot state
|
SnapshotStats |
getStats()
Returns number of files in the snapshot
|
void |
readFrom(StreamInput in) |
static SnapshotStatus |
readSnapshotStatus(StreamInput in)
Reads snapshot status from stream input
|
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public SnapshotId getSnapshotId()
public SnapshotsInProgress.State getState()
public List<SnapshotIndexShardStatus> getShards()
public SnapshotShardsStats getShardsStats()
public Map<String,SnapshotIndexStatus> getIndices()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public static SnapshotStatus readSnapshotStatus(StreamInput in) throws IOException
in
- stream inputIOException
public SnapshotStats getStats()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2016. All rights reserved.