public class SnapshotStatus extends java.lang.Object implements ToXContent, Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_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, waitisFragmentpublic 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
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic static SnapshotStatus readSnapshotStatus(StreamInput in) throws java.io.IOException
in - stream inputjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic SnapshotStats getStats()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOException