org.jenkinsci.plugins.lucene.search.databackend
Class Progress
java.lang.Object
org.jenkinsci.plugins.lucene.search.databackend.Progress
- Direct Known Subclasses:
- ManagerProgress
public class Progress
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Progress
public Progress()
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.