Package 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.DisposableBean
,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.Fiber
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED
-
Fields inherited from interface org.opennms.core.fiber.PausableFiber
PAUSE_PENDING, PAUSED, RESUME_PENDING
-
-
Constructor Summary
Constructors Constructor Description Collectd()
Constructor.
-
Method Summary
-
Methods inherited from class org.opennms.netmgt.daemon.AbstractServiceDaemon
afterPropertiesSet, destroy, getName, getStatus, getStatusText, init, isPaused, isRunning, isStarting, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus
-
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.events.api.EventListener
getName
-
-
-
-
Method Detail
-
instrumentation
public static CollectionInstrumentation instrumentation()
instrumentation
- Returns:
- a
CollectionInstrumentation
object.
-
onInit
protected void onInit()
onInit
- Specified by:
onInit
in classAbstractServiceDaemon
-
setEventIpcManager
public void setEventIpcManager(EventIpcManager eventIpcManager)
setEventIpcManager
- Parameters:
eventIpcManager
- aEventIpcManager
object.
-
getEventIpcManager
public EventIpcManager getEventIpcManager()
getEventIpcManager
- Returns:
- a
EventIpcManager
object.
-
getThresholdingService
public ThresholdingService getThresholdingService()
-
setThresholdingService
public void setThresholdingService(ThresholdingService thresholdingService)
-
onStart
protected void onStart()
onStart
- Overrides:
onStart
in classAbstractServiceDaemon
-
onStop
protected void onStop()
onStop
- Overrides:
onStop
in classAbstractServiceDaemon
-
onPause
protected void onPause()
onPause
- Overrides:
onPause
in classAbstractServiceDaemon
-
onResume
protected void onResume()
onResume
- Overrides:
onResume
in classAbstractServiceDaemon
-
getSpecificationsForInterface
public Collection<CollectionSpecification> getSpecificationsForInterface(OnmsIpInterface iface, String svcName)
getSpecificationsForInterface
- Parameters:
iface
- aOnmsIpInterface
object.svcName
- aString
object.- Returns:
- a
Collection
object.
-
getCollectableServices
protected List<org.opennms.netmgt.collectd.CollectableService> getCollectableServices()
-
onEvent
public void onEvent(IEvent 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 interfaceEventListener
- Parameters:
event
- aIEvent
object.
-
handleInsufficientInfo
protected void handleInsufficientInfo(InsufficientInformationException e)
handleInsufficientInfo
- Parameters:
e
- aInsufficientInformationException
object.
-
setScheduler
public void setScheduler(Scheduler scheduler)
setScheduler
- Parameters:
scheduler
- aScheduler
object.
-
setServiceCollectorRegistry
public void setServiceCollectorRegistry(ServiceCollectorRegistry serviceCollectorRegistry)
-
setLocationAwareCollectorClient
public void setLocationAwareCollectorClient(LocationAwareCollectorClient locationAwareCollectorClient)
-
setServiceCollector
public void setServiceCollector(String svcName, ServiceCollector collector)
setServiceCollector
- Parameters:
svcName
- aString
object.collector
- aServiceCollector
object.
-
getServiceCollector
public ServiceCollector getServiceCollector(String svcName)
getServiceCollector
- Parameters:
svcName
- aString
object.- Returns:
- a
ServiceCollector
object.
-
getPersisterFactory
public PersisterFactory getPersisterFactory()
-
setPersisterFactory
public void setPersisterFactory(PersisterFactory persisterFactory)
-
getLoggingCategory
public static String getLoggingCategory()
-
getCollectableServiceCount
public long getCollectableServiceCount()
-
setPollOutagesDao
public void setPollOutagesDao(ReadablePollOutagesDao pollOutagesDao)
-
-