public class JmxImporter extends Producer
Modifier and Type | Class and Description |
---|---|
static class |
JmxImporter.AdditionalIdentityInfo |
static class |
JmxImporter.AttributeInfo |
static class |
JmxImporter.BeanInfo |
static class |
JmxImporter.MetricType |
static class |
JmxImporter.TrueQueryExp |
Constructor and Description |
---|
JmxImporter(Backends backends) |
JmxImporter(javax.management.MBeanServer mBeanServer,
Backends backends) |
Modifier and Type | Method and Description |
---|---|
void |
addBeanInfos(com.typesafe.config.Config config)
Parses the configuration looking for bean definitions and adds these to the internal set of
beans to monitor.
|
protected java.lang.String |
getProperty(java.lang.String key,
javax.management.ObjectName objectName) |
protected boolean |
isMatchingBeans(javax.management.ObjectName configBean,
javax.management.ObjectName addedBean) |
void |
start() |
void |
stop()
Lifecycle method called when the Cinnamon
Backends are
stopped, to enable cleanup of any resources acquired by the producer. |
public JmxImporter(Backends backends)
public JmxImporter(javax.management.MBeanServer mBeanServer, Backends backends)
public void start()
public void addBeanInfos(com.typesafe.config.Config config)
For beans to be added the configuration must follow the layout described in the Cinnamon documentation.
config
- the configuration to parse.protected boolean isMatchingBeans(javax.management.ObjectName configBean, javax.management.ObjectName addedBean)
protected java.lang.String getProperty(java.lang.String key, javax.management.ObjectName objectName)
Cinnamon API. Copyright (c) 2015–2021 Lightbend.