public static class HFilePrettyPrinter.SimpleReporter.Builder extends Object
HFilePrettyPrinter.SimpleReporter
instances. Defaults to using the default locale and
time zone, writing to System.out
, converting rates to events/second, converting
durations to milliseconds, and not filtering metrics.Modifier and Type | Field and Description |
---|---|
private TimeUnit |
durationUnit |
private com.codahale.metrics.MetricFilter |
filter |
private Locale |
locale |
private PrintStream |
output |
private TimeUnit |
rateUnit |
private com.codahale.metrics.MetricRegistry |
registry |
private TimeZone |
timeZone |
Modifier | Constructor and Description |
---|---|
private |
Builder(com.codahale.metrics.MetricRegistry registry) |
Modifier and Type | Method and Description |
---|---|
HFilePrettyPrinter.SimpleReporter |
build()
Builds a
ConsoleReporter with the given properties. |
HFilePrettyPrinter.SimpleReporter.Builder |
filter(com.codahale.metrics.MetricFilter filter)
Only report metrics which match the given filter.
|
HFilePrettyPrinter.SimpleReporter.Builder |
outputTo(PrintStream output)
Write to the given
PrintStream . |
private final com.codahale.metrics.MetricRegistry registry
private PrintStream output
private TimeUnit durationUnit
private com.codahale.metrics.MetricFilter filter
private Builder(com.codahale.metrics.MetricRegistry registry)
public HFilePrettyPrinter.SimpleReporter.Builder outputTo(PrintStream output)
PrintStream
.output
- a PrintStream
instance.this
public HFilePrettyPrinter.SimpleReporter.Builder filter(com.codahale.metrics.MetricFilter filter)
filter
- a MetricFilter
this
public HFilePrettyPrinter.SimpleReporter build()
ConsoleReporter
with the given properties.ConsoleReporter
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.