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 void
write()
Write all the registered metricsvoid
write(String scope)
Write the metrics that registered for the respective scope.void
write(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:MetricsWriter
Write the metrics that matches the metricName for the respective scope.- Specified by:
write
in interfaceMetricsWriter
- Throws:
NoSuchRegistryException
NoSuchMetricException
-
write
public void write(String scope) throws NoSuchRegistryException
Description copied from interface:MetricsWriter
Write the metrics that registered for the respective scope.- Specified by:
write
in interfaceMetricsWriter
- Throws:
NoSuchRegistryException
-
write
public void write() throws IOException
Description copied from interface:MetricsWriter
Write all the registered metrics- Specified by:
write
in interfaceMetricsWriter
- Throws:
IOException
-
-