|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.logicalcobwebs.proxool.admin.Admin
Provides statistics about the performance of a pool.
Constructor Summary | |
Admin(ConnectionPoolDefinitionIF definition)
|
Method Summary | |
void |
addStatisticsListener(StatisticsListenerIF statisticsListener)
|
void |
cancelAll()
Cancels the timer that outputs the stats |
void |
connectionRefused()
Call this every time a connection is refused |
void |
connectionReturned(long activeTime)
Call this every time an active connection is returned to the pool |
static SnapshotIF |
getSnapshot(ConnectionPoolStatisticsIF cps,
ConnectionPoolDefinitionIF cpd,
java.util.Collection connectionInfos)
Get a new snapshot |
StatisticsIF[] |
getStatistics()
|
StatisticsIF |
getStatistics(java.lang.String token)
Returns the most recent sample that has completed its period |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Admin(ConnectionPoolDefinitionIF definition) throws ProxoolException
definition
- gives access to pool definitionMethod Detail |
public void addStatisticsListener(StatisticsListenerIF statisticsListener)
public void connectionReturned(long activeTime)
activeTime
- how long the connection was activepublic void connectionRefused()
public StatisticsIF getStatistics(java.lang.String token)
public void cancelAll()
public StatisticsIF[] getStatistics()
public static SnapshotIF getSnapshot(ConnectionPoolStatisticsIF cps, ConnectionPoolDefinitionIF cpd, java.util.Collection connectionInfos)
cps
- used to help populate the snapshotcpd
- used to help populate the snapshot
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |