net.sf.basedb.core
Interface AbsoluteProgressReporter
- All Superinterfaces:
- ProgressReporter
- All Known Implementing Classes:
- SimpleAbsoluteProgressReporter
public interface AbsoluteProgressReporter
- extends ProgressReporter
This is interface is an extension to the ProgressReporter
interface. Instead of sending the percentage of progress it is possible
to send an absolute value. This is useful for example when copying files
were it makes more sense to display the number of bytes copied. It is
up to each implementation to define the endpoint, ie. the total number of
bytes to copy. Implementations should still allow the ProgressReporter.display(int, String)
method to be called.
- Version:
- 2.0
- Author:
- nicklas
- Last modified
- $Date: 2008-09-11 22:11:02 +0200 (Thu, 11 Sep 2008) $
displayAbsolute
void displayAbsolute(long completed,
String message)
- Display a progress message.
- Parameters:
completed
- The progress of the taskmessage
- A message, or null