Package org.opennms.netmgt.poller.jmx
Class Pollerd
- java.lang.Object
-
- org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon<Poller>
-
- org.opennms.netmgt.poller.jmx.Pollerd
-
- All Implemented Interfaces:
BaseOnmsMBean
,PollerdMBean
public class Pollerd extends AbstractSpringContextJmxServiceDaemon<Poller> implements PollerdMBean
Pollerd class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon
DAEMON_BEAN_NAME
-
-
Constructor Summary
Constructors Constructor Description Pollerd()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getActiveThreads()
long
getCorePoolThreads()
protected String
getLoggingPrefix()
getLoggingPrefixlong
getMaxPoolThreads()
long
getNumPolls()
Returns the number of polls that have been executed so far (counter).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<Poller>
- Returns:
- a
String
object.
-
getSpringContext
protected String getSpringContext()
getSpringContext
- Specified by:
getSpringContext
in classAbstractSpringContextJmxServiceDaemon<Poller>
- Returns:
- a
String
object.
-
getActiveThreads
public long getActiveThreads()
- Specified by:
getActiveThreads
in interfacePollerdMBean
- Returns:
- The number of currently active poller threads
-
getTasksTotal
public long getTasksTotal()
- Specified by:
getTasksTotal
in interfacePollerdMBean
- Returns:
- The cumulative number of polling tasks scheduled since poller startup
-
getTasksCompleted
public long getTasksCompleted()
- Specified by:
getTasksCompleted
in interfacePollerdMBean
- Returns:
- The cumulative number of polling tasks completed since poller startup
-
getNumPolls
public long getNumPolls()
Returns the number of polls that have been executed so far (counter).- Specified by:
getNumPolls
in interfacePollerdMBean
- Returns:
- the number of polls that have been executed
-
getTaskCompletionRatio
public double getTaskCompletionRatio()
- Specified by:
getTaskCompletionRatio
in interfacePollerdMBean
- Returns:
- The ratio of completed to scheduled polling tasks since poller startup
-
getNumPoolThreads
public long getNumPoolThreads()
- Specified by:
getNumPoolThreads
in interfacePollerdMBean
- Returns:
- The current number of threads in the pool
-
getPeakPoolThreads
public long getPeakPoolThreads()
- Specified by:
getPeakPoolThreads
in interfacePollerdMBean
- Returns:
- The largest size of the poller thread pool since poller startup
-
getCorePoolThreads
public long getCorePoolThreads()
- Specified by:
getCorePoolThreads
in interfacePollerdMBean
- Returns:
- The core number of threads
-
getMaxPoolThreads
public long getMaxPoolThreads()
- Specified by:
getMaxPoolThreads
in interfacePollerdMBean
- Returns:
- The maximum number of threads allowed in the poller's thread pool
-
getTaskQueuePendingCount
public long getTaskQueuePendingCount()
- Specified by:
getTaskQueuePendingCount
in interfacePollerdMBean
- Returns:
- The number of pending tasks on our ExecutorService
-
getTaskQueueRemainingCapacity
public long getTaskQueueRemainingCapacity()
- Specified by:
getTaskQueueRemainingCapacity
in interfacePollerdMBean
- Returns:
- The number of open slots on our ExecutorService queue.
-
-