Class Progress
java.lang.Object
org.jenkinsci.plugins.lucene.search.databackend.Progress
- Direct Known Subclasses:
ManagerProgress
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcompletedWithErrors(Exception reason) intlongintgetMax()getName()getState()voidbooleanvoidsetCurrent(int current) voidsetElapsedTime(long elapsedTime) voidWork complete.voidsetMax(int max) voidvoidsetReasonMessage(String reasonMessage) voidWork has been successfully completed.voidwithReason(Exception reason)
-
Field Details
-
startTime
protected long startTime
-
-
Constructor Details
-
Progress
public Progress() -
Progress
-
-
Method Details
-
assertNoErrors
- Throws:
Exception
-
completedWithErrors
-
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
-
isFinished
public boolean isFinished() -
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
-
setName
-
getElapsedTime
public long getElapsedTime() -
setElapsedTime
public void setElapsedTime(long elapsedTime) -
withReason
-
getReasonMessage
-
setReasonMessage
-