Class SimpleAbsoluteProgressReporter

    • Field Detail

      • total

        private final long total
      • completed

        private long completed
      • baseCompleted

        private long baseCompleted
      • message

        private String message
    • Constructor Detail

      • SimpleAbsoluteProgressReporter

        public SimpleAbsoluteProgressReporter​(ProgressReporter progress,
                                              long total)
        Create a new absolute progress reporter. If the total is set to -1 (unknown size), all percentages are forwarded to the parent as -1.
        Parameters:
        progress - An optional progress which is also notified about the progress
        total - The end point of task, or -1 if not known
    • Method Detail

      • getTotal

        public long getTotal()
        Get the end point of the task.
      • getCompleted

        public long getCompleted()
        Get completed number of ticks of the task.
      • setAbsolute

        public void setAbsolute​(long completed,
                                String message)
        Set a basic progress level. Subsequent calls to displayAbsolute(long, String) are based on the completed value and message set here.
        Parameters:
        completed - The basic completed progress
        message - A default message
        Since:
        2.16