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("Keep-Alive Statistics") public class KeepAliveStatsProvider extends Object implements StatsProvider
Keep-alive statistics- Author:
- Alexey Stashok
-
-
Field Summary
Fields Modifier and Type Field Description 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
-
Constructor Summary
Constructors Constructor Description KeepAliveStatsProvider(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decrementCountConnectionsEvent(String listenerName)
org.glassfish.external.statistics.CountStatistic
getFlushesCount()
org.glassfish.external.statistics.CountStatistic
getHitsCount()
org.glassfish.external.statistics.CountStatistic
getKeepAliveConnectionsCount()
org.glassfish.external.statistics.CountStatistic
getKeepAliveTimeoutInSeconds()
org.glassfish.external.statistics.CountStatistic
getMaxKeepAliveRequestsCount()
org.glassfish.external.statistics.CountStatistic
getRefusalsCount()
Object
getStatsObject()
Get object, from which StatsProvider can get statistics directly without listening emitting events.org.glassfish.external.statistics.CountStatistic
getTimeoutsCount()
void
incrementCountConnectionsEvent(String listenerName)
void
incrementCountFlushesEvent(String listenerName)
void
incrementCountHitsEvent(String listenerName)
void
incrementCountRefusalsEvent(String listenerName)
void
incrementCountTimeoutsEvent(String listenerName)
void
reset()
void
setMaxCountRequestsEvent(String listenerName, int max)
void
setStatsObject(Object object)
Set object, from which StatsProvider can get statistics directly without listening emitting events.void
setTimeoutInSecondsEvent(String listenerName, int timeoutInSeconds)
-
-
-
Field Detail
-
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
-
-
Constructor Detail
-
KeepAliveStatsProvider
public KeepAliveStatsProvider(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
-
getMaxKeepAliveRequestsCount
@ManagedAttribute(id="maxrequests") @Description("Maximum number of requests allowed on a single keep-alive connection") public org.glassfish.external.statistics.CountStatistic getMaxKeepAliveRequestsCount()
-
getKeepAliveTimeoutInSeconds
@ManagedAttribute(id="secondstimeouts") @Description("Keep-alive timeout value in seconds") public org.glassfish.external.statistics.CountStatistic getKeepAliveTimeoutInSeconds()
-
getKeepAliveConnectionsCount
@ManagedAttribute(id="countconnections") @Description("Number of connections in keep-alive mode") public org.glassfish.external.statistics.CountStatistic getKeepAliveConnectionsCount()
-
getFlushesCount
@ManagedAttribute(id="countflushes") @Description("Number of keep-alive connections that were closed") public org.glassfish.external.statistics.CountStatistic getFlushesCount()
-
getHitsCount
@ManagedAttribute(id="counthits") @Description("Number of requests received by connections in keep-alive mode") public org.glassfish.external.statistics.CountStatistic getHitsCount()
-
getRefusalsCount
@ManagedAttribute(id="countrefusals") @Description("Number of keep-alive connections that were rejected") public org.glassfish.external.statistics.CountStatistic getRefusalsCount()
-
getTimeoutsCount
@ManagedAttribute(id="counttimeouts") @Description("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()
-
-