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 Locale
this
public CsvSingleReporter.Builder convertRatesTo(TimeUnit rateUnit)
rateUnit
- a unit of timethis
public CsvSingleReporter.Builder convertDurationsTo(TimeUnit durationUnit)
durationUnit
- a unit of timethis
public CsvSingleReporter.Builder withClock(com.codahale.metrics.Clock clock)
Clock
instance for the time.clock
- a Clock
instancethis
public CsvSingleReporter.Builder filter(com.codahale.metrics.MetricFilter filter)
filter
- a MetricFilter
this
public 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
createdCsvReporter
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.