org.qi4j.spi.metrics

## Class NullMetricsFactory.NullHealthCheckFactory

- java.lang.Object
- - org.qi4j.spi.metrics.NullMetricsFactory.NullHealthCheckFactory

- All Implemented Interfaces:
    MetricsFactory, MetricsHealthCheckFactory
  Enclosing class:
    NullMetricsFactory

      public static class NullMetricsFactory.NullHealthCheckFactory
      extends Object
      implements MetricsHealthCheckFactory

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NullMetricsFactory.NullHealthCheckFactory()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Iterable<Metric>` | `registered()`
    `MetricsHealthCheck` | `registerHealthCheck(Class<?> origin, 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(Class<?> origin,
                                               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.

    - #### registered

          public Iterable<Metric> registered()

      Specified by:
        `registered` in interface `MetricsFactory`