Package org.elasticsearch.cluster.health
Class ClusterIndexHealth
org.elasticsearch.cluster.health.ClusterIndexHealth
- All Implemented Interfaces:
<ClusterShardHealth>
,Writeable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
public final class ClusterIndexHealth
extends
implements <ClusterShardHealth>, Writeable, org.elasticsearch.common.xcontent.ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ObjectParser.NamedObjectParser<>
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionClusterIndexHealth(IndexMetadata indexMetadata, IndexRoutingTable indexRoutingTable)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
o)
static ClusterIndexHealth
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
int
int
getIndex()
int
int
int
int
int
int
hashCode()
static ClusterIndexHealth
innerFromXContent(org.elasticsearch.common.xcontent.XContentParser parser, index)
iterator()
toString()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class java.lang.
, , , , , , ,
Methods inherited from interface java.lang.
,
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Field Details
-
SHARD_PARSER
public static final org.elasticsearch.common.xcontent.ObjectParser.NamedObjectParser<> SHARD_PARSER
-
-
Constructor Details
-
ClusterIndexHealth
-
ClusterIndexHealth
- Throws:
-
-
Method Details
-
getIndex
public getIndex() -
getNumberOfShards
public int getNumberOfShards() -
getNumberOfReplicas
public int getNumberOfReplicas() -
getActiveShards
public int getActiveShards() -
getRelocatingShards
public int getRelocatingShards() -
getActivePrimaryShards
public int getActivePrimaryShards() -
getInitializingShards
public int getInitializingShards() -
getUnassignedShards
public int getUnassignedShards() -
getStatus
-
getShards
-
iterator
- Specified by:
in interface
<ClusterShardHealth>
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
-
innerFromXContent
public static ClusterIndexHealth innerFromXContent(org.elasticsearch.common.xcontent.XContentParser parser, index) -
fromXContent
public static ClusterIndexHealth fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws- Throws:
-
toString
public toString()- Overrides:
in class
-
equals
public boolean equals( o)- Overrides:
in class
-
hashCode
public int hashCode()- Overrides:
in class
-