Class MetricsWriterImpl
- java.lang.Object
-
- fish.payara.microprofile.metrics.writer.MetricsWriterImpl
-
- All Implemented Interfaces:
MetricsWriter
public class MetricsWriterImpl extends Object implements MetricsWriter
-
-
Constructor Summary
Constructors Constructor Description MetricsWriterImpl(MetricExporter exporter, Set<String> contextNames, Function<String,MetricsService.MetricsContext> getContextByName, org.eclipse.microprofile.metrics.Tag... globalTags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite()Write all the registered metricsvoidwrite(org.eclipse.microprofile.metrics.MetricRegistry.Type scope)Write the metrics that registered for the respective scope.voidwrite(org.eclipse.microprofile.metrics.MetricRegistry.Type scope, String metricName)Write the metrics that matches the metricName for the respective scope.
-
-
-
Constructor Detail
-
MetricsWriterImpl
public MetricsWriterImpl(MetricExporter exporter, Set<String> contextNames, Function<String,MetricsService.MetricsContext> getContextByName, org.eclipse.microprofile.metrics.Tag... globalTags)
-
-
Method Detail
-
write
public void write(org.eclipse.microprofile.metrics.MetricRegistry.Type scope, String metricName) throws NoSuchRegistryException, NoSuchMetricExceptionDescription copied from interface:MetricsWriterWrite the metrics that matches the metricName for the respective scope.- Specified by:
writein interfaceMetricsWriter- Throws:
NoSuchRegistryExceptionNoSuchMetricException
-
write
public void write(org.eclipse.microprofile.metrics.MetricRegistry.Type scope) throws NoSuchRegistryExceptionDescription copied from interface:MetricsWriterWrite the metrics that registered for the respective scope.- Specified by:
writein interfaceMetricsWriter- Throws:
NoSuchRegistryException
-
write
public void write() throws IOExceptionDescription copied from interface:MetricsWriterWrite all the registered metrics- Specified by:
writein interfaceMetricsWriter- Throws:
IOException
-
-