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 java.util.List<StatsdPackage>
getPackages()
getPackagesjava.util.List<Report>
getReports()
getReportsvoid
reloadConfiguration()
reloadConfigurationStatsdConfig
translateConfig(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:
translateConfig
in classAbstractJaxbConfigDao<StatisticsDaemonConfiguration,StatsdConfig>
- Parameters:
config
- a K object.- Returns:
- a V object.
-
getReports
public java.util.List<Report> getReports()
getReports
- Specified by:
getReports
in interfaceStatisticsDaemonConfigDao
- Returns:
- a
List
object.
-
getPackages
public java.util.List<StatsdPackage> getPackages()
getPackages
- Specified by:
getPackages
in interfaceStatisticsDaemonConfigDao
- Returns:
- a
List
object.
-
reloadConfiguration
public void reloadConfiguration() throws org.springframework.dao.DataAccessResourceFailureException
reloadConfiguration
- Specified by:
reloadConfiguration
in interfaceStatisticsDaemonConfigDao
- Throws:
org.springframework.dao.DataAccessResourceFailureException
- if any.
-
-