|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.logicalcobwebs.proxool.admin.Admin
public class Admin
Provides statistics about the performance of a pool.
| 构造方法摘要 | |
|---|---|
Admin(ConnectionPoolDefinitionIF definition)
|
|
| 方法摘要 | |
|---|---|
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,
Collection connectionInfos)
Get a new snapshot |
StatisticsIF[] |
getStatistics()
|
StatisticsIF |
getStatistics(String token)
Returns the most recent sample that has completed its period |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public Admin(ConnectionPoolDefinitionIF definition)
throws ProxoolException
definition - gives access to pool definitiondefinition - see definition
ProxoolException| 方法详细信息 |
|---|
public void addStatisticsListener(StatisticsListenerIF statisticsListener)
public void connectionReturned(long activeTime)
activeTime - how long the connection was activepublic void connectionRefused()
public StatisticsIF getStatistics(String token)
public void cancelAll()
public StatisticsIF[] getStatistics()
public static SnapshotIF getSnapshot(ConnectionPoolStatisticsIF cps,
ConnectionPoolDefinitionIF cpd,
Collection connectionInfos)
cps - used to help populate the snapshotcpd - used to help populate the snapshot
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||