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 TypeMethodDescriptionvoid
void
completedWithErrors
(Exception reason) int
long
int
getMax()
getName()
getState()
void
boolean
void
setCurrent
(int current) void
setElapsedTime
(long elapsedTime) void
Work complete.void
setMax
(int max) void
void
setReasonMessage
(String reasonMessage) void
Work has been successfully completed.void
withReason
(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
-