Package org.opennms.netmgt.config
Class JMXDataCollectionConfigDao
- java.lang.Object
-
- org.opennms.core.xml.AbstractMergingJaxbConfigDao<JmxDatacollectionConfig,JmxDatacollectionConfig>
-
- org.opennms.netmgt.config.JMXDataCollectionConfigDao
-
public class JMXDataCollectionConfigDao extends AbstractMergingJaxbConfigDao<JmxDatacollectionConfig,JmxDatacollectionConfig>
JAXB Based JMX Data Collection Config DAO- Author:
- Jesse White, Alejandro Galue
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description JMXDataCollectionConfigDao()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<Attrib>>getAttributeMap(String cName, String aSysoid, String anAddress)static Map<String,List<Attrib>>getAttributeMap(JmxCollection collection, String aSysoid, String anAddress)JmxDatacollectionConfiggetConfig()JmxCollectiongetJmxCollection(String collectionName)Map<String,BeanInfo>getMBeanInfo(String cName)static Map<String,BeanInfo>getMBeanInfo(JmxCollection collection)StringgetRrdPath()RrdRepositorygetRrdRepository(String collectionName)intgetStep(String cName)JmxDatacollectionConfigmergeConfigs(JmxDatacollectionConfig source, JmxDatacollectionConfig target)voidonConfigUpdated(JmxDatacollectionConfig config)Called when the configuration updated was updated.JmxDatacollectionConfigtranslateConfig(JmxDatacollectionConfig config)-
Methods inherited from class org.opennms.core.xml.AbstractMergingJaxbConfigDao
getLastUpdate, getObject, getOpennmsHome, getReloadCheckInterval, setOpennmsHome, setReloadCheckInterval
-
-
-
-
Method Detail
-
translateConfig
public JmxDatacollectionConfig translateConfig(JmxDatacollectionConfig config)
- Specified by:
translateConfigin classAbstractMergingJaxbConfigDao<JmxDatacollectionConfig,JmxDatacollectionConfig>
-
getConfig
public JmxDatacollectionConfig getConfig()
-
mergeConfigs
public JmxDatacollectionConfig mergeConfigs(JmxDatacollectionConfig source, JmxDatacollectionConfig target)
- Specified by:
mergeConfigsin classAbstractMergingJaxbConfigDao<JmxDatacollectionConfig,JmxDatacollectionConfig>
-
onConfigUpdated
public void onConfigUpdated(JmxDatacollectionConfig config)
Description copied from class:AbstractMergingJaxbConfigDaoCalled when the configuration updated was updated.- Overrides:
onConfigUpdatedin classAbstractMergingJaxbConfigDao<JmxDatacollectionConfig,JmxDatacollectionConfig>
-
getJmxCollection
public JmxCollection getJmxCollection(String collectionName)
-
getAttributeMap
public Map<String,List<Attrib>> getAttributeMap(String cName, String aSysoid, String anAddress)
-
getAttributeMap
public static Map<String,List<Attrib>> getAttributeMap(JmxCollection collection, String aSysoid, String anAddress)
-
getMBeanInfo
public static Map<String,BeanInfo> getMBeanInfo(JmxCollection collection)
-
getRrdRepository
public RrdRepository getRrdRepository(String collectionName)
-
getStep
public int getStep(String cName)
-
getRrdPath
public String getRrdPath()
-
-