public static class NullMetricsFactory.NullHealthCheckFactory extends Object implements MetricsHealthCheckFactory
Constructor and Description |
---|
NullMetricsFactory.NullHealthCheckFactory() |
Modifier and Type | Method and Description |
---|---|
Iterable<Metric> |
registered() |
MetricsHealthCheck |
registerHealthCheck(Class<?> origin,
String name,
MetricsHealthCheck check)
Create a MetricsHealthCheck instance.
|
public NullMetricsFactory.NullHealthCheckFactory()
public MetricsHealthCheck registerHealthCheck(Class<?> origin, String name, MetricsHealthCheck check)
MetricsHealthCheckFactory
registerHealthCheck
in interface MetricsHealthCheckFactory
origin
- The class that instantiate the metricname
- A human readable, short name of the metric.check
- The health check to be performed regularly.public Iterable<Metric> registered()
registered
in interface MetricsFactory