Class Health

java.lang.Object
is.galia.status.Health

public final class Health extends Object

Application health, generally obtained from the HealthChecker.

This class is thread-safe.

  • Constructor Details

    • Health

      public Health()
  • Method Details

    • getColor

      public Health.Color getColor()
    • getMessage

      public String getMessage()
    • getPossibleColors

      public Health.Color[] getPossibleColors()
      For Jackson JSON serialization.
    • setMinColor

      public void setMinColor(Health.Color minColor)
      Sets the minimum color to the given value. Subsequent calls cannot set the color to any lower value.
    • toString

      public String toString()
      Overrides:
      toString in class Object