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 StatsProviderKeep-alive statistics- Author:
- Alexey Stashok
-
-
Field Summary
Fields Modifier and Type Field Description protected org.glassfish.external.statistics.impl.CountStatisticImplhitsCountprotected org.glassfish.external.statistics.impl.CountStatisticImplkeepAliveConnectionsCountprotected org.glassfish.grizzly.http.KeepAlivekeepAliveStatsprotected org.glassfish.external.statistics.impl.CountStatisticImplmaxRequestsCountprotected org.glassfish.external.statistics.impl.CountStatisticImplrefusalsCountprotected org.glassfish.external.statistics.impl.CountStatisticImpltimeoutInSecondsprotected org.glassfish.external.statistics.impl.CountStatisticImpltimeoutsCountprotected org.glassfish.external.statistics.impl.CountStatisticImpltotalKeepAliveConnectionsCount
-
Constructor Summary
Constructors Constructor Description KeepAliveStatsProvider(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecrementCountConnectionsEvent(String listenerName)org.glassfish.external.statistics.CountStatisticgetFlushesCount()org.glassfish.external.statistics.CountStatisticgetHitsCount()org.glassfish.external.statistics.CountStatisticgetKeepAliveConnectionsCount()org.glassfish.external.statistics.CountStatisticgetKeepAliveTimeoutInSeconds()org.glassfish.external.statistics.CountStatisticgetMaxKeepAliveRequestsCount()org.glassfish.external.statistics.CountStatisticgetRefusalsCount()ObjectgetStatsObject()Get object, from which StatsProvider can get statistics directly without listening emitting events.org.glassfish.external.statistics.CountStatisticgetTimeoutsCount()voidincrementCountConnectionsEvent(String listenerName)voidincrementCountFlushesEvent(String listenerName)voidincrementCountHitsEvent(String listenerName)voidincrementCountRefusalsEvent(String listenerName)voidincrementCountTimeoutsEvent(String listenerName)voidreset()voidsetMaxCountRequestsEvent(String listenerName, int max)voidsetStatsObject(Object object)Set object, from which StatsProvider can get statistics directly without listening emitting events.voidsetTimeoutInSecondsEvent(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:StatsProviderGet object, from which StatsProvider can get statistics directly without listening emitting events.- Specified by:
getStatsObjectin interfaceStatsProvider- Returns:
- statistics
-
setStatsObject
public void setStatsObject(Object object)
Description copied from interface:StatsProviderSet object, from which StatsProvider can get statistics directly without listening emitting events.- Specified by:
setStatsObjectin 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()
-
-