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

Collectd class.

Version:
$Id: $
Author:
ranger

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()
          getCollectorNames
 EventIpcManager getEventIpcManager()
          getEventIpcManager
 ServiceCollector getServiceCollector(String svcName)
          getServiceCollector
 Collection<CollectionSpecification> getSpecificationsForInterface(OnmsIpInterface iface, String svcName)
          getSpecificationsForInterface
protected  void handleInsufficientInfo(InsufficientInformationException e)
          handleInsufficientInfo
static CollectdInstrumentation instrumentation()
          instrumentation
 void onEvent(Event event)
          Process a sent event.
protected  void onInit()
          onInit
protected  void onPause()
          onPause
protected  void onResume()
          onResume
protected  void onStart()
          onStart
protected  void onStop()
          onStop
 void setCollectorConfigDao(CollectorConfigDao collectorConfigDao)
          setCollectorConfigDao
 void setEventIpcManager(EventIpcManager eventIpcManager)
          setEventIpcManager
 void setIpInterfaceDao(IpInterfaceDao ifSvcDao)
          setIpInterfaceDao
 void setNodeDao(NodeDao nodeDao)
          setNodeDao
 void setScheduler(Scheduler scheduler)
          setScheduler
 void setServiceCollector(String svcName, ServiceCollector collector)
          setServiceCollector
 void setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transTemplate)
          setTransactionTemplate
 
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()

instrumentation

Returns:
a CollectdInstrumentation object.

onInit

protected void onInit()

onInit

Specified by:
onInit in class AbstractServiceDaemon

setEventIpcManager

public void setEventIpcManager(EventIpcManager eventIpcManager)

setEventIpcManager

Parameters:
eventIpcManager - a EventIpcManager object.

getEventIpcManager

public EventIpcManager getEventIpcManager()

getEventIpcManager

Returns:
a EventIpcManager object.

onStart

protected void onStart()

onStart

Overrides:
onStart in class AbstractServiceDaemon

onStop

protected void onStop()

onStop

Overrides:
onStop in class AbstractServiceDaemon

onPause

protected void onPause()

onPause

Overrides:
onPause in class AbstractServiceDaemon

onResume

protected void onResume()

onResume

Overrides:
onResume in class AbstractServiceDaemon

getSpecificationsForInterface

public Collection<CollectionSpecification> getSpecificationsForInterface(OnmsIpInterface iface,
                                                                         String svcName)

getSpecificationsForInterface

Parameters:
iface - a OnmsIpInterface object.
svcName - a String object.
Returns:
a Collection object.

onEvent

public void onEvent(Event event)
Process a sent 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 - a Event object.

handleInsufficientInfo

protected void handleInsufficientInfo(InsufficientInformationException e)

handleInsufficientInfo

Parameters:
e - a InsufficientInformationException object.

setScheduler

public void setScheduler(Scheduler scheduler)

setScheduler

Parameters:
scheduler - a Scheduler object.

setCollectorConfigDao

public void setCollectorConfigDao(CollectorConfigDao collectorConfigDao)

setCollectorConfigDao

Parameters:
collectorConfigDao - a CollectorConfigDao object.

setIpInterfaceDao

public void setIpInterfaceDao(IpInterfaceDao ifSvcDao)

setIpInterfaceDao

Parameters:
ifSvcDao - a IpInterfaceDao object.

setTransactionTemplate

public void setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transTemplate)

setTransactionTemplate

Parameters:
transTemplate - a TransactionTemplate object.

setNodeDao

public void setNodeDao(NodeDao nodeDao)

setNodeDao

Parameters:
nodeDao - a NodeDao object.

setServiceCollector

public void setServiceCollector(String svcName,
                                ServiceCollector collector)

setServiceCollector

Parameters:
svcName - a String object.
collector - a ServiceCollector object.

getServiceCollector

public ServiceCollector getServiceCollector(String svcName)

getServiceCollector

Parameters:
svcName - a String object.
Returns:
a ServiceCollector object.

getCollectorNames

public Set<String> getCollectorNames()

getCollectorNames

Returns:
a Set object.


Copyright © 2011. All Rights Reserved.