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(String scope)Write the metrics that registered for the respective scope.voidwrite(String 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(String scope, String metricName) throws NoSuchRegistryException, NoSuchMetricException
Description copied from interface:MetricsWriterWrite the metrics that matches the metricName for the respective scope.- Specified by:
writein interfaceMetricsWriter- Throws:
NoSuchRegistryExceptionNoSuchMetricException
-
write
public void write(String scope) throws NoSuchRegistryException
Description 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
-
-