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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidderegister(HealthStatusProvider healthStatusProvider) Deregisters aHealthStatusProvider.Returns theHealthStatusfor the underlying component.voidregister(HealthStatusProvider healthStatusProvider) Registers aHealthStatusProvider.
-
Constructor Details
-
HealthCheckerImpl
public HealthCheckerImpl()
-
-
Method Details
-
register
Description copied from interface:HealthCheckerRegisters aHealthStatusProvider. After calling this method, theHealthStatusgiven by thehealthStatusProviderwill be taken into account for computing thisHealthStatus. This method must be idempotent.- Specified by:
registerin interfaceHealthChecker- Parameters:
healthStatusProvider- TheHealthStatusProviderto be registered.
-
deregister
Description copied from interface:HealthCheckerDeregisters aHealthStatusProvider. After calling this method, theHealthStatusgiven by thehealthStatusProviderwon't be taken into account for computing thisHealthStatus. This method must be idempotent. Calling this method with aHealthStatusProviderthat was not registered should have no effect.- Specified by:
deregisterin interfaceHealthChecker- Parameters:
healthStatusProvider- TheHealthStatusProviderto be deregistered.
-
getHealthStatus
Description copied from interface:HealthStatusProviderReturns theHealthStatusfor the underlying component.- Specified by:
getHealthStatusin interfaceHealthStatusProvider- Returns:
- The
HealthStatus.
-