public class SnapshotStatus extends java.lang.Object implements ToXContentObject, Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,SnapshotIndexStatus> |
getIndices()
Returns list of snapshot indices
|
java.util.List<SnapshotIndexShardStatus> |
getShards()
Returns list of snapshot shards
|
SnapshotShardsStats |
getShardsStats() |
Snapshot |
getSnapshot()
Returns snapshot
|
SnapshotsInProgress.State |
getState()
Returns snapshot state
|
SnapshotStats |
getStats()
Returns number of files in the snapshot
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static SnapshotStatus |
readSnapshotStatus(StreamInput in)
Reads snapshot status from stream input
|
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFragment
public Snapshot getSnapshot()
public SnapshotsInProgress.State getState()
public java.util.List<SnapshotIndexShardStatus> getShards()
public SnapshotShardsStats getShardsStats()
public java.util.Map<java.lang.String,SnapshotIndexStatus> getIndices()
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public static SnapshotStatus readSnapshotStatus(StreamInput in) throws java.io.IOException
in
- stream inputjava.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public SnapshotStats getStats()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException