Class SnapshotIndexStatus
java.lang.Object
org.elasticsearch.action.admin.cluster.snapshots.status.SnapshotIndexStatus
- All Implemented Interfaces:
Iterable<SnapshotIndexShardStatus>
,org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentFragment
public class SnapshotIndexStatus
extends Object
implements Iterable<SnapshotIndexShardStatus>, org.elasticsearch.xcontent.ToXContentFragment
Represents snapshot status of all shards in the index
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
-
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionSnapshotIndexStatus
(String index, Map<Integer, SnapshotIndexShardStatus> indexShards, SnapshotShardsStats shardsStats, SnapshotStats stats) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static SnapshotIndexStatus
fromXContent
(org.elasticsearch.xcontent.XContentParser parser) getIndex()
Returns the index nameA shard id to index snapshot shard status mapShards statsgetStats()
Returns snapshot statsint
hashCode()
iterator()
org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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.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:
iterator
in interfaceIterable<SnapshotIndexShardStatus>
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.elasticsearch.xcontent.ToXContent
- Throws:
IOException
-
fromXContent
public static SnapshotIndexStatus fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-