org.logicalcobwebs.proxool.admin

Interface SnapshotIF

public interface SnapshotIF

Provides a snapshot of a pool
Version:
$Revision: 1.3 $, $Date: 2005/10/02 12:32:01 $
Authors:
bill
$Author: billhorsman $ (current maintainer)
Since:
Proxool 0.7

Method Summary

int
getActiveConnectionCount()
The number of active (busy) connections
int
getAvailableConnectionCount()
The number of available (free) connections
long
getConnectionCount()
ConnectionInfoIF
getConnectionInfo(long id)
The details of one connection.
ConnectionInfoIF[]
getConnectionInfos()
The details of each connection.
Date
getDateStarted()
When the pool was started
int
getMaximumConnectionCount()
Get the maximum possible connections (as defined in the definition.
int
getOfflineConnectionCount()
The number of offline connections.
long
getRefusedCount()
How many connections have been refused since the pool started
long
getServedCount()
How many connections have been served since the pool started
Date
getSnapshotDate()
The date that this snapshot applies
boolean
isDetail()
Whether we have requested detailed information about each connection

Method Details

getActiveConnectionCount

public int getActiveConnectionCount()
The number of active (busy) connections
Returns:
activeConnectionCount

getAvailableConnectionCount

public int getAvailableConnectionCount()
The number of available (free) connections
Returns:
availableConnectionCount

getConnectionCount

public long getConnectionCount()

getConnectionInfo

public ConnectionInfoIF getConnectionInfo(long id)
The details of one connection. Will be null if this is not a detailed snapshot or if this ID is not found.
Parameters:
id - the connection ID
Returns:
connectionInfo
See Also:
isDetail()

getConnectionInfos

public ConnectionInfoIF[] getConnectionInfos()
The details of each connection. Will be null if this is not a detailed snapshot.
Returns:
connectionInfos
See Also:
isDetail()

getDateStarted

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

getMaximumConnectionCount

public int getMaximumConnectionCount()
Returns:
maximumConnectionCount

getOfflineConnectionCount

public int getOfflineConnectionCount()
The number of offline connections. A connection is offline if it is being tested by the house keeper.
Returns:
offlineConnectionCount

getRefusedCount

public long getRefusedCount()
How many connections have been refused since the pool started
Returns:
refusedCount

getServedCount

public long getServedCount()
How many connections have been served since the pool started
Returns:
servedCount

getSnapshotDate

public Date getSnapshotDate()
The date that this snapshot applies
Returns:
snapshotDate

isDetail

public boolean isDetail()
Whether we have requested detailed information about each connection
Returns:
detail