org.logicalcobwebs.proxool.admin
Class Admin
java.lang.Object
org.logicalcobwebs.proxool.admin.Admin
public class Admin
extends java.lang.Object
Provides statistics about the performance of a pool.
$Revision: 1.9 $, $Date: 2006/01/18 14:39:57 $- bill
- $Author: billhorsman $ (current maintainer)
cancelAll
public void cancelAll()
Cancels the timer that outputs the stats
connectionRefused
public void connectionRefused()
Call this every time a connection is refused
connectionReturned
public void connectionReturned(long activeTime)
Call this every time an active connection is returned to the pool
activeTime
- how long the connection was active
getStatistics
public StatisticsIF getStatistics(String token)
Returns the most recent sample that has completed its period
- sample (or null if no statistics are complete yet)