org.qi4j.spi.metrics
Class NullMetricsFactory.NullHistogramFactory

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

public static class NullMetricsFactory.NullHistogramFactory
extends java.lang.Object
implements MetricsHistogramFactory


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

Constructor Detail

NullMetricsFactory.NullHistogramFactory

public NullMetricsFactory.NullHistogramFactory()
Method Detail

createHistogram

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

Specified by:
createHistogram in interface MetricsHistogramFactory
Parameters:
origin - The class that instantiate the metric
name - A human readable, short name of the metric.
Returns:
A Metric 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