com.sun.enterprise.v3.services.impl.monitor.stats
Class KeepAliveStatsProvider
java.lang.Object
com.sun.enterprise.v3.services.impl.monitor.stats.KeepAliveStatsProvider
- All Implemented Interfaces:
- StatsProvider
- Direct Known Subclasses:
- KeepAliveStatsProviderGlobal
@AMXMetadata(type="keep-alive-mon",
group="monitoring")
@ManagedObject
@Description(value="Keep-Alive Statistics")
public class KeepAliveStatsProvider- extends Object
- implements StatsProvider
Keep-alive statistics
- Author:
- Alexey Stashok
|
Field Summary |
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
hitsCount
|
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
keepAliveConnectionsCount
|
protected org.glassfish.grizzly.http.KeepAlive |
keepAliveStats
|
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
maxRequestsCount
|
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
refusalsCount
|
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
timeoutInSeconds
|
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
timeoutsCount
|
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
totalKeepAliveConnectionsCount
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxRequestsCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl maxRequestsCount
timeoutInSeconds
protected final org.glassfish.external.statistics.impl.CountStatisticImpl timeoutInSeconds
totalKeepAliveConnectionsCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl totalKeepAliveConnectionsCount
keepAliveConnectionsCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl keepAliveConnectionsCount
hitsCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl hitsCount
refusalsCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl refusalsCount
timeoutsCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl timeoutsCount
keepAliveStats
protected volatile org.glassfish.grizzly.http.KeepAlive keepAliveStats
KeepAliveStatsProvider
public KeepAliveStatsProvider(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
getMaxKeepAliveRequestsCount
@ManagedAttribute(id="maxrequests")
@Description(value="Maximum number of requests allowed on a single keep-alive connection")
public org.glassfish.external.statistics.CountStatistic getMaxKeepAliveRequestsCount()
getKeepAliveTimeoutInSeconds
@ManagedAttribute(id="secondstimeouts")
@Description(value="Keep-alive timeout value in seconds")
public org.glassfish.external.statistics.CountStatistic getKeepAliveTimeoutInSeconds()
getKeepAliveConnectionsCount
@ManagedAttribute(id="countconnections")
@Description(value="Number of connections in keep-alive mode")
public org.glassfish.external.statistics.CountStatistic getKeepAliveConnectionsCount()
getFlushesCount
@ManagedAttribute(id="countflushes")
@Description(value="Number of keep-alive connections that were closed")
public org.glassfish.external.statistics.CountStatistic getFlushesCount()
getHitsCount
@ManagedAttribute(id="counthits")
@Description(value="Number of requests received by connections in keep-alive mode")
public org.glassfish.external.statistics.CountStatistic getHitsCount()
getRefusalsCount
@ManagedAttribute(id="countrefusals")
@Description(value="Number of keep-alive connections that were rejected")
public org.glassfish.external.statistics.CountStatistic getRefusalsCount()
getTimeoutsCount
@ManagedAttribute(id="counttimeouts")
@Description(value="Number of keep-alive connections that timed out")
public org.glassfish.external.statistics.CountStatistic getTimeoutsCount()
setMaxCountRequestsEvent
public void setMaxCountRequestsEvent(String listenerName,
int max)
setTimeoutInSecondsEvent
public void setTimeoutInSecondsEvent(String listenerName,
int timeoutInSeconds)
incrementCountConnectionsEvent
public void incrementCountConnectionsEvent(String listenerName)
decrementCountConnectionsEvent
public void decrementCountConnectionsEvent(String listenerName)
incrementCountFlushesEvent
public void incrementCountFlushesEvent(String listenerName)
incrementCountHitsEvent
public void incrementCountHitsEvent(String listenerName)
incrementCountRefusalsEvent
public void incrementCountRefusalsEvent(String listenerName)
incrementCountTimeoutsEvent
public void incrementCountTimeoutsEvent(String listenerName)
reset
public void reset()
Copyright © 2012. All Rights Reserved.