org.logicalcobwebs.proxool

Interface ConnectionPoolStatisticsIF

public interface ConnectionPoolStatisticsIF

This provides real time information about the pool. You can get this from ProxoolFacade.
 String alias = "myPool";
 ConnectionPoolStatisticsIF cps = ProxoolFacade.getConnectionPoolStatistics(alias);
 
Version:
$Revision: 1.6 $, $Date: 2005/10/02 12:32:02 $
Authors:
billhorsman
$Author: billhorsman $ (current maintainer)

Method Summary

int
getActiveConnectionCount()
The number of connections currently in use.
int
getAvailableConnectionCount()
The number of connections that are available for use (doesn't include active connections).
long
getConnectionCount()
long
getConnectionsRefusedCount()
The number of connections refused.
long
getConnectionsServedCount()
The number of connections provided.
Date
getDateStarted()
When this pool was started
int
getOfflineConnectionCount()
The number of connections that are neither active or available.

Method Details

getActiveConnectionCount

public int getActiveConnectionCount()
The number of connections currently in use.
Returns:
activeConnectionCount

getAvailableConnectionCount

public int getAvailableConnectionCount()
The number of connections that are available for use (doesn't include active connections).
Returns:
availableConnectionCount

getConnectionCount

public long getConnectionCount()

getConnectionsRefusedCount

public 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

getConnectionsServedCount

public long getConnectionsServedCount()
The number of connections provided.
Returns:
connectionsServedCount

getDateStarted

public Date getDateStarted()
When this pool was started
Returns:
dateStarted

getOfflineConnectionCount

public int getOfflineConnectionCount()
The number of connections that are neither active or available. Probably because the house keeping thread is checking them.
Returns:
offlineConnectionCount