Class CliProgress


  • public class CliProgress
    extends java.lang.Object
    This class gives the user a feedback about a running CLI process. The idea is for instance to print to the console ow many lines have been read from a database.
    Author:
    David Andrianavalontsalama
    • Constructor Summary

      Constructors 
      Constructor Description
      CliProgress()  
      CliProgress​(java.lang.String message)  
    • Method Summary

      Modifier and Type Method Description
      void end()
      Tell the class the process is done.
      int inc()
      Tell the class the process is running, and a step is running.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CliProgress

        public CliProgress()
      • CliProgress

        public CliProgress​(java.lang.String message)
    • Method Detail

      • inc

        public int inc()
        Tell the class the process is running, and a step is running. This displays the current increment count, if one second was elapsed from the last time.
        Returns:
        the current increment count.
      • end

        public void end()
        Tell the class the process is done. This displays the total increments.