Package de.hybris.platform.metrics
Class HybrisJmxReporter.Builder
- java.lang.Object
-
- de.hybris.platform.metrics.HybrisJmxReporter.Builder
-
- Enclosing class:
- HybrisJmxReporter
public static class HybrisJmxReporter.Builder extends java.lang.ObjectA builder forCsvReporterinstances. Defaults to using the default MBean server and not filtering metrics.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(com.codahale.metrics.MetricRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HybrisJmxReporterbuild()Builds aHybrisJmxReporterwith the given properties.HybrisJmxReporter.BuilderconvertDurationsTo(java.util.concurrent.TimeUnit durationUnit)Convert durations to the given time unit.HybrisJmxReporter.BuilderconvertRatesTo(java.util.concurrent.TimeUnit rateUnit)Convert rates to the given time unit.HybrisJmxReporter.Builderfilter(com.codahale.metrics.MetricFilter filter)Only report metrics which match the given filter.HybrisJmxReporter.BuilderinDomain(java.lang.String domain)HybrisJmxReporter.BuilderregisterWith(javax.management.MBeanServer mBeanServer)Register MBeans with the givenMBeanServer.HybrisJmxReporter.BuilderspecificDurationUnits(java.util.Map<java.lang.String,java.util.concurrent.TimeUnit> specificDurationUnits)Use specificTimeUnits for the duration of the metrics with these names.HybrisJmxReporter.BuilderspecificRateUnits(java.util.Map<java.lang.String,java.util.concurrent.TimeUnit> specificRateUnits)Use specificTimeUnits for the rate of the metrics with these names.
-
-
-
Method Detail
-
registerWith
public HybrisJmxReporter.Builder registerWith(javax.management.MBeanServer mBeanServer)
Register MBeans with the givenMBeanServer.- Parameters:
mBeanServer- anMBeanServer- Returns:
this
-
convertRatesTo
public HybrisJmxReporter.Builder convertRatesTo(java.util.concurrent.TimeUnit rateUnit)
Convert rates to the given time unit.- Parameters:
rateUnit- a unit of time- Returns:
this
-
convertDurationsTo
public HybrisJmxReporter.Builder convertDurationsTo(java.util.concurrent.TimeUnit durationUnit)
Convert durations to the given time unit.- Parameters:
durationUnit- a unit of time- Returns:
this
-
filter
public HybrisJmxReporter.Builder filter(com.codahale.metrics.MetricFilter filter)
Only report metrics which match the given filter.- Parameters:
filter- aMetricFilter- Returns:
this
-
inDomain
public HybrisJmxReporter.Builder inDomain(java.lang.String domain)
-
specificDurationUnits
public HybrisJmxReporter.Builder specificDurationUnits(java.util.Map<java.lang.String,java.util.concurrent.TimeUnit> specificDurationUnits)
Use specificTimeUnits for the duration of the metrics with these names.- Parameters:
specificDurationUnits- a map of metric names and specificTimeUnits- Returns:
this
-
specificRateUnits
public HybrisJmxReporter.Builder specificRateUnits(java.util.Map<java.lang.String,java.util.concurrent.TimeUnit> specificRateUnits)
Use specificTimeUnits for the rate of the metrics with these names.- Parameters:
specificRateUnits- a map of metric names and specificTimeUnits- Returns:
this
-
build
public HybrisJmxReporter build()
Builds aHybrisJmxReporterwith the given properties.- Returns:
- a
HybrisJmxReporter
-
-