com.sun.enterprise.v3.services.impl.monitor.stats
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(value="Connection Queue Statistics")
public class ConnectionQueueStatsProvider- extends Object
- implements StatsProvider
Connection Queue statistics
- Author:
- Alexey Stashok
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MINUTE
protected static final long MINUTE
- See Also:
- Constant Field Values
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
ConnectionQueueStatsProvider
public ConnectionQueueStatsProvider(String name)
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(value="Total number of connections that have been accepted")
public org.glassfish.external.statistics.CountStatistic getTotalConnectionsCount()
getOpenConnectionsCount
@ManagedAttribute(id="countopenconnections")
@Description(value="The number of open/active connections")
public org.glassfish.external.statistics.CountStatistic getOpenConnectionsCount()
getCountOverflows
@ManagedAttribute(id="countoverflows")
@Description(value="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(value="Number of connections currently in the queue")
public org.glassfish.external.statistics.CountStatistic getCountQueued()
getCountQueued1MinuteAverage
@ManagedAttribute(id="countqueued1minuteaverage")
@Description(value="Average number of connections queued in the last 1 minute")
public org.glassfish.external.statistics.CountStatistic getCountQueued1MinuteAverage()
getCountQueued5MinutesAverage
@ManagedAttribute(id="countqueued5minutesaverage")
@Description(value="Average number of connections queued in the last 5 minutes")
public org.glassfish.external.statistics.CountStatistic getCountQueued5MinutesAverage()
getCountQueued15MinutesAverage
@ManagedAttribute(id="countqueued15minutesaverage")
@Description(value="Average number of connections queued in the last 15 minutes")
public org.glassfish.external.statistics.CountStatistic getCountQueued15MinutesAverage()
getCountTotalQueued
@ManagedAttribute(id="counttotalqueued")
@Description(value="Total number of connections that have been queued")
public org.glassfish.external.statistics.CountStatistic getCountTotalQueued()
getMaxQueued
@ManagedAttribute(id="maxqueued")
@Description(value="Maximum size of the connection queue")
public org.glassfish.external.statistics.CountStatistic getMaxQueued()
getPeakQueued
@ManagedAttribute(id="peakqueued")
@Description(value="Largest number of connections that were in the queue simultaneously")
public org.glassfish.external.statistics.CountStatistic getPeakQueued()
getTicksTotalQueued
@ManagedAttribute(id="tickstotalqueued")
@Description(value="(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()
Copyright © 2012. All Rights Reserved.