public class DataSourcePoolStatistics extends Object implements org.avaje.datasource.PoolStatistics
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.
| 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 long getCollectionStart()
getCollectionStart in interface org.avaje.datasource.PoolStatisticspublic long getCount()
getCount in interface org.avaje.datasource.PoolStatisticspublic long getErrorCount()
getErrorCount in interface org.avaje.datasource.PoolStatisticspublic long getHwmMicros()
getHwmMicros in interface org.avaje.datasource.PoolStatisticspublic long getTotalMicros()
getTotalMicros in interface org.avaje.datasource.PoolStatisticspublic long getAvgMicros()
getAvgMicros in interface org.avaje.datasource.PoolStatisticsCopyright © 2016. All rights reserved.