Package ipsk.util

Class ProgressStatus

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class ProgressStatus
    extends java.lang.Object
    implements java.lang.Cloneable
    • Field Detail

      • LENGTH_UNKNOWN

        public static long LENGTH_UNKNOWN
    • Constructor Detail

      • ProgressStatus

        public ProgressStatus()
      • ProgressStatus

        public ProgressStatus​(boolean indeterminate,
                              boolean finished,
                              long progress)
      • ProgressStatus

        public ProgressStatus​(boolean indeterminate,
                              boolean finished,
                              long length,
                              long progress)
      • ProgressStatus

        public ProgressStatus​(long progress)
      • ProgressStatus

        public ProgressStatus​(java.lang.Object arg0,
                              boolean finished)
      • ProgressStatus

        public ProgressStatus​(boolean finished,
                              long progress)
    • Method Detail

      • clone

        public ProgressStatus clone()
        Overrides:
        clone in class java.lang.Object
      • open

        public void open()
      • start

        public void start()
      • running

        public void running()
      • reset

        public void reset()
      • getProgress

        public long getProgress()
      • getPercentProgress

        public java.lang.Short getPercentProgress()
      • isIndeterminate

        public boolean isIndeterminate()
      • isDone

        public boolean isDone()
      • setIndeterminate

        public void setIndeterminate​(boolean indeterminate)
      • setProgress

        public void setProgress​(long progress)
      • done

        public void done()
      • setSubStatus

        public void setSubStatus​(ProgressStatus subStatus,
                                 long subStatusLength)
      • getLength

        public long getLength()
      • setLength

        public void setLength​(long length)
      • getFinishedTime

        public java.util.Date getFinishedTime()
      • setFinishedTime

        public void setFinishedTime​(java.util.Date finishedTime)
      • elapsedTimeMillis

        public java.lang.Long elapsedTimeMillis()
        Get elapsed time in milliseconds.
        Returns:
        elapsed time or null if unknown
      • estimatedFinishMillis

        public java.lang.Long estimatedFinishMillis()
      • estimatedFinishTime

        public java.util.Date estimatedFinishTime()
      • cancel

        public void cancel()
      • hasCancelRequest

        public boolean hasCancelRequest()
      • canceled

        public void canceled()
      • isCanceled

        public boolean isCanceled()
      • isError

        public boolean isError()
      • error

        public void error()
      • getErrorTime

        public java.util.Date getErrorTime()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object