Package de.xima.fc.monitoring.health
Interface HealthCheckRegistry
-
- All Known Implementing Classes:
HealthCheckRegistryImpl
public interface HealthCheckRegistryRegistry for health checks.- Since:
- 8.2.0
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description IHealthCheckgetHealthCheck(String name)Gets a health check.ScheduledThreadPoolExecutorgetHealthCheckThreadPoolExecutor()Gets the health check thread pool executor.static HealthCheckRegistrygetInstance()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
-
getInstance
static HealthCheckRegistry getInstance()
-
register
void register(String name, IHealthCheck check)
Register a health check.- Parameters:
name- The name of the health check.check- The health check.
-
unregister
void unregister(String name)
Unregister a health check.- Parameters:
name- The name of the health check.
-
getHealthCheckThreadPoolExecutor
ScheduledThreadPoolExecutor getHealthCheckThreadPoolExecutor()
Gets the health check thread pool executor.- Returns:
- the health check thread pool executor.
-
getHealthCheck
IHealthCheck getHealthCheck(String name)
Gets a health check.- Parameters:
name- The name of the health check.
-
runHealthCheck
IHealthCheck.Result runHealthCheck(String name)
Run a health check.- Parameters:
name- The name of the health check.- Returns:
- The result of the health check.
-
-