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