js.common
Interface ToolProgressMonitor

All Known Implementing Classes:
CLIToolProgressMonitor, NullToolProgressMonitor

public interface ToolProgressMonitor

Listener for progress of long running operations.


Method Summary
 boolean isCanceled()
          Is tool canceled?.
 void log(java.lang.String message)
          Notification about some progress information.
 void operation(java.lang.String message)
          Notification change of operation.
 void progress(int progress)
          Notification about progress.
 void setVerbose(boolean verbose)
          Be verbose?
 

Method Detail

operation

void operation(java.lang.String message)
Notification change of operation.

Parameters:
message - human readable description of current operation

log

void log(java.lang.String message)
Notification about some progress information.

Parameters:
message - human readable message about progress

progress

void progress(int progress)
Notification about progress.

Parameters:
progress - progress (0-1000)

isCanceled

boolean isCanceled()
Is tool canceled?.


setVerbose

void setVerbose(boolean verbose)
Be verbose?