|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.database.connection.ConnectionPoolReport
Contains performace and usage statistics about a connection pool. Information in a ConnectionPoolReport represents the state of a connection pool at some previous point in time - the information does not change after the object has been created.
Constructor Summary | |
ConnectionPoolReport()
ConnectionPoolReport constructor comment. |
Method Summary | |
String |
briefReport()
Gets the String representation of this report. |
Object |
clone()
Creates a deep copy of this object. |
ConnectionPoolReport |
cloneReport()
Creates a deep copy of this object. |
String |
fullReport(List statements)
Gets the String representation of this report. |
String |
getAlias()
Gets the alias of the connection pool from which this report was generated |
DataEngineConnectionPool.RunningTotal |
getQueryTotal()
Gets timing information about the queries run from the connection pool. |
long |
getReportGenerationTime()
Gets the report generation time; the latest possible time when information in this report could have been recorded. |
long |
getReportStartTime()
Gets the start time; the earliest possible time when information in this report could have been recorded. |
Map |
getStatementMap()
Insert the method's description here. |
DataEngineConnectionPool.RunningTotal |
getStatementTotal()
Gets timing information about the queries and updates run from the connection pool. |
int |
getSystemBusyFailures()
Gets the number of connection requests that completely failed because the system ran out of connections. |
DataEngineConnectionPool.RunningTotal |
getUpdateTotal()
Gets timing information about the updates run from this connection pool. |
int[] |
getUsageCounts()
Gets information about the amount of usage this connection pool has seen. |
DataEngineConnectionPool.RunningTotal |
getWaitTotal()
Gets timing information about connection requests which were forced to wait (because there were no available connections). |
boolean |
isConnectionPoolClosed()
Tests if the connection pool has been shut down |
void |
setAlias(String newAlias)
Sets the alias of the connection pool from which this report was generated |
void |
setConnectionPoolClosed(boolean newFinal)
Sets if the connection pool has been shut down |
void |
setQueryTotal(DataEngineConnectionPool.RunningTotal newQueryTotal)
Sets timing information about the queries run from the connection pool. |
void |
setReportStartTime(long newReportStartTime)
Sets the start time; the earliest possible time when information in this report could have been recorded. |
void |
setStatementMap(Map newStatementMap)
Insert the method's description here. |
void |
setStatementTotal(DataEngineConnectionPool.RunningTotal newStatementTotal)
Sets timing information about the queries and updates run from the connection pool. |
void |
setSystemBusyFailures(int newFailureCount)
Sets the number of connection requests that completely failed because the system ran out of connections. |
void |
setUpdateTotal(DataEngineConnectionPool.RunningTotal newUpdateTotal)
Sets timing information about the updates run from the connection pool. |
void |
setUsageCounts(int[] newUsageCounts)
Sets information about the amount of usage this connection pool has seen. |
void |
setWaitTotal(DataEngineConnectionPool.RunningTotal newWaitTotal)
Sets timing information about connection requests which were forced to wait (because there were no available connections). |
String |
toString()
Gets the String representation of this report. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ConnectionPoolReport()
Method Detail |
public String briefReport()
public Object clone()
clone
in class Object
public ConnectionPoolReport cloneReport()
public String fullReport(List statements)
statements
- The list of SQL statements to include in the report. If this is null the details of
all SQL statements will be included in the report.public String getAlias()
public DataEngineConnectionPool.RunningTotal getQueryTotal()
public final long getReportGenerationTime()
public long getReportStartTime()
public Map getStatementMap()
public DataEngineConnectionPool.RunningTotal getStatementTotal()
public int getSystemBusyFailures()
public DataEngineConnectionPool.RunningTotal getUpdateTotal()
public int[] getUsageCounts()
Gets information about the amount of usage this connection pool has seen. In the returned array, the value at position x indicates the number of times a connection was requested when x connections were already in use. So the value at position 0 is how many times a connection was requested when no connections were in use. The value at position 1 is the number of times a connection was requested when 1 connection was already in use, and so on.
The total sum of all the values in the array is the total number of connections that have been requested.
This method is not synchronized, so the values may not represent the exact state of the connection pool at any specific time
public DataEngineConnectionPool.RunningTotal getWaitTotal()
public boolean isConnectionPoolClosed()
public void setAlias(String newAlias)
public void setConnectionPoolClosed(boolean newFinal)
public void setQueryTotal(DataEngineConnectionPool.RunningTotal newQueryTotal)
public void setReportStartTime(long newReportStartTime)
public void setStatementMap(Map newStatementMap)
newStatementMap
- java.util.Mappublic void setStatementTotal(DataEngineConnectionPool.RunningTotal newStatementTotal)
public void setSystemBusyFailures(int newFailureCount)
public void setUpdateTotal(DataEngineConnectionPool.RunningTotal newUpdateTotal)
public void setUsageCounts(int[] newUsageCounts)
Sets information about the amount of usage this connection pool has seen. In the returned array, the value at position x indicates the number of times a connection was requested when x connections were already in use. So the value at position 0 is how many times a connection was requested when no connections were in use. The value at position 1 is the number of times a connection was requested when 1 connection was already in use, and so on.
The total sum of all the values in the array is the total number of connections that have been requested.
This method is not synchronized, so the values may not represent the exact state of the connection pool at any specific time
public void setWaitTotal(DataEngineConnectionPool.RunningTotal newWaitTotal)
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |