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 StatsProvider
Connection Queue statistics- Author:
- Alexey Stashok
-
-
Field Summary
Fields Modifier and Type Field Description protected long
averageLastShift
protected int
averageMinuteCounter
protected int[]
averageStatsPerMinute
protected org.glassfish.external.statistics.impl.CountStatisticImpl
countOverflows
protected org.glassfish.external.statistics.impl.CountStatisticImpl
countQueued
protected AtomicInteger
countQueuedAtomic
protected org.glassfish.external.statistics.impl.CountStatisticImpl
countTotalConnections
protected org.glassfish.external.statistics.impl.CountStatisticImpl
countTotalQueued
protected org.glassfish.external.statistics.impl.CountStatisticImpl
maxQueued
protected static long
MINUTE
protected Map<Integer,Long>
openConnectionsCount
protected org.glassfish.external.statistics.impl.CountStatisticImpl
peakQueued
protected AtomicInteger
peakQueuedAtomic
protected org.glassfish.grizzly.threadpool.ThreadPoolConfig
threadPoolConfig
protected org.glassfish.external.statistics.impl.CountStatisticImpl
ticksTotalQueued
-
Constructor Summary
Constructors Constructor Description ConnectionQueueStatsProvider(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connectionAcceptedEvent(String listenerName, int connectionId, String address)
void
connectionClosedEvent(String listenerName, int connectionId)
protected int
getAverageBy(int mins)
org.glassfish.external.statistics.CountStatistic
getCountOverflows()
org.glassfish.external.statistics.CountStatistic
getCountQueued()
org.glassfish.external.statistics.CountStatistic
getCountQueued15MinutesAverage()
org.glassfish.external.statistics.CountStatistic
getCountQueued1MinuteAverage()
org.glassfish.external.statistics.CountStatistic
getCountQueued5MinutesAverage()
org.glassfish.external.statistics.CountStatistic
getCountTotalQueued()
org.glassfish.external.statistics.CountStatistic
getMaxQueued()
org.glassfish.external.statistics.CountStatistic
getOpenConnectionsCount()
org.glassfish.external.statistics.CountStatistic
getPeakQueued()
Object
getStatsObject()
Get object, from which StatsProvider can get statistics directly without listening emitting events.org.glassfish.external.statistics.CountStatistic
getTicksTotalQueued()
org.glassfish.external.statistics.CountStatistic
getTotalConnectionsCount()
protected void
incAverageMinute()
void
onTaskDequeuedEvent(String listenerName, String taskId)
void
onTaskQueuedEvent(String listenerName, String taskId)
void
onTaskQueueOverflowEvent(String listenerName)
void
reset()
void
setMaxTaskQueueSizeEvent(String listenerName, int size)
void
setStatsObject(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:StatsProvider
Get object, from which StatsProvider can get statistics directly without listening emitting events.- Specified by:
getStatsObject
in interfaceStatsProvider
- 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 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()
-
-