Interface Statistical

  • All Known Implementing Classes:
    NoSqlStats, SqlStats

    public interface Statistical
    Statistical data for query execution
    Since:
    0.6.0
    Author:
    Alisson Gomes
    • 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