public class HealthCheckRegistry extends Object
| Constructor and Description |
|---|
HealthCheckRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
register(HealthCheck healthCheck)
Registers an application
HealthCheck. |
SortedMap<String,HealthCheck.Result> |
runHealthChecks()
Runs the registered health checks and returns a map of the results.
|
void |
unregister(HealthCheck healthCheck)
Unregisters the given
HealthCheck. |
void |
unregister(String name)
Unregisters the application
HealthCheck with the given name. |
public void register(HealthCheck healthCheck)
HealthCheck.healthCheck - the HealthCheck instancepublic void unregister(String name)
HealthCheck with the given name.name - the name of the HealthCheck instancepublic void unregister(HealthCheck healthCheck)
HealthCheck.healthCheck - a HealthCheckpublic SortedMap<String,HealthCheck.Result> runHealthChecks()
Copyright © 2012. All Rights Reserved.