private static class HFilePrettyPrinter.SimpleReporter extends com.codahale.metrics.ScheduledReporter
Modifier and Type | Class and Description |
---|---|
static class |
HFilePrettyPrinter.SimpleReporter.Builder
A builder for
HFilePrettyPrinter.SimpleReporter instances. |
Modifier and Type | Field and Description |
---|---|
private DateFormat |
dateFormat |
private Locale |
locale |
private PrintStream |
output |
Modifier | Constructor and Description |
---|---|
private |
SimpleReporter(com.codahale.metrics.MetricRegistry registry,
PrintStream output,
Locale locale,
TimeZone timeZone,
TimeUnit rateUnit,
TimeUnit durationUnit,
com.codahale.metrics.MetricFilter filter) |
Modifier and Type | Method and Description |
---|---|
static HFilePrettyPrinter.SimpleReporter.Builder |
forRegistry(com.codahale.metrics.MetricRegistry registry)
Returns a new
HFilePrettyPrinter.SimpleReporter.Builder for ConsoleReporter . |
private void |
printHistogram(com.codahale.metrics.Histogram histogram) |
void |
report(SortedMap<String,com.codahale.metrics.Gauge> gauges,
SortedMap<String,com.codahale.metrics.Counter> counters,
SortedMap<String,com.codahale.metrics.Histogram> histograms,
SortedMap<String,com.codahale.metrics.Meter> meters,
SortedMap<String,com.codahale.metrics.Timer> timers) |
private final PrintStream output
private final DateFormat dateFormat
private SimpleReporter(com.codahale.metrics.MetricRegistry registry, PrintStream output, Locale locale, TimeZone timeZone, TimeUnit rateUnit, TimeUnit durationUnit, com.codahale.metrics.MetricFilter filter)
public static HFilePrettyPrinter.SimpleReporter.Builder forRegistry(com.codahale.metrics.MetricRegistry registry)
HFilePrettyPrinter.SimpleReporter.Builder
for ConsoleReporter
.registry
- the registry to reportHFilePrettyPrinter.SimpleReporter.Builder
instance for a ConsoleReporter
public void report(SortedMap<String,com.codahale.metrics.Gauge> gauges, SortedMap<String,com.codahale.metrics.Counter> counters, SortedMap<String,com.codahale.metrics.Histogram> histograms, SortedMap<String,com.codahale.metrics.Meter> meters, SortedMap<String,com.codahale.metrics.Timer> timers)
report
in class com.codahale.metrics.ScheduledReporter
private void printHistogram(com.codahale.metrics.Histogram histogram)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.