Class SnapshotIndexStatus
- java.lang.Object
-
- org.elasticsearch.action.admin.cluster.snapshots.status.SnapshotIndexStatus
-
- All Implemented Interfaces:
Iterable<SnapshotIndexShardStatus>,ToXContent,ToXContentFragment
public class SnapshotIndexStatus extends Object implements Iterable<SnapshotIndexShardStatus>, ToXContentFragment
Represents snapshot status of all shards in the index
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description SnapshotIndexStatus(String index, Map<Integer,SnapshotIndexShardStatus> indexShards, SnapshotShardsStats shardsStats, SnapshotStats stats)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static SnapshotIndexStatusfromXContent(XContentParser parser)StringgetIndex()Returns the index nameMap<Integer,SnapshotIndexShardStatus>getShards()A shard id to index snapshot shard status mapSnapshotShardsStatsgetShardsStats()Shards statsSnapshotStatsgetStats()Returns snapshot statsinthashCode()Iterator<SnapshotIndexShardStatus>iterator()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
SnapshotIndexStatus
public SnapshotIndexStatus(String index, Map<Integer,SnapshotIndexShardStatus> indexShards, SnapshotShardsStats shardsStats, SnapshotStats stats)
-
-
Method Detail
-
getIndex
public String getIndex()
Returns the index name
-
getShards
public Map<Integer,SnapshotIndexShardStatus> getShards()
A shard id to index snapshot shard status map
-
getShardsStats
public SnapshotShardsStats getShardsStats()
Shards stats
-
getStats
public SnapshotStats getStats()
Returns snapshot stats
-
iterator
public Iterator<SnapshotIndexShardStatus> iterator()
- Specified by:
iteratorin interfaceIterable<SnapshotIndexShardStatus>
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
fromXContent
public static SnapshotIndexStatus fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
-