Class ClusterStateHealth

java.lang.Object
org.elasticsearch.cluster.health.ClusterStateHealth
All Implemented Interfaces:
java.lang.Iterable<ClusterIndexHealth>, Writeable

public final class ClusterStateHealth
extends java.lang.Object
implements java.lang.Iterable<ClusterIndexHealth>, Writeable
  • Constructor Details

    • ClusterStateHealth

      public ClusterStateHealth​(ClusterState clusterState)
      Creates a new ClusterStateHealth instance considering the current cluster state and all indices in the cluster.
      Parameters:
      clusterState - The current cluster state. Must not be null.
    • ClusterStateHealth

      public ClusterStateHealth​(ClusterState clusterState, java.lang.String[] concreteIndices)
      Creates a new ClusterStateHealth 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

      public ClusterStateHealth​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
    • ClusterStateHealth

      public ClusterStateHealth​(int activePrimaryShards, int activeShards, int relocatingShards, int initializingShards, int unassignedShards, int numberOfNodes, int numberOfDataNodes, double activeShardsPercent, ClusterHealthStatus status, java.util.Map<java.lang.String,​ClusterIndexHealth> indices)
      For ClusterHealthResponse's XContent Parser
  • Method Details