com.espertech.esper.metrics.codahale_metrics.metrics
Class HealthChecks

java.lang.Object
  extended by com.espertech.esper.metrics.codahale_metrics.metrics.HealthChecks

public class HealthChecks
extends java.lang.Object

A manager class for health checks.


Method Summary
static HealthCheckRegistry defaultRegistry()
          Returns the (static) default registry.
static void register(HealthCheck healthCheck)
          Registers an application HealthCheck with a given name.
static java.util.Map<java.lang.String,HealthCheck.Result> runHealthChecks()
          Runs the registered health checks and returns a map of the results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

register

public static void register(HealthCheck healthCheck)
Registers an application HealthCheck with a given name.

Parameters:
healthCheck - the HealthCheck instance

runHealthChecks

public static java.util.Map<java.lang.String,HealthCheck.Result> runHealthChecks()
Runs the registered health checks and returns a map of the results.

Returns:
a map of the health check results

defaultRegistry

public static HealthCheckRegistry defaultRegistry()
Returns the (static) default registry.

Returns:
the registry

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com