Package com.github.jpmsilva.jsystemd
Class HealthProvider.Health
java.lang.Object
com.github.jpmsilva.jsystemd.HealthProvider.Health
- Enclosing interface:
HealthProvider
Wrapper of health state.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthProvider.Healthhealthy()Synthesize a health object that represents a healthy application state.toString()
-
Field Details
-
healthy
public final boolean healthytrueif this object represents a healthy state,falseotherwise. -
details
Additional health details for each application component.
-
-
Constructor Details
-
Health
Provides for a health representation (healthy/unhealthy), with health details for each component.- Parameters:
healthy-trueif this object represents a healthy state,falseotherwisedetails- additional health details for each application component- Throws:
NullPointerException- if details is null
-
-
Method Details