org.opennms.netmgt.collectd
Class Collectd

java.lang.Object
  extended by org.opennms.netmgt.daemon.AbstractServiceDaemon
      extended by 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


Field Summary
 
Fields inherited from interface org.opennms.core.fiber.PausableFiber
PAUSE_PENDING, PAUSED, RESUME_PENDING
 
Fields inherited from interface org.opennms.core.fiber.Fiber
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED
 
Constructor Summary
Collectd()
          Constructor.
 
Method Summary
 Set<String> getCollectorNames()
           
 EventIpcManager getEventIpcManager()
           
 ServiceCollector getServiceCollector(String svcName)
           
 Collection<CollectionSpecification> getSpecificationsForInterface(OnmsIpInterface iface, String svcName)
           
protected  void handleInsufficientInfo(InsufficientInformationException e)
           
static CollectdInstrumentation instrumentation()
           
 void onEvent(Event event)
          This method is invoked by the JMS topic session when a new event is available for processing.
protected  void onInit()
           
protected  void onPause()
           
protected  void onResume()
           
protected  void onStart()
           
protected  void onStop()
           
 void setCollectorConfigDao(CollectorConfigDao collectorConfigDao)
           
 void setEventIpcManager(EventIpcManager eventIpcManager)
           
 void setIpInterfaceDao(IpInterfaceDao ifSvcDao)
           
 void setNodeDao(NodeDao nodeDao)
           
 void setScheduler(Scheduler scheduler)
           
 void setServiceCollector(String svcName, ServiceCollector collector)
           
 void setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transTemplate)
           
 
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
 
Methods inherited from interface org.opennms.netmgt.model.events.EventListener
getName
 

Constructor Detail

Collectd

public Collectd()
Constructor.

Method Detail

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.