public class Collectd extends AbstractServiceDaemon implements EventListener
Collectd class.
PAUSE_PENDING, PAUSED, RESUME_PENDING
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED
Constructor and Description |
---|
Collectd()
Constructor.
|
afterPropertiesSet, destroy, getName, getStatus, getStatusText, init, isPaused, isRunning, isStarting, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public static CollectionInstrumentation instrumentation()
instrumentation
CollectionInstrumentation
object.protected void onInit()
onInit
onInit
in class AbstractServiceDaemon
public void setEventIpcManager(EventIpcManager eventIpcManager)
setEventIpcManager
eventIpcManager
- a EventIpcManager
object.public EventIpcManager getEventIpcManager()
getEventIpcManager
EventIpcManager
object.public ThresholdingService getThresholdingService()
public void setThresholdingService(ThresholdingService thresholdingService)
protected void onStart()
onStart
onStart
in class AbstractServiceDaemon
protected void onStop()
onStop
onStop
in class AbstractServiceDaemon
protected void onPause()
onPause
onPause
in class AbstractServiceDaemon
protected void onResume()
onResume
onResume
in class AbstractServiceDaemon
public Collection<CollectionSpecification> getSpecificationsForInterface(OnmsIpInterface iface, String svcName)
getSpecificationsForInterface
iface
- a OnmsIpInterface
object.svcName
- a String
object.Collection
object.protected List<org.opennms.netmgt.collectd.CollectableService> getCollectableServices()
public void onEvent(IEvent event)
onEvent
in interface EventListener
event
- a IEvent
object.protected void handleInsufficientInfo(InsufficientInformationException e)
handleInsufficientInfo
e
- a InsufficientInformationException
object.public void setScheduler(Scheduler scheduler)
setScheduler
scheduler
- a Scheduler
object.public void setServiceCollectorRegistry(ServiceCollectorRegistry serviceCollectorRegistry)
public void setLocationAwareCollectorClient(LocationAwareCollectorClient locationAwareCollectorClient)
public void setServiceCollector(String svcName, ServiceCollector collector)
setServiceCollector
svcName
- a String
object.collector
- a ServiceCollector
object.public ServiceCollector getServiceCollector(String svcName)
getServiceCollector
svcName
- a String
object.ServiceCollector
object.public PersisterFactory getPersisterFactory()
public void setPersisterFactory(PersisterFactory persisterFactory)
public static String getLoggingCategory()
public long getCollectableServiceCount()
public void setPollOutagesDao(ReadablePollOutagesDao pollOutagesDao)
Copyright © 2021. All rights reserved.