Package org.opends.server.monitors
Interface HealthChecker
- All Superinterfaces:
HealthStatusProvider
- All Known Implementing Classes:
HealthChecker.HealthCheckerImpl
A composite
HealthStatusProvider that computes its health status based on the registered
HealthStatusProvider.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classAHealthCheckerimplementation that is safe for using with multiple threads provided that the aggregatedHealthStatusProviderare thread-safe. -
Method Summary
Modifier and TypeMethodDescriptionvoidderegister(HealthStatusProvider healthStatusProvider) Deregisters aHealthStatusProvider.static HealthCheckerReturns a thread safe implementation ofHealthChecker.voidregister(HealthStatusProvider healthStatusProvider) Registers aHealthStatusProvider.Methods inherited from interface org.opends.server.monitors.HealthStatusProvider
getHealthStatus
-
Method Details
-
newHealthChecker
Returns a thread safe implementation ofHealthChecker.- Returns:
- a thread safe implementation of
HealthChecker.
-
register
Registers aHealthStatusProvider. After calling this method, theHealthStatusgiven by thehealthStatusProviderwill be taken into account for computing thisHealthStatus. This method must be idempotent.- Parameters:
healthStatusProvider- TheHealthStatusProviderto be registered.
-
deregister
Deregisters 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.- Parameters:
healthStatusProvider- TheHealthStatusProviderto be deregistered.
-