org.glassfish.grizzly.http.KeepAlive .
| Modifier and Type | Class and Description |
|---|---|
| private class | KeepAlive.
JMX statistic gathering |
| Modifier and Type | Field and Description |
|---|---|
| private final KeepAlive | keepAlive
The |
| private final AtomicInteger | keepAliveConnectionsCount
The number of live keep-alive connections. |
| private final AtomicInteger | keepAliveHitsCount
The number of requests processed on a keep-alive connections. |
| private final KeepAlive. | keepAliveProbe
The |
| private final AtomicInteger | keepAliveRefusesCount
The number of times keep-alive mode was refused. |
| private final AtomicInteger | keepAliveTimeoutsCount
The number of times idle keep-alive connections were closed by timeout. |
| Access | Constructor and Description |
|---|---|
| public | KeepAlive(KeepAlive
the keepAlive)org.
to manage.Constructs a new JMX managed KeepAlive for the specified
|
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public int | |
| public String | |
| public int | |
| public int | |
| public int | |
| protected void | onDeregister(GrizzlyJmxManager mom)
Implements abstract org. Method will be called right after this JmxObject is unregistered by the JMX manager. |
| protected void | onRegister(GrizzlyJmxManager mom, GmbalMBean bean)
Implements abstract org. Method will be called right after this JmxObject is registered by the JMX manager. |
| keepAlive | back to summary |
|---|---|
| private final KeepAlive keepAlive The | |
| keepAliveConnectionsCount | back to summary |
|---|---|
| private final AtomicInteger keepAliveConnectionsCount The number of live keep-alive connections. | |
| keepAliveHitsCount | back to summary |
|---|---|
| private final AtomicInteger keepAliveHitsCount The number of requests processed on a keep-alive connections. | |
| keepAliveProbe | back to summary |
|---|---|
| private final KeepAlive. The | |
| keepAliveRefusesCount | back to summary |
|---|---|
| private final AtomicInteger keepAliveRefusesCount The number of times keep-alive mode was refused. | |
| keepAliveTimeoutsCount | back to summary |
|---|---|
| private final AtomicInteger keepAliveTimeoutsCount The number of times idle keep-alive connections were closed by timeout. | |
| KeepAlive | back to summary |
|---|---|
| public KeepAlive(KeepAlive keepAlive) Constructs a new JMX managed KeepAlive for the specified
| |
| getConnectionsCount | back to summary |
|---|---|
public int getConnectionsCount()
| |
| getHitsCount | back to summary |
|---|---|
public int getHitsCount()
| |
| getIdleTimeoutInSeconds | back to summary |
|---|---|
public int getIdleTimeoutInSeconds()
| |
| getJmxName | back to summary |
|---|---|
| public String getJmxName() Implements abstract org.
| |
| getMaxRequestsCount | back to summary |
|---|---|
public int getMaxRequestsCount()
| |
| getRefusesCount | back to summary |
|---|---|
public int getRefusesCount()
| |
| getTimeoutsCount | back to summary |
|---|---|
public int getTimeoutsCount()
| |
| onDeregister | back to summary |
|---|---|
| protected void onDeregister(GrizzlyJmxManager mom) Implements abstract org. Doc from org. Method will be called right after this JmxObject is unregistered by the JMX manager.
When invoked, this method will remove the
| |
| onRegister | back to summary |
|---|---|
| protected void onRegister(GrizzlyJmxManager mom, GmbalMBean bean) Implements abstract org. Doc from org. Method will be called right after this JmxObject is registered by the JMX manager.
When invoked, this method will add a
| |
KeepAliveProbe.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | onConnectionAcceptEvent(Connection<L> connection)
Implements org. Method will be called, when new keep-alive HTTP connection is getting established. |
| public void | onHitEvent(Connection<L> connection, int requestCounter)
Implements org. Method will be called, when HTTP request comes on a kept alive connection. |
| public void | onRefuseEvent(Connection<L> connection)
Implements org. Method will be called, when the Connection could be used in the keep alive mode, but due to KeepAlive config limitations it will be closed. |
| public void | onTimeoutEvent(Connection<L> connection)
Implements org. Method will be called, when the keep alive Connection idle timeout expired. |
| JMXKeepAliveProbe | back to summary |
|---|---|
| private JMXKeepAliveProbe() | |
| onConnectionAcceptEvent | back to summary |
|---|---|
| public void onConnectionAcceptEvent(Connection<L> connection) Implements org. Doc from org. Method will be called, when new keep-alive HTTP connection is getting established. This method is getting invoked, when 1st HTTP request processing completes, but the Connection will be kept alive to process next HTTP request.
| |
| onHitEvent | back to summary |
|---|---|
| public void onHitEvent(Connection<L> connection, int requestCounter) Implements org. Doc from org. Method will be called, when HTTP request comes on a kept alive connection.
| |
| onRefuseEvent | back to summary |
|---|---|
| public void onRefuseEvent(Connection<L> connection) Implements org. Doc from org. Method will be called, when the Connection could be used in the keep alive mode, but due to KeepAlive config limitations it will be closed.
| |
| onTimeoutEvent | back to summary |
|---|---|
| public void onTimeoutEvent(Connection<L> connection) Implements org. Doc from org. Method will be called, when the keep alive Connection idle timeout expired.
| |