Class ConnectionQueueStatsProvider

  • All Implemented Interfaces:
    StatsProvider
    Direct Known Subclasses:
    ConnectionQueueStatsProviderGlobal

    @AMXMetadata(type="connection-queue-mon",
                 group="monitoring")
    @ManagedObject
    @Description("Connection Queue Statistics")
    public class ConnectionQueueStatsProvider
    extends Object
    implements StatsProvider
    Connection Queue statistics
    Author:
    Alexey Stashok
    • Field Detail

      • countTotalConnections

        protected final org.glassfish.external.statistics.impl.CountStatisticImpl countTotalConnections
      • openConnectionsCount

        protected final Map<Integer,​Long> openConnectionsCount
      • countOverflows

        protected final org.glassfish.external.statistics.impl.CountStatisticImpl countOverflows
      • countQueuedAtomic

        protected final AtomicInteger countQueuedAtomic
      • countQueued

        protected final org.glassfish.external.statistics.impl.CountStatisticImpl countQueued
      • countTotalQueued

        protected final org.glassfish.external.statistics.impl.CountStatisticImpl countTotalQueued
      • maxQueued

        protected final org.glassfish.external.statistics.impl.CountStatisticImpl maxQueued
      • peakQueuedAtomic

        protected final AtomicInteger peakQueuedAtomic
      • peakQueued

        protected final org.glassfish.external.statistics.impl.CountStatisticImpl peakQueued
      • ticksTotalQueued

        protected final org.glassfish.external.statistics.impl.CountStatisticImpl ticksTotalQueued
      • averageStatsPerMinute

        protected final int[] averageStatsPerMinute
      • averageLastShift

        protected long averageLastShift
      • averageMinuteCounter

        protected int averageMinuteCounter
      • threadPoolConfig

        protected volatile org.glassfish.grizzly.threadpool.ThreadPoolConfig threadPoolConfig
    • Constructor Detail

      • ConnectionQueueStatsProvider

        public ConnectionQueueStatsProvider​(String name)
    • Method Detail

      • getStatsObject

        public Object getStatsObject()
        Description copied from interface: StatsProvider
        Get object, from which StatsProvider can get statistics directly without listening emitting events.
        Specified by:
        getStatsObject in interface StatsProvider
        Returns:
        statistics
      • setStatsObject

        public void setStatsObject​(Object object)
        Description copied from interface: StatsProvider
        Set object, from which StatsProvider can get statistics directly without listening emitting events.
        Specified by:
        setStatsObject in interface StatsProvider
        Parameters:
        object - statistics
      • getTotalConnectionsCount

        @ManagedAttribute(id="counttotalconnections")
        @Description("Total number of connections that have been accepted")
        public org.glassfish.external.statistics.CountStatistic getTotalConnectionsCount()
      • getOpenConnectionsCount

        @ManagedAttribute(id="countopenconnections")
        @Description("The number of open/active connections")
        public org.glassfish.external.statistics.CountStatistic getOpenConnectionsCount()
      • getCountOverflows

        @ManagedAttribute(id="countoverflows")
        @Description("Number of times the queue has been too full to accommodate a connection")
        public org.glassfish.external.statistics.CountStatistic getCountOverflows()
      • getCountQueued

        @ManagedAttribute(id="countqueued")
        @Description("Number of connections currently in the queue")
        public org.glassfish.external.statistics.CountStatistic getCountQueued()
      • getCountQueued1MinuteAverage

        @ManagedAttribute(id="countqueued1minuteaverage")
        @Description("Average number of connections queued in the last 1 minute")
        public org.glassfish.external.statistics.CountStatistic getCountQueued1MinuteAverage()
      • getCountQueued5MinutesAverage

        @ManagedAttribute(id="countqueued5minutesaverage")
        @Description("Average number of connections queued in the last 5 minutes")
        public org.glassfish.external.statistics.CountStatistic getCountQueued5MinutesAverage()
      • getCountQueued15MinutesAverage

        @ManagedAttribute(id="countqueued15minutesaverage")
        @Description("Average number of connections queued in the last 15 minutes")
        public org.glassfish.external.statistics.CountStatistic getCountQueued15MinutesAverage()
      • getCountTotalQueued

        @ManagedAttribute(id="counttotalqueued")
        @Description("Total number of connections that have been queued")
        public org.glassfish.external.statistics.CountStatistic getCountTotalQueued()
      • getMaxQueued

        @ManagedAttribute(id="maxqueued")
        @Description("Maximum size of the connection queue")
        public org.glassfish.external.statistics.CountStatistic getMaxQueued()
      • getPeakQueued

        @ManagedAttribute(id="peakqueued")
        @Description("Largest number of connections that were in the queue simultaneously")
        public org.glassfish.external.statistics.CountStatistic getPeakQueued()
      • getTicksTotalQueued

        @ManagedAttribute(id="tickstotalqueued")
        @Description("(Unsupported) Total number of ticks that connections have spent in the queue")
        public org.glassfish.external.statistics.CountStatistic getTicksTotalQueued()
      • connectionAcceptedEvent

        public void connectionAcceptedEvent​(String listenerName,
                                            int connectionId,
                                            String address)
      • connectionClosedEvent

        public void connectionClosedEvent​(String listenerName,
                                          int connectionId)
      • setMaxTaskQueueSizeEvent

        public void setMaxTaskQueueSizeEvent​(String listenerName,
                                             int size)
      • onTaskQueuedEvent

        public void onTaskQueuedEvent​(String listenerName,
                                      String taskId)
      • onTaskDequeuedEvent

        public void onTaskDequeuedEvent​(String listenerName,
                                        String taskId)
      • onTaskQueueOverflowEvent

        public void onTaskQueueOverflowEvent​(String listenerName)
      • incAverageMinute

        protected void incAverageMinute()
      • getAverageBy

        protected int getAverageBy​(int mins)
      • reset

        public void reset()