Class Pollerd

    • Constructor Detail

      • Pollerd

        public Pollerd()
    • Method Detail

      • getActiveThreads

        public long getActiveThreads()
        Specified by:
        getActiveThreads in interface PollerdMBean
        Returns:
        The number of currently active poller threads
      • getTasksTotal

        public long getTasksTotal()
        Specified by:
        getTasksTotal in interface PollerdMBean
        Returns:
        The cumulative number of polling tasks scheduled since poller startup
      • getTasksCompleted

        public long getTasksCompleted()
        Specified by:
        getTasksCompleted in interface PollerdMBean
        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 interface PollerdMBean
        Returns:
        the number of polls that have been executed
      • getTaskCompletionRatio

        public double getTaskCompletionRatio()
        Specified by:
        getTaskCompletionRatio in interface PollerdMBean
        Returns:
        The ratio of completed to scheduled polling tasks since poller startup
      • getNumPoolThreads

        public long getNumPoolThreads()
        Specified by:
        getNumPoolThreads in interface PollerdMBean
        Returns:
        The current number of threads in the pool
      • getPeakPoolThreads

        public long getPeakPoolThreads()
        Specified by:
        getPeakPoolThreads in interface PollerdMBean
        Returns:
        The largest size of the poller thread pool since poller startup
      • getCorePoolThreads

        public long getCorePoolThreads()
        Specified by:
        getCorePoolThreads in interface PollerdMBean
        Returns:
        The core number of threads
      • getMaxPoolThreads

        public long getMaxPoolThreads()
        Specified by:
        getMaxPoolThreads in interface PollerdMBean
        Returns:
        The maximum number of threads allowed in the poller's thread pool
      • getTaskQueuePendingCount

        public long getTaskQueuePendingCount()
        Specified by:
        getTaskQueuePendingCount in interface PollerdMBean
        Returns:
        The number of pending tasks on our ExecutorService
      • getTaskQueueRemainingCapacity

        public long getTaskQueueRemainingCapacity()
        Specified by:
        getTaskQueueRemainingCapacity in interface PollerdMBean
        Returns:
        The number of open slots on our ExecutorService queue.