Class IndefiniteProgress

  • All Implemented Interfaces:
    Progress

    public class IndefiniteProgress
    extends AbstractProgress
    Progress class without a fixed destination value.
    Since:
    0.2
    Author:
    Erich Schubert
    • Field Detail

      • completed

        private boolean completed
        Store completion flag.
    • Constructor Detail

      • IndefiniteProgress

        public IndefiniteProgress​(java.lang.String task)
        Constructor.
        Parameters:
        task - Task name.
      • IndefiniteProgress

        public IndefiniteProgress​(java.lang.String task,
                                  Logging logger)
        Constructor with logging.
        Parameters:
        task - Task name.
        logger - Logger to report to
    • Method Detail

      • appendToBuffer

        public java.lang.StringBuilder appendToBuffer​(java.lang.StringBuilder buf)
        Serialize 'indefinite' progress.
        Specified by:
        appendToBuffer in interface Progress
        Specified by:
        appendToBuffer in class AbstractProgress
        Parameters:
        buf - Buffer to serialize to
        Returns:
        Buffer the data was serialized to.
      • isComplete

        public boolean isComplete()
        Return whether the progress is complete
        Returns:
        Completion status.
      • setCompleted

        public void setCompleted​(Logging logger)
        Set the completion flag and log it
        Parameters:
        logger - Logger to report to.