public class NoSqlStats extends Object implements Statistical
Statistical| Modifier and Type | Method and Description |
|---|---|
void |
add(Exception e)
Add a exception data to statistical keeping the
first, last and total exceptions registered.
|
void |
add(long time)
add time to statistics
|
long |
getAvgTime()
average time execution
|
long |
getCount()
times executed
|
Exception |
getFirstException()
The first error happened
|
long |
getFirstTime()
first time execution
|
static Statistical |
getInstance() |
Exception |
getLastException()
The last error happened
|
long |
getLastTime()
last time execution
|
long |
getMaxTime()
maximum time execution
|
long |
getMinTime()
minimum time execution
|
long |
getTotalException()
the total of execution with error
|
long |
getTotalTime()
total time execution
|
String |
toString() |
public static Statistical getInstance()
public void add(long time)
Statisticaladd in interface Statisticaltime - millisecondspublic void add(Exception e)
Statisticaladd in interface Statisticale - exceptionpublic long getMaxTime()
StatisticalgetMaxTime in interface Statisticalpublic long getMinTime()
StatisticalgetMinTime in interface Statisticalpublic long getAvgTime()
StatisticalgetAvgTime in interface Statisticalpublic long getTotalTime()
StatisticalgetTotalTime in interface Statisticalpublic long getFirstTime()
StatisticalgetFirstTime in interface Statisticalpublic long getLastTime()
StatisticalgetLastTime in interface Statisticalpublic long getCount()
StatisticalgetCount in interface Statisticalpublic long getTotalException()
StatisticalgetTotalException in interface Statisticalpublic Exception getFirstException()
StatisticalgetFirstException in interface Statisticalpublic Exception getLastException()
StatisticalgetLastException in interface StatisticalCopyright © 2012–2020 jkniv, copyleft code. All rights reserved.