Package org.opends.server.monitors
Class HealthChecker.HealthCheckerImpl
- java.lang.Object
-
- org.opends.server.monitors.HealthChecker.HealthCheckerImpl
-
- All Implemented Interfaces:
HealthChecker
,HealthStatusProvider
- Enclosing interface:
- HealthChecker
public static final class HealthChecker.HealthCheckerImpl extends Object implements HealthChecker
AHealthChecker
implementation that is safe for using with multiple threads provided that the aggregatedHealthStatusProvider
are thread-safe.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opends.server.monitors.HealthChecker
HealthChecker.HealthCheckerImpl
-
-
Constructor Summary
Constructors Constructor Description HealthCheckerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deregister(HealthStatusProvider healthStatusProvider)
Deregisters aHealthStatusProvider
.HealthStatus
getHealthStatus()
Returns theHealthStatus
for the underlying component.void
register(HealthStatusProvider healthStatusProvider)
Registers aHealthStatusProvider
.
-
-
-
Method Detail
-
register
public void register(HealthStatusProvider healthStatusProvider)
Description copied from interface:HealthChecker
Registers aHealthStatusProvider
. After calling this method, theHealthStatus
given by thehealthStatusProvider
will be taken into account for computing thisHealthStatus
. This method must be idempotent.- Specified by:
register
in interfaceHealthChecker
- Parameters:
healthStatusProvider
- TheHealthStatusProvider
to be registered.
-
deregister
public void deregister(HealthStatusProvider healthStatusProvider)
Description copied from interface:HealthChecker
Deregisters aHealthStatusProvider
. After calling this method, theHealthStatus
given by thehealthStatusProvider
won't be taken into account for computing thisHealthStatus
. This method must be idempotent. Calling this method with aHealthStatusProvider
that was not registered should have no effect.- Specified by:
deregister
in interfaceHealthChecker
- Parameters:
healthStatusProvider
- TheHealthStatusProvider
to be deregistered.
-
getHealthStatus
public HealthStatus getHealthStatus()
Description copied from interface:HealthStatusProvider
Returns theHealthStatus
for the underlying component.- Specified by:
getHealthStatus
in interfaceHealthStatusProvider
- Returns:
- The
HealthStatus
.
-
-