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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IHealthCheckgetHealthCheck(String name)Gets a health check.ScheduledThreadPoolExecutorgetHealthCheckThreadPoolExecutor()Gets the health check thread pool executor.voidregister(String name, IHealthCheck check)Register a health check.IHealthCheck.ResultrunHealthCheck(String name)Run a health check.voidunregister(String name)Unregister a health check.
-
-
-
Method Detail
-
getHealthCheckThreadPoolExecutor
public ScheduledThreadPoolExecutor getHealthCheckThreadPoolExecutor()
Description copied from interface:HealthCheckRegistryGets the health check thread pool executor.- Specified by:
getHealthCheckThreadPoolExecutorin interfaceHealthCheckRegistry- Returns:
- the health check thread pool executor.
-
register
public void register(String name, IHealthCheck check)
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
public void unregister(String name)
Description copied from interface:HealthCheckRegistryUnregister a health check.- Specified by:
unregisterin interfaceHealthCheckRegistry- Parameters:
name- The name of the health check.
-
getHealthCheck
public IHealthCheck getHealthCheck(String name)
Description copied from interface:HealthCheckRegistryGets a health check.- Specified by:
getHealthCheckin interfaceHealthCheckRegistry- Parameters:
name- The name of the health check.
-
runHealthCheck
public IHealthCheck.Result runHealthCheck(String name)
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.
-
-