org.qi4j.spi.metrics
Class NullMetricsFactory.NullHealthCheckFactory

java.lang.Object
  extended by org.qi4j.spi.metrics.NullMetricsFactory.NullHealthCheckFactory
All Implemented Interfaces:
MetricsFactory, MetricsHealthCheckFactory
Enclosing class:
NullMetricsFactory

public static class NullMetricsFactory.NullHealthCheckFactory
extends java.lang.Object
implements MetricsHealthCheckFactory


Constructor Summary
NullMetricsFactory.NullHealthCheckFactory()
           
 
Method Summary
 java.lang.Iterable<Metric> registered()
           
 MetricsHealthCheck registerHealthCheck(java.lang.Class<?> origin, java.lang.String name, MetricsHealthCheck check)
          Create a MetricsHealthCheck instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullMetricsFactory.NullHealthCheckFactory

public NullMetricsFactory.NullHealthCheckFactory()
Method Detail

registerHealthCheck

public MetricsHealthCheck registerHealthCheck(java.lang.Class<?> origin,
                                              java.lang.String name,
                                              MetricsHealthCheck check)
Description copied from interface: MetricsHealthCheckFactory
Create a MetricsHealthCheck instance. If the same arguments are given twice, the same instance must be returned.

Specified by:
registerHealthCheck in interface MetricsHealthCheckFactory
Parameters:
origin - The class that instantiate the metric
name - A human readable, short name of the metric.
check - The health check to be performed regularly.
Returns:
A MetricsHealthCheck instance to be used, OR org.qi4j.spi.metrics.DefaultMetric.NULL if not supported.
See Also:
DefaultMetric

registered

public java.lang.Iterable<Metric> registered()
Specified by:
registered in interface MetricsFactory