Module org.elasticsearch.server
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.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotIndexStatus(String index, Map<Integer, SnapshotIndexShardStatus> indexShards, SnapshotShardsStats shardsStats, SnapshotStats stats) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetIndex()Returns the index nameA shard id to index snapshot shard status mapShards statsgetStats()Returns snapshot statsinthashCode()iterator()toString()toXContent(XContentBuilder builder, ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
SnapshotIndexStatus
public SnapshotIndexStatus(String index, Map<Integer, SnapshotIndexShardStatus> indexShards, SnapshotShardsStats shardsStats, SnapshotStats stats)
-
-
Method Details
-
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 interfaceIterable<SnapshotIndexShardStatus>
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-