Class HealthStatus

java.lang.Object
io.smallrye.health.HealthStatus

public class HealthStatus extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.eclipse.microprofile.health.HealthCheck
    down(String name)
    Creates a health check with status down.
    static org.eclipse.microprofile.health.HealthCheck
    status(boolean status)
    Creates a health check with given status and default health check name (health-check).
    static org.eclipse.microprofile.health.HealthCheck
    status(String name, boolean status)
    Creates a health check with given status and health check name.
    static org.eclipse.microprofile.health.HealthCheck
    status(String name, BooleanSupplier supplier)
    Creates a health check with given status and health check name.
    static org.eclipse.microprofile.health.HealthCheck
    Creates a health check with status set from supplier and default health check name (health-check).
    static org.eclipse.microprofile.health.HealthCheck
    up(String name)
    Creates a health check with status up.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HealthStatus

      public HealthStatus()
  • Method Details

    • up

      public static org.eclipse.microprofile.health.HealthCheck up(String name)
      Creates a health check with status up.
      Parameters:
      name - of the health check
      Returns:
      Health check with status up and given name.
    • down

      public static org.eclipse.microprofile.health.HealthCheck down(String name)
      Creates a health check with status down.
      Parameters:
      name - of the health check
      Returns:
      Health check with status down and given name.
    • status

      public static org.eclipse.microprofile.health.HealthCheck status(BooleanSupplier supplier)
      Creates a health check with status set from supplier and default health check name (health-check).
      Parameters:
      supplier - to get status.
      Returns:
      Health check with given status and default name.
    • status

      public static org.eclipse.microprofile.health.HealthCheck status(boolean status)
      Creates a health check with given status and default health check name (health-check).
      Parameters:
      status -
      Returns:
      Health check with given status and default name.
    • status

      public static org.eclipse.microprofile.health.HealthCheck status(String name, BooleanSupplier supplier)
      Creates a health check with given status and health check name.
      Parameters:
      name - of the status.
      supplier - to get status.
      Returns:
      Health check with given status and name.
    • status

      public static org.eclipse.microprofile.health.HealthCheck status(String name, boolean status)
      Creates a health check with given status and health check name.
      Parameters:
      name - of the status.
      status -
      Returns:
      Health check with given status and name.