Package org.kairosdb.metrics4j.plugins
Class JMXReporter
- java.lang.Object
-
- org.kairosdb.metrics4j.plugins.JMXReporter
-
- All Implemented Interfaces:
Closeable,AutoCloseable,EventListener,NotificationListener,Plugin,PostConfig
public class JMXReporter extends Object implements Plugin, Closeable, NotificationListener
-
-
Field Summary
Fields Modifier and Type Field Description static StringJMX_TYPE_PROPstatic StringMETRIC_TYPE
-
Constructor Summary
Constructors Constructor Description JMXReporter()JMXReporter(MBeanServer server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidhandleNotification(Notification notification, Object handback)voidinit()Called after Metrics4j has been configuredvoidsetClassNameAttributes(List<String> attributes)voidsetDefaultMetricType(String defaultMetricType)voidsetTypeMap(com.typesafe.config.Config typeMap)
-
-
-
Field Detail
-
JMX_TYPE_PROP
public static final String JMX_TYPE_PROP
- See Also:
- Constant Field Values
-
METRIC_TYPE
public static final String METRIC_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JMXReporter
public JMXReporter()
-
JMXReporter
public JMXReporter(MBeanServer server)
-
-
Method Detail
-
setTypeMap
public void setTypeMap(com.typesafe.config.Config typeMap)
-
setDefaultMetricType
public void setDefaultMetricType(String defaultMetricType)
-
init
public void init()
Description copied from interface:PostConfigCalled after Metrics4j has been configured- Specified by:
initin interfacePostConfig
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
handleNotification
public void handleNotification(Notification notification, Object handback)
- Specified by:
handleNotificationin interfaceNotificationListener
-
-