Class ClusterHealthResponse

    • Constructor Detail

      • ClusterHealthResponse

        public ClusterHealthResponse​(java.lang.String clusterName,
                                     java.lang.String[] concreteIndices,
                                     ClusterState clusterState)
        needed for plugins BWC
      • ClusterHealthResponse

        public ClusterHealthResponse​(java.lang.String clusterName,
                                     java.lang.String[] concreteIndices,
                                     ClusterState clusterState,
                                     int numberOfPendingTasks,
                                     int numberOfInFlightFetch,
                                     int delayedUnassignedShards,
                                     TimeValue taskMaxWaitingTime)
    • Method Detail

      • getClusterName

        public java.lang.String getClusterName()
      • getActiveShards

        public int getActiveShards()
      • getRelocatingShards

        public int getRelocatingShards()
      • getActivePrimaryShards

        public int getActivePrimaryShards()
      • getInitializingShards

        public int getInitializingShards()
      • getUnassignedShards

        public int getUnassignedShards()
      • getNumberOfNodes

        public int getNumberOfNodes()
      • getNumberOfDataNodes

        public int getNumberOfDataNodes()
      • getNumberOfPendingTasks

        public int getNumberOfPendingTasks()
      • getNumberOfInFlightFetch

        public int getNumberOfInFlightFetch()
      • getDelayedUnassignedShards

        public int getDelayedUnassignedShards()
        The number of unassigned shards that are currently being delayed (for example, due to node leaving the cluster and waiting for a timeout for the node to come back in order to allocate the shards back to it).
      • isTimedOut

        public boolean isTimedOut()
        true if the waitForXXX has timeout out and did not match.
      • setTimedOut

        public void setTimedOut​(boolean timedOut)
      • setStatus

        public void setStatus​(ClusterHealthStatus status)
        Allows to explicitly override the derived cluster health status.
        status - The override status. Must not be null.
      • getTaskMaxWaitingTime

        public TimeValue getTaskMaxWaitingTime()
        The maximum wait time of all tasks in the queue
      • getActiveShardsPercent

        public double getActiveShardsPercent()
        The percentage of active shards, should be 100% in a green system
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object