java.lang.Object
org.jenkinsci.plugins.lucene.search.databackend.Progress
Direct Known Subclasses:
ManagerProgress

public class Progress extends Object
  • Field Details

    • startTime

      protected long startTime
  • Constructor Details

    • Progress

      public Progress()
    • Progress

      public Progress(String name)
  • Method Details

    • assertNoErrors

      public void assertNoErrors() throws Exception
      Throws:
      Exception
    • completedWithErrors

      public void completedWithErrors(Exception reason)
    • setFinished

      public void setFinished()
      Work complete. Does NOT imply success, only that no more processing will be done
    • setSuccessfullyCompleted

      public void setSuccessfullyCompleted()
      Work has been successfully completed. Current will be one less than max.
    • getState

      public Progress.ProgressState getState()
    • isFinished

      public boolean isFinished()
    • getReason

      public Throwable getReason()
    • getMax

      public int getMax()
    • setMax

      public void setMax(int max)
    • getCurrent

      public int getCurrent()
    • setCurrent

      public void setCurrent(int current)
    • incCurrent

      public void incCurrent()
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getElapsedTime

      public long getElapsedTime()
    • setElapsedTime

      public void setElapsedTime(long elapsedTime)
    • withReason

      public void withReason(Exception reason)
    • getReasonMessage

      public String getReasonMessage()
    • setReasonMessage

      public void setReasonMessage(String reasonMessage)