Class HealthCheckRegistryImpl
java.lang.Object
de.xima.fc.monitoring.impl.healthcheck.HealthCheckRegistryImpl
- All Implemented Interfaces:
HealthCheckRegistry
@Eager
@ApplicationScoped
public class HealthCheckRegistryImpl
extends Object
implements HealthCheckRegistry
-
Method Summary
Modifier and TypeMethodDescriptiongetHealthCheck(String name) Gets a health check.Gets the health check thread pool executor.voidregister(String name, IHealthCheck check) Register a health check.runHealthCheck(String name) Run a health check.voidunregister(String name) Unregister a health check.
-
Method Details
-
getHealthCheckThreadPoolExecutor
Description copied from interface:HealthCheckRegistryGets the health check thread pool executor.- Specified by:
getHealthCheckThreadPoolExecutorin interfaceHealthCheckRegistry- Returns:
- the health check thread pool executor.
-
register
Description copied from interface:HealthCheckRegistryRegister a health check.- Specified by:
registerin interfaceHealthCheckRegistry- Parameters:
name- The name of the health check.check- The health check.
-
unregister
Description copied from interface:HealthCheckRegistryUnregister a health check.- Specified by:
unregisterin interfaceHealthCheckRegistry- Parameters:
name- The name of the health check.
-
getHealthCheck
Description copied from interface:HealthCheckRegistryGets a health check.- Specified by:
getHealthCheckin interfaceHealthCheckRegistry- Parameters:
name- The name of the health check.
-
runHealthCheck
Description copied from interface:HealthCheckRegistryRun a health check.- Specified by:
runHealthCheckin interfaceHealthCheckRegistry- Parameters:
name- The name of the health check.- Returns:
- The result of the health check.
-