Package org.opennms.netmgt.collectd.jmx
Class Collectd
- java.lang.Object
-
- org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon<Collectd>
-
- org.opennms.netmgt.collectd.jmx.Collectd
-
- All Implemented Interfaces:
CollectdMBean,BaseOnmsMBean
public class Collectd extends AbstractSpringContextJmxServiceDaemon<Collectd> implements CollectdMBean
Collectd class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon
DAEMON_BEAN_NAME
-
-
Constructor Summary
Constructors Constructor Description Collectd()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetActiveThreads()longgetCollectableServiceCount()longgetCorePoolThreads()protected StringgetLoggingPrefix()getLoggingPrefixlonggetMaxPoolThreads()longgetNumPoolThreads()longgetPeakPoolThreads()protected StringgetSpringContext()getSpringContextdoublegetTaskCompletionRatio()longgetTaskQueuePendingCount()longgetTaskQueueRemainingCapacity()longgetTasksCompleted()longgetTasksTotal()-
Methods inherited from class org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon
getContext, getDaemon, getStatus, getStatusText, init, start, status, stop
-
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.daemon.BaseOnmsMBean
getStatus, getStatusText, init, start, status, stop
-
-
-
-
Method Detail
-
getLoggingPrefix
protected String getLoggingPrefix()
getLoggingPrefix
- Specified by:
getLoggingPrefixin classAbstractSpringContextJmxServiceDaemon<Collectd>- Returns:
- a
Stringobject.
-
getSpringContext
protected String getSpringContext()
getSpringContext
- Specified by:
getSpringContextin classAbstractSpringContextJmxServiceDaemon<Collectd>- Returns:
- a
Stringobject.
-
getActiveThreads
public long getActiveThreads()
- Specified by:
getActiveThreadsin interfaceCollectdMBean- Returns:
- The number of currently active collection threads
-
getTasksTotal
public long getTasksTotal()
- Specified by:
getTasksTotalin interfaceCollectdMBean- Returns:
- The cumulative number of collection tasks scheduled since collector startup
-
getTasksCompleted
public long getTasksCompleted()
- Specified by:
getTasksCompletedin interfaceCollectdMBean- Returns:
- The cumulative number of collection tasks completed since collector startup
-
getTaskCompletionRatio
public double getTaskCompletionRatio()
- Specified by:
getTaskCompletionRatioin interfaceCollectdMBean- Returns:
- The ratio of completed to scheduled collection tasks since collector startup
-
getNumPoolThreads
public long getNumPoolThreads()
- Specified by:
getNumPoolThreadsin interfaceCollectdMBean- Returns:
- The current number of threads in the pool
-
getCorePoolThreads
public long getCorePoolThreads()
- Specified by:
getCorePoolThreadsin interfaceCollectdMBean- Returns:
- The core number of threads
-
getMaxPoolThreads
public long getMaxPoolThreads()
- Specified by:
getMaxPoolThreadsin interfaceCollectdMBean- Returns:
- The maximum number of collection threads
-
getPeakPoolThreads
public long getPeakPoolThreads()
- Specified by:
getPeakPoolThreadsin interfaceCollectdMBean- Returns:
- The peak number of collection threads in use.
-
getTaskQueuePendingCount
public long getTaskQueuePendingCount()
- Specified by:
getTaskQueuePendingCountin interfaceCollectdMBean- Returns:
- The number of pending tasks
-
getTaskQueueRemainingCapacity
public long getTaskQueueRemainingCapacity()
- Specified by:
getTaskQueueRemainingCapacityin interfaceCollectdMBean- Returns:
- The number of pending tasks
-
getCollectableServiceCount
public long getCollectableServiceCount()
- Specified by:
getCollectableServiceCountin interfaceCollectdMBean- Returns:
- The number of collectable services currently seen by Collectd
-
-