Package org.opennms.netmgt.dao.jaxb
Class VmwareCimDatacollectionConfigDaoJaxb
- java.lang.Object
-
- org.opennms.core.xml.AbstractJaxbConfigDao<VmwareCimDatacollectionConfig,VmwareCimDatacollectionConfig>
-
- org.opennms.netmgt.dao.jaxb.VmwareCimDatacollectionConfigDaoJaxb
-
- All Implemented Interfaces:
VmwareCimDatacollectionConfigDao
,org.springframework.beans.factory.InitializingBean
public class VmwareCimDatacollectionConfigDaoJaxb extends AbstractJaxbConfigDao<VmwareCimDatacollectionConfig,VmwareCimDatacollectionConfig> implements VmwareCimDatacollectionConfigDao
The Class VmwareCimDatacollectionConfigDaoJaxb This class is used for accessing the Vmware Cim Data Collection configuration file- Author:
- Christian Pape
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
AbstractJaxbConfigDao.JaxbReloadCallback
-
-
Constructor Summary
Constructors Constructor Description VmwareCimDatacollectionConfigDaoJaxb()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VmwareCimDatacollectionConfig
getConfig()
Returns the loaded config object.java.lang.String
getRrdPath()
Returns the base Rrd's path.RrdRepository
getRrdRepository(java.lang.String collectionName)
Returns the Rrd repository for a given collection name.VmwareCimCollection
getVmwareCimCollection(java.lang.String collectionName)
This method returns a subset of the configuration data for a given collection name.VmwareCimDatacollectionConfig
translateConfig(VmwareCimDatacollectionConfig jaxbConfig)
Used to transform the config object to a custom representation.-
Methods inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
addOnReloadedCallback, afterPropertiesSet, getConfigResource, getContainer, getDescription, getReloadCheckInterval, loadConfig, setConfigResource, setReloadCheckInterval
-
-
-
-
Method Detail
-
getConfig
public VmwareCimDatacollectionConfig getConfig()
Returns the loaded config object.- Specified by:
getConfig
in interfaceVmwareCimDatacollectionConfigDao
- Returns:
- the current config object
-
translateConfig
public VmwareCimDatacollectionConfig translateConfig(VmwareCimDatacollectionConfig jaxbConfig)
Used to transform the config object to a custom representation. This method is not modified in this class, it just returns the config object itself.- Specified by:
translateConfig
in classAbstractJaxbConfigDao<VmwareCimDatacollectionConfig,VmwareCimDatacollectionConfig>
- Parameters:
jaxbConfig
- a config object.- Returns:
- a custom object
-
getVmwareCimCollection
public VmwareCimCollection getVmwareCimCollection(java.lang.String collectionName)
This method returns a subset of the configuration data for a given collection name.- Specified by:
getVmwareCimCollection
in interfaceVmwareCimDatacollectionConfigDao
- Parameters:
collectionName
- the collection's name- Returns:
- the Cim collection object
-
getRrdRepository
public RrdRepository getRrdRepository(java.lang.String collectionName)
Returns the Rrd repository for a given collection name.- Specified by:
getRrdRepository
in interfaceVmwareCimDatacollectionConfigDao
- Parameters:
collectionName
- the collection's name- Returns:
- the repository
-
getRrdPath
public java.lang.String getRrdPath()
Returns the base Rrd's path.- Specified by:
getRrdPath
in interfaceVmwareCimDatacollectionConfigDao
- Returns:
- the Rrd's path
-
-