public interface MetricsProvider
The Zest Runtime will automatically ook for a service that implements the MetricsProvider interdace and use it for internal Runtime metrics, such as the UnitOfWork measuring the time from creation to close.
The Metrics Library is available to add metric functionality to applications in the same way, and will use the same MetricsProvider.
Note that the usual visibitlity rules applies, so you might have more than one MetricsProvider server, perhaps per layer.
Modifier and Type | Method and Description |
---|---|
<T extends MetricsFactory> |
createFactory(Class<T> factoryType)
Creates a new factory instance.
|
<T extends MetricsFactory> T createFactory(Class<T> factoryType) throws MetricsNotSupportedException
T
- The metric type requested.factoryType
- The class of the metric type needed.MetricsNotSupportedException
- when the MetricsProvider is not supporting the factory type requested.