Package de.hybris.platform.metrics
Class HybrisJmxReporter
java.lang.Object
de.hybris.platform.metrics.HybrisJmxReporter
- All Implemented Interfaces:
com.codahale.metrics.Reporter,Closeable,AutoCloseable
A reporter which listens for new metrics and exposes them as namespaced MBeans.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classstatic classA builder forCsvReporterinstances.protected static classstatic interfaceprotected static classstatic interfaceprotected static classstatic interfaceprotected static classprotected static classstatic interfaceprotected static classstatic interfacestatic interfaceprotected static class -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHybrisJmxReporter(MBeanServer mBeanServer, String domain, com.codahale.metrics.MetricRegistry registry, com.codahale.metrics.MetricFilter filter, HybrisJmxReporter.MetricTimeUnits timeUnits) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Stops the reporter.static HybrisJmxReporter.BuilderforRegistry(com.codahale.metrics.MetricRegistry registry) Returns a newHybrisJmxReporter.BuilderforHybrisJmxReporter.voidstart()Starts the reporter.voidstop()Stops the reporter.
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
HybrisJmxReporter
protected HybrisJmxReporter(MBeanServer mBeanServer, String domain, com.codahale.metrics.MetricRegistry registry, com.codahale.metrics.MetricFilter filter, HybrisJmxReporter.MetricTimeUnits timeUnits)
-
-
Method Details
-
start
public void start()Starts the reporter. -
stop
public void stop()Stops the reporter. -
close
public void close()Stops the reporter.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
forRegistry
Returns a newHybrisJmxReporter.BuilderforHybrisJmxReporter.- Parameters:
registry- the registry to report- Returns:
- a
HybrisJmxReporter.Builderinstance for aHybrisJmxReporter
-