Class EjbThreadPoolExecutorStatsProvider


  • @AMXMetadata(type="exec-pool-mon",
                 group="monitoring",
                 isSingleton=false)
    @ManagedObject
    @Description("ThreadPoolExecutor Statistics")
    public class EjbThreadPoolExecutorStatsProvider
    extends Object
    Class that provides monitoring stats for the ThreadPoolExecutor
    Author:
    Andrew Pielage
    • Constructor Detail

      • EjbThreadPoolExecutorStatsProvider

        public EjbThreadPoolExecutorStatsProvider​(String poolName)
    • Method Detail

      • register

        public void register()
      • unregister

        public void unregister()
      • getActiveThreads

        @ManagedAttribute(id="activenumthreads")
        @Description("Number of active threads in the associated pool")
        public org.glassfish.external.statistics.CountStatistic getActiveThreads()
      • getTasksCompleted

        @ManagedAttribute(id="numtaskscompleted")
        @Description("Number of tasks completed in the associated pool")
        public org.glassfish.external.statistics.CountStatistic getTasksCompleted()
      • getCorePoolSize

        @ManagedAttribute(id="corenumthreads")
        @Description("Core number of threads in the associated pool")
        public org.glassfish.external.statistics.CountStatistic getCorePoolSize()
      • getKeepAlive

        @ManagedAttribute(id="keepalivetime")
        @Description("Keep-Alive time for threads in the associated pool")
        public org.glassfish.external.statistics.CountStatistic getKeepAlive()
      • getLargestPoolSize

        @ManagedAttribute(id="largestnumthreads")
        @Description("Largest number of simultaneous threads in the associated pool")
        public org.glassfish.external.statistics.CountStatistic getLargestPoolSize()
      • getMaxPoolSize

        @ManagedAttribute(id="maxnumthreads")
        @Description("Maximum number of threads in the associated pool")
        public org.glassfish.external.statistics.CountStatistic getMaxPoolSize()
      • getPoolSize

        @ManagedAttribute(id="numthreads")
        @Description("Current number of threads in the associated pool")
        public org.glassfish.external.statistics.CountStatistic getPoolSize()
      • getTasksCreated

        @ManagedAttribute(id="totaltaskscreated")
        @Description("Number of tasks created in the associated pool")
        public org.glassfish.external.statistics.CountStatistic getTasksCreated()