org.opennms.netmgt.collectd
Class Collectd
java.lang.Object
org.opennms.netmgt.daemon.AbstractServiceDaemon
org.opennms.netmgt.collectd.Collectd
- All Implemented Interfaces:
- Fiber, PausableFiber, SpringServiceDaemon, EventListener, ServiceDaemon, org.springframework.beans.factory.InitializingBean
public class Collectd
- extends AbstractServiceDaemon
- implements EventListener
|
Constructor Summary |
Collectd()
Constructor. |
| Methods inherited from class org.opennms.netmgt.daemon.AbstractServiceDaemon |
afterPropertiesSet, debugf, debugf, errorf, errorf, fatalf, fatalf, getName, getStatus, getStatusText, infof, infof, init, isPaused, isRunning, isStarting, isStartPending, log, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus, warnf, warnf |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Collectd
public Collectd()
- Constructor.
instrumentation
public static CollectdInstrumentation instrumentation()
onInit
protected void onInit()
- Specified by:
onInit in class AbstractServiceDaemon
setEventIpcManager
public void setEventIpcManager(EventIpcManager eventIpcManager)
getEventIpcManager
public EventIpcManager getEventIpcManager()
onStart
protected void onStart()
- Overrides:
onStart in class AbstractServiceDaemon
onStop
protected void onStop()
- Overrides:
onStop in class AbstractServiceDaemon
onPause
protected void onPause()
- Overrides:
onPause in class AbstractServiceDaemon
onResume
protected void onResume()
- Overrides:
onResume in class AbstractServiceDaemon
getSpecificationsForInterface
public Collection<CollectionSpecification> getSpecificationsForInterface(OnmsIpInterface iface,
String svcName)
onEvent
public void onEvent(Event event)
- This method is invoked by the JMS topic session when a new event is
available for processing. Currently only text based messages are
processed by this callback. Each message is examined for its Universal
Event Identifier and the appropriate action is taking based on each
UEI.
- Specified by:
onEvent in interface EventListener
- Parameters:
event - The event message.processor - TODO
handleInsufficientInfo
protected void handleInsufficientInfo(InsufficientInformationException e)
setScheduler
public void setScheduler(Scheduler scheduler)
setCollectorConfigDao
public void setCollectorConfigDao(CollectorConfigDao collectorConfigDao)
setIpInterfaceDao
public void setIpInterfaceDao(IpInterfaceDao ifSvcDao)
setTransactionTemplate
public void setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transTemplate)
setNodeDao
public void setNodeDao(NodeDao nodeDao)
setServiceCollector
public void setServiceCollector(String svcName,
ServiceCollector collector)
getServiceCollector
public ServiceCollector getServiceCollector(String svcName)
getCollectorNames
public Set<String> getCollectorNames()
Copyright © 2009. All Rights Reserved.