Package org.opennms.netmgt.dao.jaxb
Class DefaultStatisticsDaemonConfigDao
- java.lang.Object
-
- org.opennms.core.xml.AbstractJaxbConfigDao<StatisticsDaemonConfiguration,StatsdConfig>
-
- org.opennms.netmgt.dao.jaxb.DefaultStatisticsDaemonConfigDao
-
- All Implemented Interfaces:
StatisticsDaemonConfigDao,org.springframework.beans.factory.InitializingBean
public class DefaultStatisticsDaemonConfigDao extends AbstractJaxbConfigDao<StatisticsDaemonConfiguration,StatsdConfig> implements StatisticsDaemonConfigDao
DAO implementation for accessing the XML configuration for statsd. The objects are translated into a more friendly set of objects that are exposed through the DAO. The objects are not exposed.- Version:
- $Id: $
- Author:
- DJ Gregor
- See Also:
StatsdConfig
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
AbstractJaxbConfigDao.JaxbReloadCallback
-
-
Constructor Summary
Constructors Constructor Description DefaultStatisticsDaemonConfigDao()Constructor for DefaultStatisticsDaemonConfigDao.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<StatsdPackage>getPackages()getPackagesList<Report>getReports()getReportsvoidreloadConfiguration()reloadConfigurationStatsdConfigtranslateConfig(StatisticsDaemonConfiguration config)translateConfig-
Methods inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
addOnReloadedCallback, afterPropertiesSet, getConfigResource, getContainer, getDescription, getReloadCheckInterval, loadConfig, setConfigResource, setReloadCheckInterval
-
-
-
-
Method Detail
-
translateConfig
public StatsdConfig translateConfig(StatisticsDaemonConfiguration config)
translateConfig
- Specified by:
translateConfigin classAbstractJaxbConfigDao<StatisticsDaemonConfiguration,StatsdConfig>- Parameters:
config- a K object.- Returns:
- a V object.
-
getReports
public List<Report> getReports()
getReports
- Specified by:
getReportsin interfaceStatisticsDaemonConfigDao- Returns:
- a
Listobject.
-
getPackages
public List<StatsdPackage> getPackages()
getPackages
- Specified by:
getPackagesin interfaceStatisticsDaemonConfigDao- Returns:
- a
Listobject.
-
reloadConfiguration
public void reloadConfiguration() throws org.springframework.dao.DataAccessResourceFailureExceptionreloadConfiguration
- Specified by:
reloadConfigurationin interfaceStatisticsDaemonConfigDao- Throws:
org.springframework.dao.DataAccessResourceFailureException- if any.
-
-