Class JmxImporter
- java.lang.Object
-
- com.lightbend.cinnamon.producer.Producer
-
- com.lightbend.cinnamon.jmximporter.JmxImporter
-
public class JmxImporter extends Producer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJmxImporter.AdditionalIdentityInfostatic classJmxImporter.AttributeInfostatic classJmxImporter.BeanInfostatic classJmxImporter.MetricTypestatic classJmxImporter.TrueQueryExp
-
Constructor Summary
Constructors Constructor Description JmxImporter(Backends backends)JmxImporter(javax.management.MBeanServer mBeanServer, Backends backends)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBeanInfos(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.StringgetProperty(java.lang.String key, javax.management.ObjectName objectName)protected booleanisMatchingBeans(javax.management.ObjectName configBean, javax.management.ObjectName addedBean)voidstart()voidstop()Lifecycle method called when the CinnamonBackendsare stopped, to enable cleanup of any resources acquired by the producer.
-
-
-
Method Detail
-
start
public void start()
-
addBeanInfos
public 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. This method is called during start-up of the JMXImporter, but beans can be added in runtime should one like to add beans dynamically.For beans to be added the configuration must follow the layout described in the Cinnamon documentation.
- Parameters:
config- the configuration to parse.- See Also:
- JMX Importer configuration
-
isMatchingBeans
protected boolean isMatchingBeans(javax.management.ObjectName configBean, javax.management.ObjectName addedBean)
-
getProperty
protected java.lang.String getProperty(java.lang.String key, javax.management.ObjectName objectName)
-
-