public static class JmxReporter.Builder
extends java.lang.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(java.util.concurrent.TimeUnit durationUnit)
Convert durations to the given time unit.
|
JmxReporter.Builder |
convertRatesTo(java.util.concurrent.TimeUnit rateUnit)
Convert rates to the given time unit.
|
JmxReporter.Builder |
createsObjectNamesWith(ObjectNameFactory onFactory) |
JmxReporter.Builder |
filter(MetricFilter filter)
Only report metrics which match the given filter.
|
JmxReporter.Builder |
inDomain(java.lang.String domain) |
JmxReporter.Builder |
registerWith(javax.management.MBeanServer mBeanServer)
Register MBeans with the given
MBeanServer . |
JmxReporter.Builder |
specificDurationUnits(java.util.Map<java.lang.String,java.util.concurrent.TimeUnit> specificDurationUnits)
Use specific
TimeUnit s for the duration of the metrics with these names. |
JmxReporter.Builder |
specificRateUnits(java.util.Map<java.lang.String,java.util.concurrent.TimeUnit> specificRateUnits)
Use specific
TimeUnit s for the rate of the metrics with these names. |
public JmxReporter.Builder registerWith(javax.management.MBeanServer mBeanServer)
MBeanServer
.mBeanServer
- an MBeanServer
this
public JmxReporter.Builder convertRatesTo(java.util.concurrent.TimeUnit rateUnit)
rateUnit
- a unit of timethis
public JmxReporter.Builder createsObjectNamesWith(ObjectNameFactory onFactory)
public JmxReporter.Builder convertDurationsTo(java.util.concurrent.TimeUnit durationUnit)
durationUnit
- a unit of timethis
public JmxReporter.Builder filter(MetricFilter filter)
filter
- a MetricFilter
this
public JmxReporter.Builder inDomain(java.lang.String domain)
public JmxReporter.Builder specificDurationUnits(java.util.Map<java.lang.String,java.util.concurrent.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(java.util.Map<java.lang.String,java.util.concurrent.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 © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"