Class SimpleProgressReporter

    • Constructor Detail

      • SimpleProgressReporter

        public SimpleProgressReporter​(ProgressReporter progress)
        Create a new simple progress reporter.
        Parameters:
        progress - An optional progress which is also notified about the progress
    • Method Detail

      • display

        public void display​(int percent,
                            String message)
        Description copied from interface: ProgressReporter
        Display a progress message.
        Specified by:
        display in interface ProgressReporter
        Parameters:
        percent - How many percent of the task that is completed or -1 if not known
        message - A message, or null
      • append

        public void append​(String message)
        Description copied from interface: ProgressReporter
        Append a message to the previous one.
        Specified by:
        append in interface ProgressReporter
        Parameters:
        message - The message
      • getMessage

        public String getMessage()
        Get the last progress message this progress reporter should display.
      • getPercent

        public int getPercent()
        Get the last percentage completed of the task.
      • setError

        public void setError​(Throwable error)
        Set an error that happened while processing some action that was reported via this progress reporter.
        Since:
        3.5
      • getError

        public Throwable getError()
        Get error that happened while processing some action that was reported via this progress reporter.
        Since:
        3.5