public static class CsvSingleReporter.Builder extends Object
CsvReporter instances. Defaults to using the
default locale, converting rates to events/second, converting durations
to milliseconds, and not filtering metrics.| Modifier and Type | Method and Description |
|---|---|
CsvSingleReporter |
build(File directory)
Builds a
CsvReporter with the given properties, writing
.csv files to the given directory. |
CsvSingleReporter.Builder |
convertDurationsTo(TimeUnit durationUnit)
Convert durations to the given time unit.
|
CsvSingleReporter.Builder |
convertRatesTo(TimeUnit rateUnit)
Convert rates to the given time unit.
|
CsvSingleReporter.Builder |
filter(com.codahale.metrics.MetricFilter filter)
Only report metrics which match the given filter.
|
CsvSingleReporter.Builder |
formatFor(Locale locale)
Format numbers for the given
Locale. |
CsvSingleReporter.Builder |
withClock(com.codahale.metrics.Clock clock)
Use the given
Clock instance for the time. |
public CsvSingleReporter.Builder formatFor(Locale locale)
Locale.locale - a Localethispublic CsvSingleReporter.Builder convertRatesTo(TimeUnit rateUnit)
rateUnit - a unit of timethispublic CsvSingleReporter.Builder convertDurationsTo(TimeUnit durationUnit)
durationUnit - a unit of timethispublic CsvSingleReporter.Builder withClock(com.codahale.metrics.Clock clock)
Clock instance for the time.clock - a Clock instancethispublic CsvSingleReporter.Builder filter(com.codahale.metrics.MetricFilter filter)
filter - a MetricFilterthispublic CsvSingleReporter build(File directory)
CsvReporter with the given properties, writing
.csv files to the given directory.directory - the directory in which the .csv files will be
createdCsvReporterCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.