net.sf.basedb.core
Class SimpleAbsoluteProgressReporter
java.lang.Object
net.sf.basedb.core.SimpleProgressReporter
net.sf.basedb.core.SimpleAbsoluteProgressReporter
- All Implemented Interfaces:
- AbsoluteProgressReporter, ProgressReporter
public class SimpleAbsoluteProgressReporter
- extends SimpleProgressReporter
- implements AbsoluteProgressReporter
This is a simple implementation of the AbsoluteProgressReporter
interface,
which simply remembers that last values.
- Version:
- 2.0
- Author:
- nicklas
- See Also:
SimpleProgressReporter
- Last modified
- $Date: 2008-09-11 22:11:02 +0200 (Thu, 11 Sep 2008) $
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
total
private final long total
completed
private long completed
SimpleAbsoluteProgressReporter
public SimpleAbsoluteProgressReporter(ProgressReporter progress,
long total)
- Create a new absolute progress reporter.
- Parameters:
progress
- An optional progress which is also notified about
the progresstotal
- The end point of task
displayAbsolute
public void displayAbsolute(long completed,
String message)
- Description copied from interface:
AbsoluteProgressReporter
- Display a progress message.
- Specified by:
displayAbsolute
in interface AbsoluteProgressReporter
- Parameters:
completed
- The progress of the taskmessage
- A message, or null
getTotal
public long getTotal()
- Get the end point of the task.
getCompleted
public long getCompleted()
- Get completed number of ticks of the task.