Class JmxDatacollectionConfiggenerator
- java.lang.Object
-
- org.opennms.features.jmxconfiggenerator.jmxconfig.JmxDatacollectionConfiggenerator
-
public class JmxDatacollectionConfiggenerator extends 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 StringcreateAndRegisterUniqueAlias(String originalAlias)JmxDatacollectionConfiggenerateJmxConfigModel(List<String> ids, MBeanServerConnection mBeanServerConnection, String serviceName, Boolean runStandardVmBeans, Boolean skipNonNumber, Map<String,String> dictionary)JmxDatacollectionConfiggenerateJmxConfigModel(MBeanServerConnection mBeanServerConnection, String serviceName, Boolean runStandardVmBeans, Boolean skipNonNumber, Map<String,String> dictionary)Deprecated.protected booleanmatches(Collection<FilterCriteria> criteriaList, ObjectName objectName, MBeanAttributeInfo mBeanAttributeInfo)Verifies if the given mBeanAttributeInfo matches one of the given criteria list.voidwriteJmxConfigFile(JmxDatacollectionConfig jmxDatacollectionConfigModel, String outFile)
-
-
-
Constructor Detail
-
JmxDatacollectionConfiggenerator
public JmxDatacollectionConfiggenerator(LogAdapter logger)
-
-
Method Detail
-
generateJmxConfigModel
@Deprecated public JmxDatacollectionConfig generateJmxConfigModel(MBeanServerConnection mBeanServerConnection, String serviceName, Boolean runStandardVmBeans, Boolean skipNonNumber, Map<String,String> dictionary) throws MBeanServerQueryException, IOException, 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:
MBeanServerQueryExceptionIOExceptionJMException
-
generateJmxConfigModel
public JmxDatacollectionConfig generateJmxConfigModel(List<String> ids, MBeanServerConnection mBeanServerConnection, String serviceName, Boolean runStandardVmBeans, Boolean skipNonNumber, Map<String,String> dictionary) throws MBeanServerQueryException, IOException, JMException
-
matches
protected boolean matches(Collection<FilterCriteria> criteriaList, ObjectName objectName, 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, String outFile) throws IOException
- Throws:
IOException
-
-