|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.logicalcobwebs.proxool.admin.Snapshot
class Snapshot
Implementation of SnapshotIF
Field Summary | |
---|---|
private int |
activeConnectionCount
|
private int |
availableConnectionCount
|
private long |
connectionCount
|
private java.util.Collection |
connectionInfos
|
private java.util.Date |
dateStarted
|
private static Log |
LOG
|
private int |
maximumConnectionCount
|
private int |
offlineConnectionCount
|
private long |
refusedCount
|
private long |
servedCount
|
private java.util.Date |
snapshotDate
|
Constructor Summary | |
---|---|
Snapshot(java.util.Date snapshotDate)
|
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. |
java.util.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 |
java.util.Date |
getSnapshotDate()
The date that this snapshot applies |
boolean |
isDetail()
Whether we have requested detailed information about each connection |
void |
setActiveConnectionCount(int activeConnectionCount)
|
void |
setAvailableConnectionCount(int availableConnectionCount)
|
void |
setConnectionCount(long connectionCount)
|
void |
setConnectionInfos(java.util.Collection connectionInfos)
|
void |
setDateStarted(java.util.Date dateStarted)
|
void |
setMaximumConnectionCount(int maximumConnectionCount)
|
void |
setOfflineConnectionCount(int offlineConnectionCount)
|
void |
setRefusedCount(long refusedCount)
|
void |
setServedCount(long servedCount)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Log LOG
private java.util.Date dateStarted
private long servedCount
private long refusedCount
private int activeConnectionCount
private int availableConnectionCount
private int offlineConnectionCount
private int maximumConnectionCount
private java.util.Date snapshotDate
private java.util.Collection connectionInfos
private long connectionCount
Constructor Detail |
---|
public Snapshot(java.util.Date snapshotDate)
snapshotDate
- see SnapshotIF.getSnapshotDate()
Method Detail |
---|
public java.util.Date getDateStarted()
SnapshotIF
getDateStarted
in interface SnapshotIF
SnapshotIF.getDateStarted()
public void setDateStarted(java.util.Date dateStarted)
SnapshotIF.getDateStarted()
public long getServedCount()
SnapshotIF
getServedCount
in interface SnapshotIF
SnapshotIF.getServedCount()
public void setServedCount(long servedCount)
SnapshotIF.getServedCount()
public long getRefusedCount()
SnapshotIF
getRefusedCount
in interface SnapshotIF
SnapshotIF.getRefusedCount()
public void setRefusedCount(long refusedCount)
SnapshotIF.getRefusedCount()
public int getActiveConnectionCount()
SnapshotIF
getActiveConnectionCount
in interface SnapshotIF
SnapshotIF.getActiveConnectionCount()
public void setActiveConnectionCount(int activeConnectionCount)
SnapshotIF.getActiveConnectionCount()
public int getAvailableConnectionCount()
SnapshotIF
getAvailableConnectionCount
in interface SnapshotIF
SnapshotIF.getAvailableConnectionCount()
public void setAvailableConnectionCount(int availableConnectionCount)
SnapshotIF.getAvailableConnectionCount()
public int getOfflineConnectionCount()
SnapshotIF
getOfflineConnectionCount
in interface SnapshotIF
SnapshotIF.getOfflineConnectionCount()
public void setOfflineConnectionCount(int offlineConnectionCount)
SnapshotIF.getOfflineConnectionCount()
public int getMaximumConnectionCount()
SnapshotIF
definition
.
getMaximumConnectionCount
in interface SnapshotIF
SnapshotIF.getMaximumConnectionCount()
public void setMaximumConnectionCount(int maximumConnectionCount)
SnapshotIF.getMaximumConnectionCount()
public java.util.Date getSnapshotDate()
SnapshotIF
getSnapshotDate
in interface SnapshotIF
SnapshotIF.getSnapshotDate()
public ConnectionInfoIF[] getConnectionInfos()
SnapshotIF
getConnectionInfos
in interface SnapshotIF
SnapshotIF.getConnectionInfos()
public void setConnectionInfos(java.util.Collection connectionInfos)
SnapshotIF.getConnectionInfos()
public ConnectionInfoIF getConnectionInfo(long id)
SnapshotIF
getConnectionInfo
in interface SnapshotIF
id
- the connection ID
SnapshotIF.getConnectionInfo(long)
public boolean isDetail()
SnapshotIF
isDetail
in interface SnapshotIF
SnapshotIF.isDetail()
public long getConnectionCount()
getConnectionCount
in interface SnapshotIF
public void setConnectionCount(long connectionCount)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |