|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.SimpleProgressReporter net.sf.basedb.core.SimpleAbsoluteProgressReporter
public class SimpleAbsoluteProgressReporter
This is a simple implementation of the AbsoluteProgressReporter
interface,
which simply remembers that last values.
SimpleProgressReporter
Field Summary | |
---|---|
private long |
baseCompleted
|
private long |
completed
|
private String |
message
|
private long |
total
|
Constructor Summary | |
---|---|
SimpleAbsoluteProgressReporter(ProgressReporter progress,
long total)
Create a new absolute progress reporter. |
Method Summary | |
---|---|
void |
displayAbsolute(long completed,
String message)
Display a progress message. |
long |
getCompleted()
Get completed number of ticks of the task. |
long |
getTotal()
Get the end point of the task. |
void |
setAbsolute(long completed,
String message)
Set a basic progress level. |
Methods inherited from class net.sf.basedb.core.SimpleProgressReporter |
---|
append, display, getMessage, getPercent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.basedb.core.ProgressReporter |
---|
append, display |
Field Detail |
---|
private final long total
private long completed
private long baseCompleted
private String message
Constructor Detail |
---|
public SimpleAbsoluteProgressReporter(ProgressReporter progress, long total)
progress
- An optional progress which is also notified about
the progresstotal
- The end point of task, or -1 if not knownMethod Detail |
---|
public void displayAbsolute(long completed, String message)
AbsoluteProgressReporter
displayAbsolute
in interface AbsoluteProgressReporter
completed
- The progress of the taskmessage
- A message, or nullpublic long getTotal()
public long getCompleted()
public void setAbsolute(long completed, String message)
displayAbsolute(long, String)
are based on the completed value and message set here.
completed
- The basic completed progressmessage
- A default message
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |