Class SnapshotIndexStatus
java.lang.Object
org.elasticsearch.action.admin.cluster.snapshots.status.SnapshotIndexStatus
- All Implemented Interfaces:
java.lang.Iterable<SnapshotIndexShardStatus>,ToXContent,ToXContentFragment
public class SnapshotIndexStatus extends java.lang.Object implements java.lang.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
-
Constructor Summary
Constructors Constructor Description SnapshotIndexStatus(java.lang.String index, java.util.Map<java.lang.Integer,SnapshotIndexShardStatus> indexShards, SnapshotShardsStats shardsStats, SnapshotStats stats) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)static SnapshotIndexStatusfromXContent(XContentParser parser)java.lang.StringgetIndex()Returns the index namejava.util.Map<java.lang.Integer,SnapshotIndexShardStatus>getShards()A shard id to index snapshot shard status mapSnapshotShardsStatsgetShardsStats()Shards statsSnapshotStatsgetStats()Returns snapshot statsinthashCode()java.util.Iterator<SnapshotIndexShardStatus>iterator()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)
-
Constructor Details
-
SnapshotIndexStatus
public SnapshotIndexStatus(java.lang.String index, java.util.Map<java.lang.Integer,SnapshotIndexShardStatus> indexShards, SnapshotShardsStats shardsStats, SnapshotStats stats)
-
-
Method Details
-
getIndex
public java.lang.String getIndex()Returns the index name -
getShards
A shard id to index snapshot shard status map -
getShardsStats
Shards stats -
getStats
Returns snapshot stats -
iterator
- Specified by:
iteratorin interfacejava.lang.Iterable<SnapshotIndexShardStatus>
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
fromXContent
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-