public class Collectd extends AbstractServiceDaemon implements EventListener
Collectd class.
PAUSE_PENDING, PAUSED, RESUME_PENDINGRUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED| Constructor and Description |
|---|
Collectd()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCollectableServiceCount() |
protected List<org.opennms.netmgt.collectd.CollectableService> |
getCollectableServices() |
Set<String> |
getCollectorNames()
getCollectorNames
|
EventIpcManager |
getEventIpcManager()
getEventIpcManager
|
static String |
getLoggingCategory() |
PersisterFactory |
getPersisterFactory() |
Scheduler |
getScheduler()
getScheduler
|
ServiceCollector |
getServiceCollector(String svcName)
getServiceCollector
|
Collection<CollectionSpecification> |
getSpecificationsForInterface(OnmsIpInterface iface,
String svcName)
getSpecificationsForInterface
|
protected void |
handleInsufficientInfo(InsufficientInformationException e)
handleInsufficientInfo
|
static CollectionInstrumentation |
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 |
setEventIpcManager(EventIpcManager eventIpcManager)
setEventIpcManager
|
void |
setPersisterFactory(PersisterFactory persisterFactory) |
void |
setScheduler(Scheduler scheduler)
setScheduler
|
void |
setServiceCollector(String svcName,
ServiceCollector collector)
setServiceCollector
|
afterPropertiesSet, destroy, getName, getStatus, getStatusText, init, isPaused, isRunning, isStarting, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic static CollectionInstrumentation instrumentation()
instrumentation
CollectionInstrumentation object.protected void onInit()
onInit
onInit in class AbstractServiceDaemonpublic void setEventIpcManager(EventIpcManager eventIpcManager)
setEventIpcManager
eventIpcManager - a EventIpcManager object.public EventIpcManager getEventIpcManager()
getEventIpcManager
EventIpcManager object.protected void onStart()
onStart
onStart in class AbstractServiceDaemonprotected void onStop()
onStop
onStop in class AbstractServiceDaemonprotected void onPause()
onPause
onPause in class AbstractServiceDaemonprotected void onResume()
onResume
onResume in class AbstractServiceDaemonpublic 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(Event event)
onEvent in interface EventListenerevent - a Event object.protected void handleInsufficientInfo(InsufficientInformationException e)
handleInsufficientInfo
e - a InsufficientInformationException object.public void setScheduler(Scheduler scheduler)
setScheduler
scheduler - a Scheduler object.public Scheduler getScheduler()
getScheduler
scheduler - a Scheduler object.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()
Copyright © 2020. All rights reserved.