Class ConnectionQueueStatsProvider
- java.lang.Object
-
- com.sun.enterprise.v3.services.impl.monitor.stats.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 StatsProviderConnection Queue statistics- Author:
- Alexey Stashok
-
-
Field Summary
Fields Modifier and Type Field Description protected longaverageLastShiftprotected intaverageMinuteCounterprotected int[]averageStatsPerMinuteprotected org.glassfish.external.statistics.impl.CountStatisticImplcountOverflowsprotected org.glassfish.external.statistics.impl.CountStatisticImplcountQueuedprotected AtomicIntegercountQueuedAtomicprotected org.glassfish.external.statistics.impl.CountStatisticImplcountTotalConnectionsprotected org.glassfish.external.statistics.impl.CountStatisticImplcountTotalQueuedprotected org.glassfish.external.statistics.impl.CountStatisticImplmaxQueuedprotected static longMINUTEprotected Map<Integer,Long>openConnectionsCountprotected org.glassfish.external.statistics.impl.CountStatisticImplpeakQueuedprotected AtomicIntegerpeakQueuedAtomicprotected org.glassfish.grizzly.threadpool.ThreadPoolConfigthreadPoolConfigprotected org.glassfish.external.statistics.impl.CountStatisticImplticksTotalQueued
-
Constructor Summary
Constructors Constructor Description ConnectionQueueStatsProvider(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnectionAcceptedEvent(String listenerName, int connectionId, String address)voidconnectionClosedEvent(String listenerName, int connectionId)protected intgetAverageBy(int mins)org.glassfish.external.statistics.CountStatisticgetCountOverflows()org.glassfish.external.statistics.CountStatisticgetCountQueued()org.glassfish.external.statistics.CountStatisticgetCountQueued15MinutesAverage()org.glassfish.external.statistics.CountStatisticgetCountQueued1MinuteAverage()org.glassfish.external.statistics.CountStatisticgetCountQueued5MinutesAverage()org.glassfish.external.statistics.CountStatisticgetCountTotalQueued()org.glassfish.external.statistics.CountStatisticgetMaxQueued()org.glassfish.external.statistics.CountStatisticgetOpenConnectionsCount()org.glassfish.external.statistics.CountStatisticgetPeakQueued()ObjectgetStatsObject()Get object, from which StatsProvider can get statistics directly without listening emitting events.org.glassfish.external.statistics.CountStatisticgetTicksTotalQueued()org.glassfish.external.statistics.CountStatisticgetTotalConnectionsCount()protected voidincAverageMinute()voidonTaskDequeuedEvent(String listenerName, String taskId)voidonTaskQueuedEvent(String listenerName, String taskId)voidonTaskQueueOverflowEvent(String listenerName)voidreset()voidsetMaxTaskQueueSizeEvent(String listenerName, int size)voidsetStatsObject(Object object)Set object, from which StatsProvider can get statistics directly without listening emitting events.
-
-
-
Field Detail
-
MINUTE
protected static final long MINUTE
- See Also:
- Constant Field Values
-
countTotalConnections
protected final org.glassfish.external.statistics.impl.CountStatisticImpl countTotalConnections
-
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:StatsProviderGet object, from which StatsProvider can get statistics directly without listening emitting events.- Specified by:
getStatsObjectin interfaceStatsProvider- Returns:
- statistics
-
setStatsObject
public void setStatsObject(Object object)
Description copied from interface:StatsProviderSet object, from which StatsProvider can get statistics directly without listening emitting events.- Specified by:
setStatsObjectin interfaceStatsProvider- 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)
-
onTaskQueueOverflowEvent
public void onTaskQueueOverflowEvent(String listenerName)
-
incAverageMinute
protected void incAverageMinute()
-
getAverageBy
protected int getAverageBy(int mins)
-
reset
public void reset()
-
-