| Constructor and Description |
|---|
KeepAlive(KeepAlive keepAlive)
Constructs a new JMX managed KeepAlive for the specified
KeepAlive instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectionsCount() |
int |
getHitsCount() |
int |
getIdleTimeoutInSeconds() |
java.lang.String |
getJmxName() |
int |
getMaxRequestsCount() |
int |
getRefusesCount() |
int |
getTimeoutsCount() |
protected void |
onDeregister(GrizzlyJmxManager mom)
|
protected void |
onRegister(GrizzlyJmxManager mom,
org.glassfish.gmbal.GmbalMBean bean)
|
public java.lang.String getJmxName()
getJmxName in class JmxObjectprotected void onRegister(GrizzlyJmxManager mom, org.glassfish.gmbal.GmbalMBean bean)
When invoked, this method will add a KeepAliveProbe to track
statistics.
onRegister in class JmxObjectprotected void onDeregister(GrizzlyJmxManager mom)
When invoked, this method will remove the KeepAliveProbe added
by the onRegister(GrizzlyJmxManager, GmbalMBean)
call.
onDeregister in class JmxObject@ManagedAttribute(id="idle-timeout-seconds") @Description(value="The time period keep-alive connection may stay idle") public int getIdleTimeoutInSeconds()
KeepAlive.getIdleTimeoutInSeconds()@ManagedAttribute(id="max-requests-count") @Description(value="the max number of HTTP requests allowed to be processed on one keep-alive connection") public int getMaxRequestsCount()
KeepAlive.getMaxRequestsCount()@ManagedAttribute(id="live-connections-count") @Description(value="The number of live keep-alive connections") public int getConnectionsCount()
@ManagedAttribute(id="hits-count") @Description(value="The number of requests processed on a keep-alive connections.") public int getHitsCount()
@ManagedAttribute(id="refuses-count") @Description(value="The number of times keep-alive mode was refused.") public int getRefusesCount()
@ManagedAttribute(id="timeouts-count") @Description(value="The number of times idle keep-alive connections were closed by timeout.") public int getTimeoutsCount()
Copyright © 2014 Oracle Corporation. All Rights Reserved.