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 java.util.Map<java.lang.String,java.util.List<Attrib>>
getAttributeMap(java.lang.String cName, java.lang.String aSysoid, java.lang.String anAddress)
static java.util.Map<java.lang.String,java.util.List<Attrib>>
getAttributeMap(JmxCollection collection, java.lang.String aSysoid, java.lang.String anAddress)
JmxDatacollectionConfig
getConfig()
JmxCollection
getJmxCollection(java.lang.String collectionName)
java.util.Map<java.lang.String,BeanInfo>
getMBeanInfo(java.lang.String cName)
static java.util.Map<java.lang.String,BeanInfo>
getMBeanInfo(JmxCollection collection)
java.lang.String
getRrdPath()
RrdRepository
getRrdRepository(java.lang.String collectionName)
int
getStep(java.lang.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(java.lang.String collectionName)
-
getAttributeMap
public java.util.Map<java.lang.String,java.util.List<Attrib>> getAttributeMap(java.lang.String cName, java.lang.String aSysoid, java.lang.String anAddress)
-
getAttributeMap
public static java.util.Map<java.lang.String,java.util.List<Attrib>> getAttributeMap(JmxCollection collection, java.lang.String aSysoid, java.lang.String anAddress)
-
getMBeanInfo
public java.util.Map<java.lang.String,BeanInfo> getMBeanInfo(java.lang.String cName)
-
getMBeanInfo
public static java.util.Map<java.lang.String,BeanInfo> getMBeanInfo(JmxCollection collection)
-
getRrdRepository
public RrdRepository getRrdRepository(java.lang.String collectionName)
-
getStep
public int getStep(java.lang.String cName)
-
getRrdPath
public java.lang.String getRrdPath()
-
-