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
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
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 boolean
equals(java.lang.Object o)
static SnapshotIndexStatus
fromXContent(XContentParser parser)
java.lang.String
getIndex()
Returns the index namejava.util.Map<java.lang.Integer,SnapshotIndexShardStatus>
getShards()
A shard id to index snapshot shard status mapSnapshotShardsStats
getShardsStats()
Shards statsSnapshotStats
getStats()
Returns snapshot statsint
hashCode()
java.util.Iterator<SnapshotIndexShardStatus>
iterator()
XContentBuilder
toXContent(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 org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
SnapshotIndexStatus
public SnapshotIndexStatus(java.lang.String index, java.util.Map<java.lang.Integer,SnapshotIndexShardStatus> indexShards, SnapshotShardsStats shardsStats, SnapshotStats stats)
-
-
Method Detail
-
getIndex
public java.lang.String getIndex()
Returns the index name
-
getShards
public java.util.Map<java.lang.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 java.util.Iterator<SnapshotIndexShardStatus> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<SnapshotIndexShardStatus>
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
fromXContent
public static SnapshotIndexStatus fromXContent(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-