Class NoSqlStats

    • Method Detail

      • getInstance

        public static Statistical getInstance()
      • add

        public void add​(long time)
        Description copied from interface: Statistical
        add time to statistics
        Specified by:
        add in interface Statistical
        Parameters:
        time - milliseconds
      • add

        public void add​(Exception e)
        Description copied from interface: Statistical
        Add a exception data to statistical keeping the first, last and total exceptions registered.
        Specified by:
        add in interface Statistical
        Parameters:
        e - exception
      • getMaxTime

        public long getMaxTime()
        Description copied from interface: Statistical
        maximum time execution
        Specified by:
        getMaxTime in interface Statistical
        Returns:
        maximum milliseconds execution
      • getMinTime

        public long getMinTime()
        Description copied from interface: Statistical
        minimum time execution
        Specified by:
        getMinTime in interface Statistical
        Returns:
        minimum milliseconds execution
      • getAvgTime

        public long getAvgTime()
        Description copied from interface: Statistical
        average time execution
        Specified by:
        getAvgTime in interface Statistical
        Returns:
        average milliseconds execution
      • getTotalTime

        public long getTotalTime()
        Description copied from interface: Statistical
        total time execution
        Specified by:
        getTotalTime in interface Statistical
        Returns:
        total milliseconds execution
      • getFirstTime

        public long getFirstTime()
        Description copied from interface: Statistical
        first time execution
        Specified by:
        getFirstTime in interface Statistical
        Returns:
        total milliseconds execution
      • getLastTime

        public long getLastTime()
        Description copied from interface: Statistical
        last time execution
        Specified by:
        getLastTime in interface Statistical
        Returns:
        total milliseconds execution
      • getCount

        public long getCount()
        Description copied from interface: Statistical
        times executed
        Specified by:
        getCount in interface Statistical
        Returns:
        times executed
      • getTotalException

        public long getTotalException()
        Description copied from interface: Statistical
        the total of execution with error
        Specified by:
        getTotalException in interface Statistical
        Returns:
        quantity of errors happened