Class SnapshotIndexStatus
java.lang.Object
org.elasticsearch.action.admin.cluster.snapshots.status.SnapshotIndexStatus
- All Implemented Interfaces:
java.lang.Iterable<SnapshotIndexShardStatus>,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment
public class SnapshotIndexStatus extends java.lang.Object implements java.lang.Iterable<SnapshotIndexShardStatus>, org.elasticsearch.common.xcontent.ToXContentFragment
Represents snapshot status of all shards in the index
-
Nested Class Summary
-
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(org.elasticsearch.common.xcontent.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()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.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 org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
fromXContent
public static SnapshotIndexStatus fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException- 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
-