Class JmxDatacollectionConfiggenerator
- java.lang.Object
-
- org.opennms.features.jmxconfiggenerator.jmxconfig.JmxDatacollectionConfiggenerator
-
public class JmxDatacollectionConfiggenerator extends java.lang.Object
- Author:
- Simon Walter
, Markus Neumann
-
-
Constructor Summary
Constructors Constructor Description JmxDatacollectionConfiggenerator(LogAdapter logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.String
createAndRegisterUniqueAlias(java.lang.String originalAlias)
JmxDatacollectionConfig
generateJmxConfigModel(java.util.List<java.lang.String> ids, javax.management.MBeanServerConnection mBeanServerConnection, java.lang.String serviceName, java.lang.Boolean runStandardVmBeans, java.lang.Boolean skipNonNumber, java.util.Map<java.lang.String,java.lang.String> dictionary)
JmxDatacollectionConfig
generateJmxConfigModel(javax.management.MBeanServerConnection mBeanServerConnection, java.lang.String serviceName, java.lang.Boolean runStandardVmBeans, java.lang.Boolean skipNonNumber, java.util.Map<java.lang.String,java.lang.String> dictionary)
Deprecated.protected boolean
matches(java.util.Collection<FilterCriteria> criteriaList, javax.management.ObjectName objectName, javax.management.MBeanAttributeInfo mBeanAttributeInfo)
Verifies if the given mBeanAttributeInfo matches one of the given criteria list.void
writeJmxConfigFile(JmxDatacollectionConfig jmxDatacollectionConfigModel, java.lang.String outFile)
-
-
-
Constructor Detail
-
JmxDatacollectionConfiggenerator
public JmxDatacollectionConfiggenerator(LogAdapter logger)
-
-
Method Detail
-
generateJmxConfigModel
@Deprecated public JmxDatacollectionConfig generateJmxConfigModel(javax.management.MBeanServerConnection mBeanServerConnection, java.lang.String serviceName, java.lang.Boolean runStandardVmBeans, java.lang.Boolean skipNonNumber, java.util.Map<java.lang.String,java.lang.String> dictionary) throws MBeanServerQueryException, java.io.IOException, javax.management.JMException
Deprecated.This method is for backwards compatibility and allows to not set any ids. If so, ids is set to "*:*".- Parameters:
mBeanServerConnection
-serviceName
-runStandardVmBeans
-dictionary
-- Returns:
- Throws:
MBeanServerQueryException
java.io.IOException
javax.management.JMException
-
generateJmxConfigModel
public JmxDatacollectionConfig generateJmxConfigModel(java.util.List<java.lang.String> ids, javax.management.MBeanServerConnection mBeanServerConnection, java.lang.String serviceName, java.lang.Boolean runStandardVmBeans, java.lang.Boolean skipNonNumber, java.util.Map<java.lang.String,java.lang.String> dictionary) throws MBeanServerQueryException, java.io.IOException, javax.management.JMException
- Throws:
MBeanServerQueryException
java.io.IOException
javax.management.JMException
-
matches
protected boolean matches(java.util.Collection<FilterCriteria> criteriaList, javax.management.ObjectName objectName, javax.management.MBeanAttributeInfo mBeanAttributeInfo)
Verifies if the given mBeanAttributeInfo matches one of the given criteria list.- Parameters:
criteriaList
-mBeanAttributeInfo
-- Returns:
- True if the given mBeanAttributeInfo matches one of the given criteria list.
-
writeJmxConfigFile
public void writeJmxConfigFile(JmxDatacollectionConfig jmxDatacollectionConfigModel, java.lang.String outFile) throws java.io.IOException
- Throws:
java.io.IOException
-
createAndRegisterUniqueAlias
protected java.lang.String createAndRegisterUniqueAlias(java.lang.String originalAlias)
-
-