|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 StatisticsIF
StatisticsIF.getStartDate()
public java.util.Date getStopDate()
StatisticsIF
getStopDate
in interface StatisticsIF
StatisticsIF.getStopDate()
public long getPeriod()
StatisticsIF
getPeriod
in interface StatisticsIF
StatisticsIF.getPeriod()
public double getAverageActiveTime()
StatisticsIF
getAverageActiveTime
in interface StatisticsIF
StatisticsIF.getAverageActiveTime()
public double getAverageActiveCount()
StatisticsIF
getAverageActiveCount
in interface StatisticsIF
StatisticsIF.getAverageActiveCount()
public double getServedPerSecond()
StatisticsIF
getServedPerSecond
in interface StatisticsIF
StatisticsIF.getServedPerSecond()
public double getRefusedPerSecond()
StatisticsIF
getRefusedPerSecond
in interface StatisticsIF
StatisticsIF.getRefusedPerSecond()
public long getServedCount()
StatisticsIF
getServedCount
in interface StatisticsIF
StatisticsIF.getServedCount()
public long getRefusedCount()
StatisticsIF
getRefusedCount
in interface StatisticsIF
StatisticsIF.getRefusedCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |