Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.yammer.metrics;
 import java.util.Map;

A manager class for health checks.
public class HealthChecks {
    private static final HealthCheckRegistry DEFAULT_REGISTRY = new HealthCheckRegistry();
    private HealthChecks() { /* unused */ }

Registers an application com.yammer.metrics.core.HealthCheck with a given name.

healthCheck the com.yammer.metrics.core.HealthCheck instance
    public static void register(HealthCheck healthCheck) {

Runs the registered health checks and returns a map of the results.

a map of the health check results
    public static Map<StringResultrunHealthChecks() {
        return .runHealthChecks();

Returns the (static) default registry.

the registry
    public static HealthCheckRegistry defaultRegistry() {
        return ;
New to GrepCode? Check out our FAQ X