Class NoSqlStats
- java.lang.Object
-
- net.sf.jkniv.sqlegance.builder.xml.NoSqlStats
-
- All Implemented Interfaces:
Statistical
public class NoSqlStats extends Object implements Statistical
Dummy/Empty implementation forStatistical- Since:
- 0.6.0
- Author:
- Alisson Gomes
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete 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 executionstatic StatisticalgetInstance()ExceptiongetLastException()The last error happenedlonggetLastTime()last time executionlonggetMaxTime()maximum time executionlonggetMinTime()minimum time executionlonggetTotalException()the total of execution with errorlonggetTotalTime()total time executionStringtoString()
-
-
-
Method Detail
-
getInstance
public static Statistical getInstance()
-
add
public void add(long time)
Description copied from interface:Statisticaladd time to statistics- Specified by:
addin interfaceStatistical- Parameters:
time- milliseconds
-
add
public void add(Exception e)
Description copied from interface:StatisticalAdd a exception data to statistical keeping the first, last and total exceptions registered.- Specified by:
addin interfaceStatistical- Parameters:
e- exception
-
getMaxTime
public long getMaxTime()
Description copied from interface:Statisticalmaximum time execution- Specified by:
getMaxTimein interfaceStatistical- Returns:
- maximum milliseconds execution
-
getMinTime
public long getMinTime()
Description copied from interface:Statisticalminimum time execution- Specified by:
getMinTimein interfaceStatistical- Returns:
- minimum milliseconds execution
-
getAvgTime
public long getAvgTime()
Description copied from interface:Statisticalaverage time execution- Specified by:
getAvgTimein interfaceStatistical- Returns:
- average milliseconds execution
-
getTotalTime
public long getTotalTime()
Description copied from interface:Statisticaltotal time execution- Specified by:
getTotalTimein interfaceStatistical- Returns:
- total milliseconds execution
-
getFirstTime
public long getFirstTime()
Description copied from interface:Statisticalfirst time execution- Specified by:
getFirstTimein interfaceStatistical- Returns:
- total milliseconds execution
-
getLastTime
public long getLastTime()
Description copied from interface:Statisticallast time execution- Specified by:
getLastTimein interfaceStatistical- Returns:
- total milliseconds execution
-
getCount
public long getCount()
Description copied from interface:Statisticaltimes executed- Specified by:
getCountin interfaceStatistical- Returns:
- times executed
-
getTotalException
public long getTotalException()
Description copied from interface:Statisticalthe total of execution with error- Specified by:
getTotalExceptionin interfaceStatistical- Returns:
- quantity of errors happened
-
getFirstException
public Exception getFirstException()
Description copied from interface:StatisticalThe first error happened- Specified by:
getFirstExceptionin interfaceStatistical- Returns:
- the first error
-
getLastException
public Exception getLastException()
Description copied from interface:StatisticalThe last error happened- Specified by:
getLastExceptionin interfaceStatistical- Returns:
- the last error
-
-