org.jenkinsci.plugins.lucene.search.databackend
Class Progress

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

public class Progress
extends Object


Nested Class Summary
static class Progress.ProgressState
           
 
Constructor Summary
Progress()
           
 
Method Summary
 void assertNoErrors()
           
 long elapsedTime()
           
 int getCurrent()
           
 int getMax()
           
 Throwable getReason()
           
 Progress.ProgressState getState()
           
 boolean isFinished()
           
 void setCurrent(int current)
           
 void setError(Throwable reason)
           
 void setFinished()
          Work complete.
 void setMax(int max)
           
 void setSuccessfullyCompleted()
          Work has been successfully completed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Progress

public Progress()
Method Detail

assertNoErrors

public void assertNoErrors()
                    throws Throwable
Throws:
Throwable

setError

public void setError(Throwable 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.


elapsedTime

public long elapsedTime()

getReason

public Throwable getReason()

getState

public Progress.ProgressState getState()

isFinished

public boolean isFinished()

getMax

public int getMax()

setMax

public void setMax(int max)

getCurrent

public int getCurrent()

setCurrent

public void setCurrent(int current)


Copyright © 2004-2015. All Rights Reserved.