@AMXMetadata(type="connection-queue-mon", group="monitoring") @ManagedObject @Description(value="Connection Queue Statistics") public class ConnectionQueueStatsProvider extends Object implements StatsProvider
Modifier and Type | Field and 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 and Description |
---|
ConnectionQueueStatsProvider(String name) |
Modifier and Type | Method and 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.
|
protected static final long MINUTE
protected final org.glassfish.external.statistics.impl.CountStatisticImpl countTotalConnections
protected final org.glassfish.external.statistics.impl.CountStatisticImpl countOverflows
protected final AtomicInteger countQueuedAtomic
protected final org.glassfish.external.statistics.impl.CountStatisticImpl countQueued
protected final org.glassfish.external.statistics.impl.CountStatisticImpl countTotalQueued
protected final org.glassfish.external.statistics.impl.CountStatisticImpl maxQueued
protected final AtomicInteger peakQueuedAtomic
protected final org.glassfish.external.statistics.impl.CountStatisticImpl peakQueued
protected final org.glassfish.external.statistics.impl.CountStatisticImpl ticksTotalQueued
protected final int[] averageStatsPerMinute
protected long averageLastShift
protected int averageMinuteCounter
protected volatile org.glassfish.grizzly.threadpool.ThreadPoolConfig threadPoolConfig
public ConnectionQueueStatsProvider(String name)
public Object getStatsObject()
StatsProvider
getStatsObject
in interface StatsProvider
public void setStatsObject(Object object)
StatsProvider
setStatsObject
in interface StatsProvider
object
- statistics@ManagedAttribute(id="counttotalconnections") @Description(value="Total number of connections that have been accepted") public org.glassfish.external.statistics.CountStatistic getTotalConnectionsCount()
@ManagedAttribute(id="countopenconnections") @Description(value="The number of open/active connections") public org.glassfish.external.statistics.CountStatistic getOpenConnectionsCount()
@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()
@ManagedAttribute(id="countqueued") @Description(value="Number of connections currently in the queue") public org.glassfish.external.statistics.CountStatistic getCountQueued()
@ManagedAttribute(id="countqueued1minuteaverage") @Description(value="Average number of connections queued in the last 1 minute") public org.glassfish.external.statistics.CountStatistic getCountQueued1MinuteAverage()
@ManagedAttribute(id="countqueued5minutesaverage") @Description(value="Average number of connections queued in the last 5 minutes") public org.glassfish.external.statistics.CountStatistic getCountQueued5MinutesAverage()
@ManagedAttribute(id="countqueued15minutesaverage") @Description(value="Average number of connections queued in the last 15 minutes") public org.glassfish.external.statistics.CountStatistic getCountQueued15MinutesAverage()
@ManagedAttribute(id="counttotalqueued") @Description(value="Total number of connections that have been queued") public org.glassfish.external.statistics.CountStatistic getCountTotalQueued()
@ManagedAttribute(id="maxqueued") @Description(value="Maximum size of the connection queue") public org.glassfish.external.statistics.CountStatistic getMaxQueued()
@ManagedAttribute(id="peakqueued") @Description(value="Largest number of connections that were in the queue simultaneously") public org.glassfish.external.statistics.CountStatistic getPeakQueued()
@ManagedAttribute(id="tickstotalqueued") @Description(value="(Unsupported) Total number of ticks that connections have spent in the queue") public org.glassfish.external.statistics.CountStatistic getTicksTotalQueued()
public void connectionAcceptedEvent(String listenerName, int connectionId, String address)
public void connectionClosedEvent(String listenerName, int connectionId)
public void setMaxTaskQueueSizeEvent(String listenerName, int size)
public void onTaskQueueOverflowEvent(String listenerName)
protected void incAverageMinute()
protected int getAverageBy(int mins)
public void reset()
Copyright © 2021. All rights reserved.