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.Logger
LOG
-
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)
JmxDatacollectionConfig
getConfig()
JmxCollection
getJmxCollection(String collectionName)
Map<String,BeanInfo>
getMBeanInfo(String cName)
static Map<String,BeanInfo>
getMBeanInfo(JmxCollection collection)
String
getRrdPath()
RrdRepository
getRrdRepository(String collectionName)
int
getStep(String cName)
JmxDatacollectionConfig
mergeConfigs(JmxDatacollectionConfig source, JmxDatacollectionConfig target)
void
onConfigUpdated(JmxDatacollectionConfig config)
Called when the configuration updated was updated.JmxDatacollectionConfig
translateConfig(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:
translateConfig
in classAbstractMergingJaxbConfigDao<JmxDatacollectionConfig,JmxDatacollectionConfig>
-
getConfig
public JmxDatacollectionConfig getConfig()
-
mergeConfigs
public JmxDatacollectionConfig mergeConfigs(JmxDatacollectionConfig source, JmxDatacollectionConfig target)
- Specified by:
mergeConfigs
in classAbstractMergingJaxbConfigDao<JmxDatacollectionConfig,JmxDatacollectionConfig>
-
onConfigUpdated
public void onConfigUpdated(JmxDatacollectionConfig config)
Description copied from class:AbstractMergingJaxbConfigDao
Called when the configuration updated was updated.- Overrides:
onConfigUpdated
in 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()
-
-