Class BooleanProbe

java.lang.Object
org.forgerock.openig.health.BooleanProbe
All Implemented Interfaces:
HealthProbe

public class BooleanProbe extends Object implements HealthProbe
A simple HealthProbe that returns a boolean status.
  • Constructor Details

    • BooleanProbe

      public BooleanProbe(boolean initialStatus)
      Creates a new instance of BooleanProbe.
      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 interface HealthProbe
      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.