获取 Proxool 连接池 连接数量
来源:互联网 发布:hf线剧情 知乎 编辑:程序博客网 时间:2024/04/30 01:17
SnapshotIF snapshot = ProxoolFacade.getSnapshot("alias",true);
int curActiveCount= snapshot.getActiveConnectionCount();// 获得活动连接数
int availableCount= snapshot.getAvailableConnectionCount();// 获得可得到的连接数
int maxCount= snapshot.getMaximumConnectionCount();// 获得总连接数
具体参见 org.logicalcobwebs.proxool.admin.SnapshotIF
/**
* How many connections have been served since the pool started
* @return servedCount
*/
long getServedCount();
/**
* How many connections have been refused since the pool started
* @return refusedCount
*/
long getRefusedCount();
/**
* The number of active (busy) connections
* @return activeConnectionCount
*/
int getActiveConnectionCount();
/**
* The number of available (free) connections
* @return availableConnectionCount
*/
int getAvailableConnectionCount();
/**
* The number of offline connections. A connection is offline
* if it is being tested by the house keeper.
* @return offlineConnectionCount
*/
int getOfflineConnectionCount();
/**
* Get the maximum possible connections (as defined in the
* {@link org.logicalcobwebs.proxool.ConnectionPoolDefinitionIF definition}.
* @return maximumConnectionCount
*/
int getMaximumConnectionCount();
本文转自:http://hi.baidu.com/duangr/blog/item/2be91dfe47107e3c5c600804.html
- 获取 Proxool 连接池 连接数量
- 使用 proxool 连接池获取连接
- Proxool连接池使用方法
- 使用Proxool连接池
- 连接池proxool配置
- hibernate proxool 连接池
- 配置proxool连接池
- proxool连接池配置
- Proxool连接池实现
- Proxool连接池使用方法
- Proxool连接池实现
- Proxool连接池
- proxool连接池
- Proxool连接池设置
- proxool连接池配置
- proxool连接池
- Proxool连接池 配置
- proxool 连接池配置
- 职工工资管理系统
- BIOS-UEFI入门资料
- 线段树基本题型总结
- IP网际协议
- sleep和wait有什么区别。
- 获取 Proxool 连接池 连接数量
- 单击游戏
- 嵌入式开发应该掌握的一些Linux命令
- 依然在登录中....
- 从VC6.0转到vs2008的一些问题
- linux中Framebuffer的原理及实现机制
- Dbutils 详解
- 认识自己
- Android ListView的背景和黑色边缘化的问题