Package org.forgerock.openig.health
Class BooleanProbe
java.lang.Object
org.forgerock.openig.health.BooleanProbe
- All Implemented Interfaces:
HealthProbe
A simple
HealthProbe
that returns a boolean status.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BooleanProbe
public BooleanProbe(boolean initialStatus) Creates a new instance ofBooleanProbe
.- Parameters:
initialStatus
- the initial status of the probe
-
-
Method Details
-
status
public boolean status()Description copied from interface:HealthProbe
Returns the status of the probe.- Specified by:
status
in interfaceHealthProbe
- Returns:
- true if the probe is healthy, false otherwise
-
ok
public void ok()Sets the status of the probe to true. -
ko
public void ko()Sets the status of the probe to false.
-