|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.database.connection.DataEngineConnectionPool.RunningTotal
Constructor Summary | |
DataEngineConnectionPool.RunningTotal(String name)
Creates a new RunningTotal |
Method Summary | |
long |
add(long time,
long value)
Adds a value to this RunningTotal |
void |
clear()
Resets this RunningTotal |
double |
getAverage()
Gets the average of all values added to this RunningTotal |
DataEngineConnectionPool.RunningTotal |
getClone()
Clones this RunningTotal |
long |
getCount()
Gets the number of values that have been added to this RunningTotal |
int |
getFailureCount()
The number of values representing failures that have been added to this RunningTotal |
long |
getLastTime()
Gets the last time a value was added to this RunningTotal |
long |
getMax()
Gets the maximum value that has been added to this RunningTotal |
long |
getMin()
Gets the minimum value that has been added to this RunningTotal |
String |
getName()
Gets this RunningTotal's name |
long |
getTotal()
Gets the sum of all the values that have been added to this RunningTotal |
String |
toString()
Converts this RunningTotal to a String |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DataEngineConnectionPool.RunningTotal(String name)
Method Detail |
public String getName()
public void clear()
public long add(long time, long value)
time
- The time value
was generated. (A negative value indicates a failure occurred.)value
- The value to add
public long getMax()
public long getMin()
public long getCount()
public long getTotal()
public long getLastTime()
public double getAverage()
public int getFailureCount()
public DataEngineConnectionPool.RunningTotal getClone()
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |