org.logicalcobwebs.proxool.admin
接口 SnapshotIF


public interface SnapshotIF

Provides a snapshot of a pool

从以下版本开始:
Proxool 0.7
版本:
$Revision: 1.3 $, $Date: 2005/10/02 12:32:01 $
作者:
bill, $Author: billhorsman $ (current maintainer)

方法摘要
 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
 

方法详细信息

getDateStarted

Date getDateStarted()
When the pool was started

返回:
dateStarted

getServedCount

long getServedCount()
How many connections have been served since the pool started

返回:
servedCount

getRefusedCount

long getRefusedCount()
How many connections have been refused since the pool started

返回:
refusedCount

getActiveConnectionCount

int getActiveConnectionCount()
The number of active (busy) connections

返回:
activeConnectionCount

getAvailableConnectionCount

int getAvailableConnectionCount()
The number of available (free) connections

返回:
availableConnectionCount

getOfflineConnectionCount

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

返回:
offlineConnectionCount

getMaximumConnectionCount

int getMaximumConnectionCount()
Get the maximum possible connections (as defined in the definition.

返回:
maximumConnectionCount

getSnapshotDate

Date getSnapshotDate()
The date that this snapshot applies

返回:
snapshotDate

getConnectionInfos

ConnectionInfoIF[] getConnectionInfos()
The details of each connection. Will be null if this is not a detailed snapshot.

返回:
connectionInfos
另请参见:
isDetail()

getConnectionInfo

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.

参数:
id - the connection ID
返回:
connectionInfo
另请参见:
isDetail()

isDetail

boolean isDetail()
Whether we have requested detailed information about each connection

返回:
detail
另请参见:
getConnectionInfos()

getConnectionCount

long getConnectionCount()


Copyright © 2014. All rights reserved.