Class XmlDataCollectionConfigDaoJaxb
- java.lang.Object
-
- org.opennms.core.xml.AbstractJaxbConfigDao<XmlDataCollectionConfig,XmlDataCollectionConfig>
-
- org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb
-
- All Implemented Interfaces:
XmlDataCollectionConfigDao
,org.springframework.beans.factory.InitializingBean
public class XmlDataCollectionConfigDaoJaxb extends AbstractJaxbConfigDao<XmlDataCollectionConfig,XmlDataCollectionConfig> implements XmlDataCollectionConfigDao
The Class XmlDataCollectionConfigDaoJaxb.- Author:
- Alejandro Galue
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
AbstractJaxbConfigDao.JaxbReloadCallback
-
-
Constructor Summary
Constructors Constructor Description XmlDataCollectionConfigDaoJaxb()
Instantiates a new XML data collection configuration DAO using JAXB.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlDataCollectionConfig
getConfig()
Gets the configuration.XmlDataCollection
getDataCollectionByIndex(int idx)
Gets the data collection by index.XmlDataCollection
getDataCollectionByName(java.lang.String name)
Gets the data collection by name.protected XmlDataCollectionConfig
translateConfig(XmlDataCollectionConfig config)
translateConfig-
Methods inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
addOnReloadedCallback, afterPropertiesSet, getConfigResource, getContainer, getDescription, getReloadCheckInterval, loadConfig, setConfigResource, setReloadCheckInterval
-
-
-
-
Method Detail
-
getDataCollectionByName
public XmlDataCollection getDataCollectionByName(java.lang.String name)
Description copied from interface:XmlDataCollectionConfigDao
Gets the data collection by name.- Specified by:
getDataCollectionByName
in interfaceXmlDataCollectionConfigDao
- Parameters:
name
- the collection name- Returns:
- the data collection by name
-
getDataCollectionByIndex
public XmlDataCollection getDataCollectionByIndex(int idx)
Description copied from interface:XmlDataCollectionConfigDao
Gets the data collection by index.- Specified by:
getDataCollectionByIndex
in interfaceXmlDataCollectionConfigDao
- Parameters:
idx
- the collection index- Returns:
- the data collection by index
-
getConfig
public XmlDataCollectionConfig getConfig()
Description copied from interface:XmlDataCollectionConfigDao
Gets the configuration.- Specified by:
getConfig
in interfaceXmlDataCollectionConfigDao
- Returns:
- the configuration
-
translateConfig
protected XmlDataCollectionConfig translateConfig(XmlDataCollectionConfig config)
Description copied from class:AbstractJaxbConfigDao
translateConfig
- Specified by:
translateConfig
in classAbstractJaxbConfigDao<XmlDataCollectionConfig,XmlDataCollectionConfig>
- Parameters:
config
- a K object.- Returns:
- a V object.
-
-