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
A
HealthChecker
implementation that is safe for using with multiple threads provided that the
aggregated HealthStatusProvider
are thread-safe.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opends.server.monitors.HealthChecker
HealthChecker.HealthCheckerImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deregister
(HealthStatusProvider healthStatusProvider) Deregisters aHealthStatusProvider
.Returns theHealthStatus
for the underlying component.void
register
(HealthStatusProvider healthStatusProvider) Registers aHealthStatusProvider
.
-
Constructor Details
-
HealthCheckerImpl
public HealthCheckerImpl()
-
-
Method Details
-
register
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
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
Description copied from interface:HealthStatusProvider
Returns theHealthStatus
for the underlying component.- Specified by:
getHealthStatus
in interfaceHealthStatusProvider
- Returns:
- The
HealthStatus
.
-