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() |
String |
getJmxName() |
int |
getMaxRequestsCount() |
int |
getRefusesCount() |
int |
getTimeoutsCount() |
protected void |
onDeregister(GrizzlyJmxManager mom)
Method will be called right after this JmxObject is unregistered by the JMX manager.
|
protected void |
onRegister(GrizzlyJmxManager mom,
org.glassfish.gmbal.GmbalMBean bean)
Method will be called right after this JmxObject is registered by the JMX manager.
|
public String getJmxName()
getJmxName
in class JmxObject
protected void onRegister(GrizzlyJmxManager mom, org.glassfish.gmbal.GmbalMBean bean)
Method will be called right after this JmxObject is registered by the JMX manager.
When invoked, this method will add a KeepAliveProbe
to track
statistics.
onRegister
in class JmxObject
mom
- GrizzlyJmxManager
Grizzly JMX manager.bean
- GmbalMBean
, which represents the registration.protected void onDeregister(GrizzlyJmxManager mom)
Method will be called right after this JmxObject is unregistered by the JMX manager.
When invoked, this method will remove the KeepAliveProbe
added
by the onRegister(GrizzlyJmxManager, GmbalMBean)
call.
onDeregister
in class JmxObject
mom
- GrizzlyJmxManager
Grizzly JMX manager.@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.