Package org.logicalcobwebs.proxool
Interface ConnectionPoolStatisticsIF
-
public interface ConnectionPoolStatisticsIFThis provides real time information about the pool. You can get this fromProxoolFacade.String alias = "myPool"; ConnectionPoolStatisticsIF cps = ProxoolFacade.getConnectionPoolStatistics(alias);
- Version:
- $Revision: 1.6 $, $Date: 2005/10/02 12:32:02 $
- Author:
- billhorsman, $Author: billhorsman $ (current maintainer)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetActiveConnectionCount()The number of connections currently in use.intgetAvailableConnectionCount()The number of connections that are available for use (doesn't include active connections).longgetConnectionCount()longgetConnectionsRefusedCount()The number of connections refused.longgetConnectionsServedCount()The number of connections provided.java.util.DategetDateStarted()When this pool was startedintgetOfflineConnectionCount()The number of connections that are neither active or available.
-
-
-
Method Detail
-
getConnectionsServedCount
long getConnectionsServedCount()
The number of connections provided.- Returns:
- connectionsServedCount
-
getConnectionsRefusedCount
long getConnectionsRefusedCount()
The number of connections refused. Either because there was a problem connecting to the database, or perhaps because the maximumConnectionCount was reached.- Returns:
- connectionsRefusedCount
-
getActiveConnectionCount
int getActiveConnectionCount()
The number of connections currently in use.- Returns:
- activeConnectionCount
-
getAvailableConnectionCount
int getAvailableConnectionCount()
The number of connections that are available for use (doesn't include active connections).- Returns:
- availableConnectionCount
-
getOfflineConnectionCount
int getOfflineConnectionCount()
The number of connections that are neither active or available. Probably because the house keeping thread is checking them.- Returns:
- offlineConnectionCount
-
getDateStarted
java.util.Date getDateStarted()
When this pool was started- Returns:
- dateStarted
-
getConnectionCount
long getConnectionCount()
-
-