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 long
getActiveThreads()
long
getCollectableServiceCount()
long
getCorePoolThreads()
protected String
getLoggingPrefix()
getLoggingPrefixlong
getMaxPoolThreads()
long
getNumPoolThreads()
long
getPeakPoolThreads()
protected String
getSpringContext()
getSpringContextdouble
getTaskCompletionRatio()
long
getTaskQueuePendingCount()
long
getTaskQueueRemainingCapacity()
long
getTasksCompleted()
long
getTasksTotal()
-
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:
getLoggingPrefix
in classAbstractSpringContextJmxServiceDaemon<Collectd>
- Returns:
- a
String
object.
-
getSpringContext
protected String getSpringContext()
getSpringContext
- Specified by:
getSpringContext
in classAbstractSpringContextJmxServiceDaemon<Collectd>
- Returns:
- a
String
object.
-
getActiveThreads
public long getActiveThreads()
- Specified by:
getActiveThreads
in interfaceCollectdMBean
- Returns:
- The number of currently active collection threads
-
getTasksTotal
public long getTasksTotal()
- Specified by:
getTasksTotal
in interfaceCollectdMBean
- Returns:
- The cumulative number of collection tasks scheduled since collector startup
-
getTasksCompleted
public long getTasksCompleted()
- Specified by:
getTasksCompleted
in interfaceCollectdMBean
- Returns:
- The cumulative number of collection tasks completed since collector startup
-
getTaskCompletionRatio
public double getTaskCompletionRatio()
- Specified by:
getTaskCompletionRatio
in interfaceCollectdMBean
- Returns:
- The ratio of completed to scheduled collection tasks since collector startup
-
getNumPoolThreads
public long getNumPoolThreads()
- Specified by:
getNumPoolThreads
in interfaceCollectdMBean
- Returns:
- The current number of threads in the pool
-
getCorePoolThreads
public long getCorePoolThreads()
- Specified by:
getCorePoolThreads
in interfaceCollectdMBean
- Returns:
- The core number of threads
-
getMaxPoolThreads
public long getMaxPoolThreads()
- Specified by:
getMaxPoolThreads
in interfaceCollectdMBean
- Returns:
- The maximum number of collection threads
-
getPeakPoolThreads
public long getPeakPoolThreads()
- Specified by:
getPeakPoolThreads
in interfaceCollectdMBean
- Returns:
- The peak number of collection threads in use.
-
getTaskQueuePendingCount
public long getTaskQueuePendingCount()
- Specified by:
getTaskQueuePendingCount
in interfaceCollectdMBean
- Returns:
- The number of pending tasks
-
getTaskQueueRemainingCapacity
public long getTaskQueueRemainingCapacity()
- Specified by:
getTaskQueueRemainingCapacity
in interfaceCollectdMBean
- Returns:
- The number of pending tasks
-
getCollectableServiceCount
public long getCollectableServiceCount()
- Specified by:
getCollectableServiceCount
in interfaceCollectdMBean
- Returns:
- The number of collectable services currently seen by Collectd
-
-