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
CollectionInstrumentationobject.
-
onInit
protected void onInit()
onInit
- Specified by:
onInitin classAbstractServiceDaemon
-
setEventIpcManager
public void setEventIpcManager(EventIpcManager eventIpcManager)
setEventIpcManager
- Parameters:
eventIpcManager- aEventIpcManagerobject.
-
getEventIpcManager
public EventIpcManager getEventIpcManager()
getEventIpcManager
- Returns:
- a
EventIpcManagerobject.
-
getThresholdingService
public ThresholdingService getThresholdingService()
-
setThresholdingService
public void setThresholdingService(ThresholdingService thresholdingService)
-
onStart
protected void onStart()
onStart
- Overrides:
onStartin classAbstractServiceDaemon
-
onStop
protected void onStop()
onStop
- Overrides:
onStopin classAbstractServiceDaemon
-
onPause
protected void onPause()
onPause
- Overrides:
onPausein classAbstractServiceDaemon
-
onResume
protected void onResume()
onResume
- Overrides:
onResumein classAbstractServiceDaemon
-
getSpecificationsForInterface
public Collection<CollectionSpecification> getSpecificationsForInterface(OnmsIpInterface iface, String svcName)
getSpecificationsForInterface
- Parameters:
iface- aOnmsIpInterfaceobject.svcName- aStringobject.- Returns:
- a
Collectionobject.
-
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:
onEventin interfaceEventListener- Parameters:
event- aIEventobject.
-
handleInsufficientInfo
protected void handleInsufficientInfo(InsufficientInformationException e)
handleInsufficientInfo
- Parameters:
e- aInsufficientInformationExceptionobject.
-
setScheduler
public void setScheduler(Scheduler scheduler)
setScheduler
- Parameters:
scheduler- aSchedulerobject.
-
setServiceCollectorRegistry
public void setServiceCollectorRegistry(ServiceCollectorRegistry serviceCollectorRegistry)
-
setLocationAwareCollectorClient
public void setLocationAwareCollectorClient(LocationAwareCollectorClient locationAwareCollectorClient)
-
setServiceCollector
public void setServiceCollector(String svcName, ServiceCollector collector)
setServiceCollector
- Parameters:
svcName- aStringobject.collector- aServiceCollectorobject.
-
getServiceCollector
public ServiceCollector getServiceCollector(String svcName)
getServiceCollector
- Parameters:
svcName- aStringobject.- Returns:
- a
ServiceCollectorobject.
-
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)
-
-