java.lang.Object
org.elasticsearch.cluster.health.ClusterStateHealth
- All Implemented Interfaces:
Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
ConstructorsConstructorDescriptionClusterStateHealth
(int activePrimaryShards, int activeShards, int relocatingShards, int initializingShards, int unassignedShards, int unassignedPrimaryShards, int numberOfNodes, int numberOfDataNodes, double activeShardsPercent, ClusterHealthStatus status, Map<String, ClusterIndexHealth> indices) For ClusterHealthResponse's XContent ParserClusterStateHealth
(ClusterState clusterState) Creates a newClusterStateHealth
instance considering the current cluster state and all indices in the cluster.ClusterStateHealth
(ClusterState clusterState, String[] concreteIndices) Creates a newClusterStateHealth
instance considering the current cluster state and the provided index names. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
double
int
int
int
int
int
int
int
hashCode()
toString()
void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
ClusterStateHealth
Creates a newClusterStateHealth
instance considering the current cluster state and all indices in the cluster.- Parameters:
clusterState
- The current cluster state. Must not be null.
-
ClusterStateHealth
Creates a newClusterStateHealth
instance considering the current cluster state and the provided index names.- Parameters:
clusterState
- The current cluster state. Must not be null.concreteIndices
- An array of index names to consider. Must not be null but may be empty.
-
ClusterStateHealth
- Throws:
IOException
-
ClusterStateHealth
public ClusterStateHealth(int activePrimaryShards, int activeShards, int relocatingShards, int initializingShards, int unassignedShards, int unassignedPrimaryShards, int numberOfNodes, int numberOfDataNodes, double activeShardsPercent, ClusterHealthStatus status, Map<String, ClusterIndexHealth> indices) For ClusterHealthResponse's XContent Parser
-
-
Method Details
-
getActiveShards
public int getActiveShards() -
getRelocatingShards
public int getRelocatingShards() -
getActivePrimaryShards
public int getActivePrimaryShards() -
getInitializingShards
public int getInitializingShards() -
getUnassignedPrimaryShards
public int getUnassignedPrimaryShards() -
getUnassignedShards
public int getUnassignedShards() -
getNumberOfNodes
public int getNumberOfNodes() -
getNumberOfDataNodes
public int getNumberOfDataNodes() -
getStatus
-
getIndices
-
getActiveShardsPercent
public double getActiveShardsPercent() -
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
toString
-
equals
-
hashCode
public int hashCode()
-