Package org.elasticsearch.cluster.health
Class ClusterIndexHealth
java.lang.Object
org.elasticsearch.cluster.health.ClusterIndexHealth
- All Implemented Interfaces:
Iterable<ClusterShardHealth>,Writeable,ToXContent,ToXContentFragment
public final class ClusterIndexHealth
extends Object
implements Iterable<ClusterShardHealth>, Writeable, ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectParser.NamedObjectParser<ClusterShardHealth,String> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionClusterIndexHealth(IndexMetadata indexMetadata, IndexRoutingTable indexRoutingTable) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ClusterIndexHealthfromXContent(XContentParser parser) intintgetIndex()intintintintintinthashCode()static ClusterIndexHealthinnerFromXContent(XContentParser parser, String index) iterator()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.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
-
Field Details
-
SHARD_PARSER
-
-
Constructor Details
-
ClusterIndexHealth
-
ClusterIndexHealth
- Throws:
IOException
-
-
Method Details
-
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:
iteratorin interfaceIterable<ClusterShardHealth>
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
innerFromXContent
-
fromXContent
- Throws:
IOException
-
toString
-
equals
-
hashCode
public int hashCode()
-