| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.logicalcobwebs.proxool.admin.Statistics
class Statistics
Implementation of StatisticsIF
| Field Summary | |
|---|---|
| private  long | refusedCount | 
| private  long | servedCount | 
| private  java.util.Date | startDate | 
| private  java.util.Date | stopDate | 
| private  long | totalActiveTime | 
| Constructor Summary | |
|---|---|
| protected  | Statistics(java.util.Date startDate) | 
| Method Summary | |
|---|---|
| protected  void | connectionRefused() | 
| protected  void | connectionReturned(long activeTime) | 
|  double | getAverageActiveCount()The average number of active connections, | 
|  double | getAverageActiveTime()The average time that each connection spent active. | 
|  long | getPeriod()The length of time this sample represents, | 
|  long | getRefusedCount()The number of connections refused during this sample. | 
|  double | getRefusedPerSecond()The rate at which we have refused connections | 
|  long | getServedCount()The number of connections served during this sample. | 
|  double | getServedPerSecond()The rate at which we have served connections | 
|  java.util.Date | getStartDate()When this sample started. | 
|  java.util.Date | getStopDate()When this sample stopped | 
| protected  void | setStopDate(java.util.Date stopDate) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
private java.util.Date startDate
private java.util.Date stopDate
private long servedCount
private long refusedCount
private long totalActiveTime
| Constructor Detail | 
|---|
protected Statistics(java.util.Date startDate)
startDate - see StatisticsIF.getStartDate()| Method Detail | 
|---|
protected void connectionReturned(long activeTime)
Admin.connectionReturned(long)protected void connectionRefused()
Admin.connectionRefused()protected void setStopDate(java.util.Date stopDate)
StatisticsIF.getStopDate()public java.util.Date getStartDate()
StatisticsIF
getStartDate in interface StatisticsIFStatisticsIF.getStartDate()public java.util.Date getStopDate()
StatisticsIF
getStopDate in interface StatisticsIFStatisticsIF.getStopDate()public long getPeriod()
StatisticsIF
getPeriod in interface StatisticsIFStatisticsIF.getPeriod()public double getAverageActiveTime()
StatisticsIF
getAverageActiveTime in interface StatisticsIFStatisticsIF.getAverageActiveTime()public double getAverageActiveCount()
StatisticsIF
getAverageActiveCount in interface StatisticsIFStatisticsIF.getAverageActiveCount()public double getServedPerSecond()
StatisticsIF
getServedPerSecond in interface StatisticsIFStatisticsIF.getServedPerSecond()public double getRefusedPerSecond()
StatisticsIF
getRefusedPerSecond in interface StatisticsIFStatisticsIF.getRefusedPerSecond()public long getServedCount()
StatisticsIF
getServedCount in interface StatisticsIFStatisticsIF.getServedCount()public long getRefusedCount()
StatisticsIF
getRefusedCount in interface StatisticsIFStatisticsIF.getRefusedCount()| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||