Enum Class HealthUtils

java.lang.Object
java.lang.Enum<HealthUtils>
com.erudika.para.server.utils.HealthUtils
All Implemented Interfaces:
com.erudika.para.core.listeners.InitializeListener, Serializable, Comparable<HealthUtils>, Constable, Runnable, EventListener

public enum HealthUtils extends Enum<HealthUtils> implements com.erudika.para.core.listeners.InitializeListener, Runnable
A utility for evaluating the health of the Para cluster.
Author:
Jeremy Wiesner [jswiesner@gmail.com]
  • Enum Constant Details Link icon

    • INSTANCE Link icon

      public static final HealthUtils INSTANCE
      Singleton.
  • Method Details Link icon

    • values Link icon

      public static HealthUtils[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf Link icon

      public static HealthUtils valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getInstance Link icon

      public static HealthUtils getInstance()
      Provides access to the singleton instance methods.
      Returns:
      an instance of this class
    • isHealthy Link icon

      public abstract boolean isHealthy()
      A method to query the general health of the Para server.
      Returns:
      true if server is healthy
    • performHealthCheck Link icon

      public abstract void performHealthCheck()
      Evaluate the health of the Para server by querying the root app object from the database, search and cache.