org.glassfish.grizzly.http.jmx
Class KeepAlive

java.lang.Object
  extended by org.glassfish.grizzly.monitoring.jmx.JmxObject
      extended by org.glassfish.grizzly.http.jmx.KeepAlive

@ManagedObject
@Description(value="The configuration for HTTP keep-alive connections.")
public class KeepAlive
extends JmxObject

JMX management object for KeepAlive.

Since:
2.0

Constructor Summary
KeepAlive(KeepAlive keepAlive)
          Constructs a new JMX managed KeepAlive for the specified KeepAlive instance.
 
Method Summary
 int getConnectionsCount()
           
 int getHitsCount()
           
 int getIdleTimeoutInSeconds()
           
 String getJmxName()
          
 int getMaxRequestsCount()
           
 int getRefusesCount()
           
 int getTimeoutsCount()
           
protected  void onRegister(GrizzlyJmxManager mom, org.glassfish.gmbal.GmbalMBean bean)
          
protected  void onUnregister(GrizzlyJmxManager mom)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeepAlive

public KeepAlive(KeepAlive keepAlive)
Constructs a new JMX managed KeepAlive for the specified KeepAlive instance.

Parameters:
keepAlive - the KeepAlive to manage.
Method Detail

getJmxName

public String getJmxName()

Specified by:
getJmxName in class JmxObject

onRegister

protected void onRegister(GrizzlyJmxManager mom,
                          org.glassfish.gmbal.GmbalMBean bean)

When invoked, this method will add a KeepAliveProbe to track statistics.

Specified by:
onRegister in class JmxObject

onUnregister

protected void onUnregister(GrizzlyJmxManager mom)

When invoked, this method will remove the KeepAliveProbe added by the onRegister(org.glassfish.grizzly.monitoring.jmx.GrizzlyJmxManager, org.glassfish.gmbal.GmbalMBean) call.

Specified by:
onUnregister in class JmxObject

getIdleTimeoutInSeconds

@ManagedAttribute(id="idle-timeout-seconds")
@Description(value="The time period keep-alive connection may stay idle")
public int getIdleTimeoutInSeconds()
See Also:
KeepAlive.getIdleTimeoutInSeconds()

getMaxRequestsCount

@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()
See Also:
KeepAlive.getMaxRequestsCount()

getConnectionsCount

@ManagedAttribute(id="live-connections-count")
@Description(value="The number of live keep-alive connections")
public int getConnectionsCount()
Returns:
the number live keep-alive connections.

getHitsCount

@ManagedAttribute(id="hits-count")
@Description(value="The number of requests processed on a keep-alive connections.")
public int getHitsCount()
Returns:
the number of requests processed on a keep-alive connections.

getRefusesCount

@ManagedAttribute(id="refuses-count")
@Description(value="The number of times keep-alive mode was refused.")
public int getRefusesCount()
Returns:
the number of times keep-alive mode was refused.

getTimeoutsCount

@ManagedAttribute(id="timeouts-count")
@Description(value="The number of times idle keep-alive connections were closed by timeout.")
public int getTimeoutsCount()
Returns:
the number of times idle keep-alive connections were closed by timeout.


Copyright © 2010 Oracle Corpration. All Rights Reserved.