Package org.opennms.netmgt.dao.jaxb
Class VmwareDatacollectionConfigDaoJaxb
- java.lang.Object
-
- org.opennms.core.xml.AbstractJaxbConfigDao<VmwareDatacollectionConfig,VmwareDatacollectionConfig>
-
- org.opennms.netmgt.dao.jaxb.VmwareDatacollectionConfigDaoJaxb
-
- All Implemented Interfaces:
VmwareDatacollectionConfigDao,org.springframework.beans.factory.InitializingBean
public class VmwareDatacollectionConfigDaoJaxb extends AbstractJaxbConfigDao<VmwareDatacollectionConfig,VmwareDatacollectionConfig> implements VmwareDatacollectionConfigDao
The Class DefaultVmwareDatacollectionConfigDao This class is used for accessing the Vmware 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 VmwareDatacollectionConfigDaoJaxb()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VmwareDatacollectionConfiggetConfig()Returns the loaded config object.StringgetRrdPath()Returns the base Rrd's path.RrdRepositorygetRrdRepository(String collectionName)Returns the Rrd repository for a given collection name.VmwareCollectiongetVmwareCollection(String collectionName)This method returns a subset of the configuration data for a given collection name.VmwareDatacollectionConfigtranslateConfig(VmwareDatacollectionConfig 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 VmwareDatacollectionConfig getConfig()
Returns the loaded config object.- Specified by:
getConfigin interfaceVmwareDatacollectionConfigDao- Returns:
- the current config object
-
translateConfig
public VmwareDatacollectionConfig translateConfig(VmwareDatacollectionConfig 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<VmwareDatacollectionConfig,VmwareDatacollectionConfig>- Parameters:
jaxbConfig- a config object.- Returns:
- a custom object
-
getVmwareCollection
public VmwareCollection getVmwareCollection(String collectionName)
This method returns a subset of the configuration data for a given collection name.- Specified by:
getVmwareCollectionin interfaceVmwareDatacollectionConfigDao- Parameters:
collectionName- the collection's name- Returns:
- the collection object
-
getRrdRepository
public RrdRepository getRrdRepository(String collectionName)
Returns the Rrd repository for a given collection name.- Specified by:
getRrdRepositoryin interfaceVmwareDatacollectionConfigDao- Parameters:
collectionName- the collection's name- Returns:
- the repository
-
getRrdPath
public String getRrdPath()
Returns the base Rrd's path.- Specified by:
getRrdPathin interfaceVmwareDatacollectionConfigDao- Returns:
- the Rrd's path
-
-