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
TimeUnits 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
TimeUnits for the rate of the metrics with these names. |
public JmxReporter.Builder registerWith(javax.management.MBeanServer mBeanServer)
MBeanServer.mBeanServer - an MBeanServerthispublic JmxReporter.Builder convertRatesTo(java.util.concurrent.TimeUnit rateUnit)
rateUnit - a unit of timethispublic JmxReporter.Builder createsObjectNamesWith(ObjectNameFactory onFactory)
public JmxReporter.Builder convertDurationsTo(java.util.concurrent.TimeUnit durationUnit)
durationUnit - a unit of timethispublic JmxReporter.Builder filter(MetricFilter filter)
filter - a MetricFilterthispublic JmxReporter.Builder inDomain(java.lang.String domain)
public JmxReporter.Builder specificDurationUnits(java.util.Map<java.lang.String,java.util.concurrent.TimeUnit> specificDurationUnits)
TimeUnits for the duration of the metrics with these names.specificDurationUnits - a map of metric names and specific TimeUnitsthispublic JmxReporter.Builder specificRateUnits(java.util.Map<java.lang.String,java.util.concurrent.TimeUnit> specificRateUnits)
TimeUnits for the rate of the metrics with these names.specificRateUnits - a map of metric names and specific TimeUnitsthispublic JmxReporter build()
JmxReporter with the given properties.JmxReporter"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"