public static class JmxReporter.Builder extends Object
JmxReporter
instances. Defaults to using the default MBean server and
not filtering metrics.Modifier and Type | Method and Description |
---|---|
JmxReporter |
build()
Builds a
JmxReporter with the given properties. |
JmxReporter.Builder |
convertDurationsTo(TimeUnit durationUnit)
Convert durations to the given time unit.
|
JmxReporter.Builder |
convertRatesTo(TimeUnit rateUnit)
Convert rates to the given time unit.
|
JmxReporter.Builder |
filter(com.codahale.metrics.MetricFilter filter)
Only report metrics which match the given filter.
|
JmxReporter.Builder |
inDomain(String domain) |
JmxReporter.Builder |
registerWith(MBeanServer mBeanServer)
Register MBeans with the given
MBeanServer . |
JmxReporter.Builder |
specificDurationUnits(Map<String,TimeUnit> specificDurationUnits)
Use specific
TimeUnit s for the duration of the metrics with these names. |
JmxReporter.Builder |
specificRateUnits(Map<String,TimeUnit> specificRateUnits)
Use specific
TimeUnit s for the rate of the metrics with these names. |
public JmxReporter.Builder registerWith(MBeanServer mBeanServer)
MBeanServer
.mBeanServer
- an MBeanServer
this
public JmxReporter.Builder convertRatesTo(TimeUnit rateUnit)
rateUnit
- a unit of timethis
public JmxReporter.Builder convertDurationsTo(TimeUnit durationUnit)
durationUnit
- a unit of timethis
public JmxReporter.Builder filter(com.codahale.metrics.MetricFilter filter)
filter
- a MetricFilter
this
public JmxReporter.Builder inDomain(String domain)
public JmxReporter.Builder specificDurationUnits(Map<String,TimeUnit> specificDurationUnits)
TimeUnit
s for the duration of the metrics with these names.specificDurationUnits
- a map of metric names and specific TimeUnit
sthis
public JmxReporter.Builder specificRateUnits(Map<String,TimeUnit> specificRateUnits)
TimeUnit
s for the rate of the metrics with these names.specificRateUnits
- a map of metric names and specific TimeUnit
sthis
public JmxReporter build()
JmxReporter
with the given properties.JmxReporter
Copyright © 2024 Eclipse. All rights reserved.