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
AHealthCheckerimplementation that is safe for using with multiple threads provided that the aggregatedHealthStatusProviderare 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 voidderegister(HealthStatusProvider healthStatusProvider)Deregisters aHealthStatusProvider.HealthStatusgetHealthStatus()Returns theHealthStatusfor the underlying component.voidregister(HealthStatusProvider healthStatusProvider)Registers aHealthStatusProvider.
-
-
-
Method Detail
-
register
public void register(HealthStatusProvider healthStatusProvider)
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
public void deregister(HealthStatusProvider healthStatusProvider)
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
public HealthStatus getHealthStatus()
Description copied from interface:HealthStatusProviderReturns theHealthStatusfor the underlying component.- Specified by:
getHealthStatusin interfaceHealthStatusProvider- Returns:
- The
HealthStatus.
-
-