public interface 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
|
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
|
void add(long time)
time
- millisecondsvoid add(Exception e)
e
- exceptionlong getMaxTime()
long getMinTime()
long getAvgTime()
long getTotalTime()
long getFirstTime()
long getLastTime()
long getCount()
long getTotalException()
Exception getFirstException()
Exception getLastException()
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.