org.jboss.web.loadbalancer.scheduler
Class HostStatistics

java.lang.Object
  extended byorg.jboss.web.loadbalancer.scheduler.HostStatistics

public class HostStatistics
extends java.lang.Object

This class holds statistics for a node.


Constructor Summary
HostStatistics()
           
 
Method Summary
 void addRequest(int responseTime)
           
 void decCurrentConnections()
           
 int getAvgResponseTime()
           
 int getCurrentConnections()
           
 long getNumRequests()
           
 long getSumResponseTime()
           
 void incCurrentConnections()
           
 void reset()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HostStatistics

public HostStatistics()
Method Detail

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()