Class HealthStatus


  • public class HealthStatus
    extends Object
    • Constructor Summary

      Constructors 
      Constructor Description
      HealthStatus()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      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 status​(BooleanSupplier supplier)
      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.
    • Constructor Detail

      • HealthStatus

        public HealthStatus()
    • Method Detail

      • 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.