|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.logicalcobwebs.proxool.admin.Admin
public class Admin
Provides statistics about the performance of a pool.
Field Summary | |
---|---|
private CompositeStatisticsListener |
compositeStatisticsListener
|
private Log |
log
|
private static Log |
LOG
|
private java.util.Map |
statsRollers
|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Log LOG
private Log log
private java.util.Map statsRollers
private CompositeStatisticsListener compositeStatisticsListener
Constructor Detail |
---|
public Admin(ConnectionPoolDefinitionIF definition) throws ProxoolException
definition
- gives access to pool definitiondefinition
- see definition
ProxoolException
Method 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 |