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 VmwareCimDatacollectionConfiggetConfig()Returns the loaded config object.StringgetRrdPath()Returns the base Rrd's path.RrdRepositorygetRrdRepository(String collectionName)Returns the Rrd repository for a given collection name.VmwareCimCollectiongetVmwareCimCollection(String collectionName)This method returns a subset of the configuration data for a given collection name.VmwareCimDatacollectionConfigtranslateConfig(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:
getConfigin 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:
translateConfigin classAbstractJaxbConfigDao<VmwareCimDatacollectionConfig,VmwareCimDatacollectionConfig>- Parameters:
jaxbConfig- a config object.- Returns:
- a custom object
-
getVmwareCimCollection
public VmwareCimCollection getVmwareCimCollection(String collectionName)
This method returns a subset of the configuration data for a given collection name.- Specified by:
getVmwareCimCollectionin interfaceVmwareCimDatacollectionConfigDao- Parameters:
collectionName- the collection's name- Returns:
- the Cim collection object
-
getRrdRepository
public RrdRepository getRrdRepository(String collectionName)
Returns the Rrd repository for a given collection name.- Specified by:
getRrdRepositoryin interfaceVmwareCimDatacollectionConfigDao- Parameters:
collectionName- the collection's name- Returns:
- the repository
-
getRrdPath
public String getRrdPath()
Returns the base Rrd's path.- Specified by:
getRrdPathin interfaceVmwareCimDatacollectionConfigDao- Returns:
- the Rrd's path
-
-