Package org.opennms.netmgt.statsd
Class Statsd
- java.lang.Object
-
- org.opennms.netmgt.statsd.Statsd
-
- All Implemented Interfaces:
SpringServiceDaemon
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
public class Statsd extends java.lang.Object implements SpringServiceDaemon
Statsd class.
- Version:
- $Id: $
- Author:
- DJ Gregor
-
-
Constructor Summary
Constructors Constructor Description Statsd()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
afterPropertiesSetvoid
destroy()
EventForwarder
getEventForwarder()
getEventForwarderMeasurementFetchStrategy
getFetchStrategy()
FilterDao
getFilterDao()
getFilterDaostatic java.lang.String
getLoggingCategory()
NodeDao
getNodeDao()
ReportDefinitionBuilder
getReportDefinitionBuilder()
getReportDefinitionBuilderReportPersister
getReportPersister()
getReportPersisterlong
getReportRunTime()
long
getReportsCompleted()
long
getReportsPersisted()
long
getReportsStarted()
ResourceDao
getResourceDao()
getResourceDaoorg.quartz.Scheduler
getScheduler()
getSchedulerorg.springframework.transaction.support.TransactionTemplate
getTransactionTemplate()
getTransactionTemplatevoid
handleReloadConfigEvent(IEvent e)
handleReloadConfigEventvoid
runReport(ReportDefinition reportDef)
runReportvoid
setEventForwarder(EventForwarder eventForwarder)
setEventForwardervoid
setFetchStrategy(MeasurementFetchStrategy fetchStrategy)
void
setReportDefinitionBuilder(ReportDefinitionBuilder reportDefinitionBuilder)
setReportDefinitionBuildervoid
setReportPersister(ReportPersister reportPersister)
setReportPersistervoid
setScheduler(org.quartz.Scheduler scheduler)
setSchedulervoid
start()
startvoid
unscheduleReports()
unscheduleReports
-
-
-
Method Detail
-
handleReloadConfigEvent
public void handleReloadConfigEvent(IEvent e)
handleReloadConfigEvent
- Parameters:
e
- aEvent
object.
-
start
public void start() throws java.lang.Exception
start
- Specified by:
start
in interfaceSpringServiceDaemon
- Throws:
java.lang.Exception
- if any.
-
destroy
public void destroy() throws java.lang.Exception
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
java.lang.Exception
-
unscheduleReports
public void unscheduleReports() throws java.lang.Exception
unscheduleReports
- Throws:
java.lang.Exception
- if any.
-
runReport
public void runReport(ReportDefinition reportDef) throws java.lang.Throwable
runReport
- Parameters:
reportDef
- aReportDefinition
object.- Throws:
java.lang.Throwable
- if any.
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
- if any.
-
getNodeDao
public NodeDao getNodeDao()
- Returns:
- the nodeDao
-
getResourceDao
public ResourceDao getResourceDao()
getResourceDao
- Returns:
- a
ResourceDao
object.
-
getFetchStrategy
public MeasurementFetchStrategy getFetchStrategy()
-
setFetchStrategy
public void setFetchStrategy(MeasurementFetchStrategy fetchStrategy)
-
getTransactionTemplate
public org.springframework.transaction.support.TransactionTemplate getTransactionTemplate()
getTransactionTemplate
- Returns:
- a
TransactionTemplate
object.
-
getReportPersister
public ReportPersister getReportPersister()
getReportPersister
- Returns:
- a
ReportPersister
object.
-
setReportPersister
public void setReportPersister(ReportPersister reportPersister)
setReportPersister
- Parameters:
reportPersister
- aReportPersister
object.
-
getScheduler
public org.quartz.Scheduler getScheduler()
getScheduler
- Returns:
- a
Scheduler
object.
-
setScheduler
public void setScheduler(org.quartz.Scheduler scheduler)
setScheduler
- Parameters:
scheduler
- aScheduler
object.
-
getReportDefinitionBuilder
public ReportDefinitionBuilder getReportDefinitionBuilder()
getReportDefinitionBuilder
- Returns:
- a
ReportDefinitionBuilder
object.
-
setReportDefinitionBuilder
public void setReportDefinitionBuilder(ReportDefinitionBuilder reportDefinitionBuilder)
setReportDefinitionBuilder
- Parameters:
reportDefinitionBuilder
- aReportDefinitionBuilder
object.
-
setEventForwarder
public void setEventForwarder(EventForwarder eventForwarder)
setEventForwarder
- Parameters:
eventForwarder
- aEventForwarder
object.
-
getEventForwarder
public EventForwarder getEventForwarder()
getEventForwarder
- Returns:
- a
EventForwarder
object.
-
getLoggingCategory
public static java.lang.String getLoggingCategory()
-
getReportsStarted
public long getReportsStarted()
-
getReportsCompleted
public long getReportsCompleted()
-
getReportsPersisted
public long getReportsPersisted()
-
getReportRunTime
public long getReportRunTime()
-
-