Class HealthProvider.Health

java.lang.Object
com.github.jpmsilva.jsystemd.HealthProvider.Health
Enclosing interface:
HealthProvider

public static class HealthProvider.Health extends Object
Wrapper of health state.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Additional health details for each application component.
    final boolean
    true if this object represents a healthy state, false otherwise.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Health(boolean healthy, Map<String,Object> details)
    Provides for a health representation (healthy/unhealthy), with health details for each component.
  • Method Summary

    Modifier and Type
    Method
    Description
    Synthesize a health object that represents a healthy application state.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • healthy

      public final boolean healthy
      true if this object represents a healthy state, false otherwise.
    • details

      public final Map<String,Object> details
      Additional health details for each application component.
  • Constructor Details

    • Health

      public Health(boolean healthy, Map<String,Object> details)
      Provides for a health representation (healthy/unhealthy), with health details for each component.
      Parameters:
      healthy - true if this object represents a healthy state, false otherwise
      details - additional health details for each application component
      Throws:
      NullPointerException - if details is null
  • Method Details

    • healthy

      public static HealthProvider.Health healthy()
      Synthesize a health object that represents a healthy application state.
      Returns:
      a synthetic healthy state.
    • toString

      public String toString()
      Overrides:
      toString in class Object