com.cafesoft.core.jdbc
Interface ConnectionPoolInfo

All Known Implementing Classes:
StandardConnectionPoolInfo

public interface ConnectionPoolInfo

The ConnectionPoolInfo interface defines an Object that contains data pertinant to the ConnectionPool's state

Since:
10/31/02
See Also:
ConnectionPool

Method Summary
 int getActiveConnections()
          Get the total number of active Connections
 ConnectionPoolConfig getConfig()
          Get the ConnectionPool configuration object
 int getIdleConnections()
          Get the total number of idle Connections
 String getTimestamp()
          Get the time this ConnectionPoolInfo object was created
 int getTotalConnections()
          Return the total number of Connections currently established by the ConnectionPool
 

Method Detail

getConfig

public ConnectionPoolConfig getConfig()
Get the ConnectionPool configuration object

Returns:
the ConnectionPool configuration object which contains all of the ConnectionPool's initialization parameters

getTotalConnections

public int getTotalConnections()
Return the total number of Connections currently established by the ConnectionPool

Returns:
the combined total of active and idle Connection Objects

getActiveConnections

public int getActiveConnections()
Get the total number of active Connections

Returns:
the number of active Connection objects

getIdleConnections

public int getIdleConnections()
Get the total number of idle Connections

Returns:
the number of idle Connection objects

getTimestamp

public String getTimestamp()
Get the time this ConnectionPoolInfo object was created

Returns:
the timestamp (in milleseconds) this ConnectionPoolInfo object was created


Generated on 5:16:42 PM May 12, 2008, © 1996-2005 Cafésoft LLC. All rights reserved.