public static class CsvReporter.Builder
extends java.lang.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 |
|---|---|
CsvReporter |
build(java.io.File directory)
Builds a
CsvReporter with the given properties, writing .csv files to the
given directory. |
CsvReporter.Builder |
convertDurationsTo(java.util.concurrent.TimeUnit durationUnit)
Convert durations to the given time unit.
|
CsvReporter.Builder |
convertRatesTo(java.util.concurrent.TimeUnit rateUnit)
Convert rates to the given time unit.
|
CsvReporter.Builder |
filter(MetricFilter filter)
Only report metrics which match the given filter.
|
CsvReporter.Builder |
formatFor(java.util.Locale locale)
Format numbers for the given
Locale. |
CsvReporter.Builder |
scheduleOn(java.util.concurrent.ScheduledExecutorService executor)
Specifies the executor to use while scheduling reporting of metrics.
|
CsvReporter.Builder |
shutdownExecutorOnStop(boolean shutdownExecutorOnStop)
Specifies whether or not, the executor (used for reporting) will be stopped with same time with reporter.
|
CsvReporter.Builder |
withClock(Clock clock)
Use the given
Clock instance for the time. |
CsvReporter.Builder |
withCsvFileProvider(CsvFileProvider csvFileProvider) |
public CsvReporter.Builder shutdownExecutorOnStop(boolean shutdownExecutorOnStop)
scheduleOn(ScheduledExecutorService).shutdownExecutorOnStop - if true, then executor will be stopped in same time with this reporterthispublic CsvReporter.Builder scheduleOn(java.util.concurrent.ScheduledExecutorService executor)
executor - the executor to use while scheduling reporting of metrics.thispublic CsvReporter.Builder formatFor(java.util.Locale locale)
Locale.locale - a Localethispublic CsvReporter.Builder convertRatesTo(java.util.concurrent.TimeUnit rateUnit)
rateUnit - a unit of timethispublic CsvReporter.Builder convertDurationsTo(java.util.concurrent.TimeUnit durationUnit)
durationUnit - a unit of timethispublic CsvReporter.Builder withClock(Clock clock)
Clock instance for the time.clock - a Clock instancethispublic CsvReporter.Builder filter(MetricFilter filter)
filter - a MetricFilterthispublic CsvReporter.Builder withCsvFileProvider(CsvFileProvider csvFileProvider)
public CsvReporter build(java.io.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 © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"