Package org.opennms.netmgt.statsd
Class ReportDefinitionBuilder
- java.lang.Object
-
- org.opennms.netmgt.statsd.ReportDefinitionBuilder
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class ReportDefinitionBuilder extends Object implements org.springframework.beans.factory.InitializingBean
ReportDefinitionBuilder class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description ReportDefinitionBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
afterPropertiesSetCollection<ReportDefinition>
buildReportDefinitions()
Builds and schedules all reports enabled in the statsd-configuration.StatisticsDaemonConfigDao
getStatsdConfigDao()
getStatsdConfigDaovoid
reload()
reloadvoid
setStatsdConfigDao(StatisticsDaemonConfigDao statsdConfigDao)
setStatsdConfigDao
-
-
-
Method Detail
-
reload
public void reload() throws org.springframework.dao.DataAccessResourceFailureException
reload
- Throws:
org.springframework.dao.DataAccessResourceFailureException
- if any.
-
buildReportDefinitions
public Collection<ReportDefinition> buildReportDefinitions() throws Exception
Builds and schedules all reports enabled in the statsd-configuration. This method has the capability to throw a ton of exceptions, just generically throwingException
- Returns:
- a
Collection
of enabled reports from the statsd-configuration. - Throws:
Exception
- if any.
-
afterPropertiesSet
public void afterPropertiesSet()
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
getStatsdConfigDao
public StatisticsDaemonConfigDao getStatsdConfigDao()
getStatsdConfigDao
- Returns:
- a
StatisticsDaemonConfigDao
object.
-
setStatsdConfigDao
public void setStatsdConfigDao(StatisticsDaemonConfigDao statsdConfigDao)
setStatsdConfigDao
- Parameters:
statsdConfigDao
- aStatisticsDaemonConfigDao
object.
-
-