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.

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

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

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

    
Returns the (static) default registry.

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