Package de.hybris.platform.metrics
Class HybrisJmxReporter
- java.lang.Object
-
- de.hybris.platform.metrics.HybrisJmxReporter
-
- All Implemented Interfaces:
com.codahale.metrics.Reporter,java.io.Closeable,java.lang.AutoCloseable
public class HybrisJmxReporter extends java.lang.Object implements com.codahale.metrics.Reporter, java.io.CloseableA reporter which listens for new metrics and exposes them as namespaced MBeans.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classHybrisJmxReporter.AbstractBeanstatic classHybrisJmxReporter.BuilderA builder forCsvReporterinstances.protected static classHybrisJmxReporter.JmxCounterstatic interfaceHybrisJmxReporter.JmxCounterMBeanprotected static classHybrisJmxReporter.JmxGaugestatic interfaceHybrisJmxReporter.JmxGaugeMBeanprotected static classHybrisJmxReporter.JmxHistogramstatic interfaceHybrisJmxReporter.JmxHistogramMBeanprotected static classHybrisJmxReporter.JmxListenerprotected static classHybrisJmxReporter.JmxMeterstatic interfaceHybrisJmxReporter.JmxMeterMBeanprotected static classHybrisJmxReporter.JmxTimerstatic interfaceHybrisJmxReporter.JmxTimerMBeanstatic interfaceHybrisJmxReporter.MetricMBeanprotected static classHybrisJmxReporter.MetricTimeUnits
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOGGER
-
Constructor Summary
Constructors Modifier Constructor Description protectedHybrisJmxReporter(javax.management.MBeanServer mBeanServer, java.lang.String domain, com.codahale.metrics.MetricRegistry registry, com.codahale.metrics.MetricFilter filter, HybrisJmxReporter.MetricTimeUnits timeUnits)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Stops the reporter.static HybrisJmxReporter.BuilderforRegistry(com.codahale.metrics.MetricRegistry registry)Returns a newHybrisJmxReporter.BuilderforHybrisJmxReporter.voidstart()Starts the reporter.voidstop()Stops the reporter.
-
-
-
Constructor Detail
-
HybrisJmxReporter
protected HybrisJmxReporter(javax.management.MBeanServer mBeanServer, java.lang.String domain, com.codahale.metrics.MetricRegistry registry, com.codahale.metrics.MetricFilter filter, HybrisJmxReporter.MetricTimeUnits timeUnits)
-
-
Method Detail
-
start
public void start()
Starts the reporter.
-
stop
public void stop()
Stops the reporter.
-
close
public void close()
Stops the reporter.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
forRegistry
public static HybrisJmxReporter.Builder forRegistry(com.codahale.metrics.MetricRegistry registry)
Returns a newHybrisJmxReporter.BuilderforHybrisJmxReporter.- Parameters:
registry- the registry to report- Returns:
- a
HybrisJmxReporter.Builderinstance for aHybrisJmxReporter
-
-