@AMXMetadata(type="keep-alive-mon", group="monitoring") @ManagedObject @Description(value="Keep-Alive Statistics") public class KeepAliveStatsProvider extends Object implements StatsProvider
Modifier and Type | Field and 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 and Description |
---|
KeepAliveStatsProvider(String name) |
Modifier and Type | Method and 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) |
protected final org.glassfish.external.statistics.impl.CountStatisticImpl maxRequestsCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl timeoutInSeconds
protected final org.glassfish.external.statistics.impl.CountStatisticImpl totalKeepAliveConnectionsCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl keepAliveConnectionsCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl hitsCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl refusalsCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl timeoutsCount
protected volatile org.glassfish.grizzly.http.KeepAlive keepAliveStats
public KeepAliveStatsProvider(String name)
public Object getStatsObject()
StatsProvider
getStatsObject
in interface StatsProvider
public void setStatsObject(Object object)
StatsProvider
setStatsObject
in interface StatsProvider
object
- statistics@ManagedAttribute(id="maxrequests") @Description(value="Maximum number of requests allowed on a single keep-alive connection") public org.glassfish.external.statistics.CountStatistic getMaxKeepAliveRequestsCount()
@ManagedAttribute(id="secondstimeouts") @Description(value="Keep-alive timeout value in seconds") public org.glassfish.external.statistics.CountStatistic getKeepAliveTimeoutInSeconds()
@ManagedAttribute(id="countconnections") @Description(value="Number of connections in keep-alive mode") public org.glassfish.external.statistics.CountStatistic getKeepAliveConnectionsCount()
@ManagedAttribute(id="countflushes") @Description(value="Number of keep-alive connections that were closed") public org.glassfish.external.statistics.CountStatistic getFlushesCount()
@ManagedAttribute(id="counthits") @Description(value="Number of requests received by connections in keep-alive mode") public org.glassfish.external.statistics.CountStatistic getHitsCount()
@ManagedAttribute(id="countrefusals") @Description(value="Number of keep-alive connections that were rejected") public org.glassfish.external.statistics.CountStatistic getRefusalsCount()
@ManagedAttribute(id="counttimeouts") @Description(value="Number of keep-alive connections that timed out") public org.glassfish.external.statistics.CountStatistic getTimeoutsCount()
public void setMaxCountRequestsEvent(String listenerName, int max)
public void setTimeoutInSecondsEvent(String listenerName, int timeoutInSeconds)
public void incrementCountConnectionsEvent(String listenerName)
public void decrementCountConnectionsEvent(String listenerName)
public void incrementCountFlushesEvent(String listenerName)
public void incrementCountHitsEvent(String listenerName)
public void incrementCountRefusalsEvent(String listenerName)
public void incrementCountTimeoutsEvent(String listenerName)
public void reset()
Copyright © 2018. All rights reserved.