Class SnapshotStatus
- java.lang.Object
-
- org.elasticsearch.action.admin.cluster.snapshots.status.SnapshotStatus
-
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
public class SnapshotStatus extends Object implements ToXContentObject, Writeable
Status of a snapshot
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static SnapshotStatusfromXContent(XContentParser parser)Map<String,SnapshotIndexStatus>getIndices()Returns list of snapshot indicesList<SnapshotIndexShardStatus>getShards()Returns list of snapshot shardsSnapshotShardsStatsgetShardsStats()SnapshotgetSnapshot()Returns snapshotSnapshotsInProgress.StategetState()Returns snapshot stateSnapshotStatsgetStats()Returns number of files in the snapshotinthashCode()BooleanincludeGlobalState()Returns true if global state is included in the snapshot, false otherwise.StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Method Detail
-
getSnapshot
public Snapshot getSnapshot()
Returns snapshot
-
getState
public SnapshotsInProgress.State getState()
Returns snapshot state
-
includeGlobalState
public Boolean includeGlobalState()
Returns true if global state is included in the snapshot, false otherwise. Can be null if this information is unknown.
-
getShards
public List<SnapshotIndexShardStatus> getShards()
Returns list of snapshot shards
-
getShardsStats
public SnapshotShardsStats getShardsStats()
-
getIndices
public Map<String,SnapshotIndexStatus> getIndices()
Returns list of snapshot indices
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getStats
public SnapshotStats getStats()
Returns number of files in the snapshot
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
fromXContent
public static SnapshotStatus fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
-