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