Package net.sf.jkniv.sqlegance
Interface Statistical
-
- All Known Implementing Classes:
NoSqlStats,SqlStats
public interface StatisticalStatistical data for query execution- Since:
- 0.6.0
- Author:
- Alisson Gomes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(long time)add time to statisticsvoidadd(Exception e)Add a exception data to statistical keeping the first, last and total exceptions registered.longgetAvgTime()average time executionlonggetCount()times executedExceptiongetFirstException()The first error happenedlonggetFirstTime()first time executionExceptiongetLastException()The last error happenedlonggetLastTime()last time executionlonggetMaxTime()maximum time executionlonggetMinTime()minimum time executionlonggetTotalException()the total of execution with errorlonggetTotalTime()total time execution
-
-
-
Method Detail
-
add
void add(long time)
add time to statistics- Parameters:
time- milliseconds
-
add
void add(Exception e)
Add a exception data to statistical keeping the first, last and total exceptions registered.- Parameters:
e- exception
-
getMaxTime
long getMaxTime()
maximum time execution- Returns:
- maximum milliseconds execution
-
getMinTime
long getMinTime()
minimum time execution- Returns:
- minimum milliseconds execution
-
getAvgTime
long getAvgTime()
average time execution- Returns:
- average milliseconds execution
-
getTotalTime
long getTotalTime()
total time execution- Returns:
- total milliseconds execution
-
getFirstTime
long getFirstTime()
first time execution- Returns:
- total milliseconds execution
-
getLastTime
long getLastTime()
last time execution- Returns:
- total milliseconds execution
-
getCount
long getCount()
times executed- Returns:
- times executed
-
getTotalException
long getTotalException()
the total of execution with error- Returns:
- quantity of errors happened
-
getFirstException
Exception getFirstException()
The first error happened- Returns:
- the first error
-
getLastException
Exception getLastException()
The last error happened- Returns:
- the last error
-
-