org.jboss.web.loadbalancer.scheduler
Class HostStatistics
java.lang.Object
org.jboss.web.loadbalancer.scheduler.HostStatistics
- public class HostStatistics
- extends java.lang.Object
This class holds statistics for a node.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HostStatistics
public HostStatistics()
addRequest
public void addRequest(int responseTime)
reset
public void reset()
getAvgResponseTime
public int getAvgResponseTime()
getNumRequests
public long getNumRequests()
getSumResponseTime
public long getSumResponseTime()
getCurrentConnections
public int getCurrentConnections()
incCurrentConnections
public void incCurrentConnections()
decCurrentConnections
public void decCurrentConnections()
toString
public java.lang.String toString()