public class DataSourcePoolStatistics extends Object
The goal is to present insight into the overload load of the DataSourcePool. These statistics can be collected and reported regularly to show load over time.
Each pooled connection collects statistics. When a pooled connection is fully closed it can report it's statistics to the pool to be included as part of the collected statistics.
| Constructor and Description |
|---|
DataSourcePoolStatistics()
No statistics collected.
|
DataSourcePoolStatistics(long collectionStart,
long count,
long errorCount,
long hwmMicros,
long totalMicros)
Construct with statistics collected.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getAvgMicros()
Return the average time connections were busy/used.
|
long |
getCollectionStart()
Return the start time this set of statistics was collected from.
|
long |
getCount()
Return the total number of 'get connection' requests.
|
long |
getErrorCount()
Return the number of SQLExceptions reported.
|
long |
getHwmMicros()
Return the high water mark for the duration a connection was busy/used.
|
long |
getTotalMicros()
Return the aggregate time connections were busy/used.
|
String |
toString() |
public DataSourcePoolStatistics()
public DataSourcePoolStatistics(long collectionStart,
long count,
long errorCount,
long hwmMicros,
long totalMicros)
public long getCollectionStart()
public long getCount()
public long getErrorCount()
public long getHwmMicros()
public long getTotalMicros()
public long getAvgMicros()
Copyright © 2014. All Rights Reserved.