public class Progress extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Progress.ProgressState |
| Modifier and Type | Field and Description |
|---|---|
protected long |
startTime |
| Modifier and Type | Method and Description |
|---|---|
void |
assertNoErrors() |
void |
completedWithErrors(Exception reason) |
int |
getCurrent() |
long |
getElapsedTime() |
int |
getMax() |
String |
getName() |
Throwable |
getReason() |
String |
getReasonMessage() |
Progress.ProgressState |
getState() |
void |
incCurrent() |
boolean |
isFinished() |
void |
setCurrent(int current) |
void |
setElapsedTime(long elapsedTime) |
void |
setFinished()
Work complete.
|
void |
setMax(int max) |
void |
setName(String name) |
void |
setReasonMessage(String reasonMessage) |
void |
setSuccessfullyCompleted()
Work has been successfully completed.
|
void |
withReason(Exception reason) |
public Progress()
public Progress(String name)
public void completedWithErrors(Exception reason)
public void setFinished()
public void setSuccessfullyCompleted()
public Progress.ProgressState getState()
public boolean isFinished()
public Throwable getReason()
public int getMax()
public void setMax(int max)
public int getCurrent()
public void setCurrent(int current)
public void incCurrent()
public String getName()
public void setName(String name)
public long getElapsedTime()
public void setElapsedTime(long elapsedTime)
public void withReason(Exception reason)
public String getReasonMessage()
public void setReasonMessage(String reasonMessage)
Copyright © 2004-2015. All Rights Reserved.