|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yammer.metrics.core.HealthCheckRegistry
public class HealthCheckRegistry
A registry for health checks.
| Constructor Summary | |
|---|---|
HealthCheckRegistry()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HealthCheckRegistry()
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||