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 VmwareDatacollectionConfig
getConfig()
Returns the loaded config object.String
getRrdPath()
Returns the base Rrd's path.RrdRepository
getRrdRepository(String collectionName)
Returns the Rrd repository for a given collection name.VmwareCollection
getVmwareCollection(String collectionName)
This method returns a subset of the configuration data for a given collection name.VmwareDatacollectionConfig
translateConfig(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:
getConfig
in 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:
translateConfig
in 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:
getVmwareCollection
in 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:
getRrdRepository
in interfaceVmwareDatacollectionConfigDao
- Parameters:
collectionName
- the collection's name- Returns:
- the repository
-
getRrdPath
public String getRrdPath()
Returns the base Rrd's path.- Specified by:
getRrdPath
in interfaceVmwareDatacollectionConfigDao
- Returns:
- the Rrd's path
-
-