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.5 $, $Date: 2003/03/03 11:11:57 $
Author:
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 getConnectionsRefusedCount()
          The number of connections refused.
 long getConnectionsServedCount()
          The number of connections provided.
 java.util.Date getDateStarted()
          When this pool was started
 int getOfflineConnectionCount()
          The number of connections that are neither active or available.
 

Method Detail

getConnectionsServedCount

public long getConnectionsServedCount()
The number of connections provided.

Returns:
connectionsServedCount

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

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

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

getDateStarted

public java.util.Date getDateStarted()
When this pool was started

Returns:
dateStarted