Class HealthCheckRegistry
- java.lang.Object
-
- de.xima.fc.system.impl.server.health.HealthCheckRegistry
-
- All Implemented Interfaces:
IHealthCheckRegistry
@Named @Default @Eager @ApplicationScoped public class HealthCheckRegistry extends Object implements IHealthCheckRegistry
-
-
Constructor Summary
Constructors Constructor Description HealthCheckRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IHealthCheck
getHealthCheck(String name)
Gets a health check.void
register(String name, IHealthCheck check)
Register a health check.IHealthCheck.Result
runHealthCheck(String name)
Run a health check.void
unregister(String name)
Unregister a health check.
-
-
-
Method Detail
-
register
public void register(String name, IHealthCheck check)
Description copied from interface:IHealthCheckRegistry
Register a health check.- Specified by:
register
in interfaceIHealthCheckRegistry
- Parameters:
name
- The name of the health check.check
- The health check.
-
unregister
public void unregister(String name)
Description copied from interface:IHealthCheckRegistry
Unregister a health check.- Specified by:
unregister
in interfaceIHealthCheckRegistry
- Parameters:
name
- The name of the health check.
-
getHealthCheck
public IHealthCheck getHealthCheck(String name)
Description copied from interface:IHealthCheckRegistry
Gets a health check.- Specified by:
getHealthCheck
in interfaceIHealthCheckRegistry
- Parameters:
name
- The name of the health check.
-
runHealthCheck
public IHealthCheck.Result runHealthCheck(String name)
Description copied from interface:IHealthCheckRegistry
Run a health check.- Specified by:
runHealthCheck
in interfaceIHealthCheckRegistry
- Parameters:
name
- The name of the health check.- Returns:
- The result of the health check.
-
-