offlineProcessing
Interface TaskMonitor

All Known Implementing Classes:
OLProcessDialog.OLMonitor

public interface TaskMonitor

Interface to receive notifications about the task progress (which will be running in a different SwingWorker thread).

Author:
Doug Gillespie

Field Summary
static int TASK_COMPLETE
           
static int TASK_CRASHED
           
static int TASK_IDLE
           
static int TASK_INTERRRUPTED
           
static int TASK_RUNNING
           
 
Method Summary
 void setFileName(java.lang.String fileName)
          Set the current file name.
 void setNumFiles(int nFiles)
          Set the total number of files to process (will be one if only loaded data are being processed).
 void setProgress(int global, double loaded)
          Set the overall task progress
 void setStatus(int taskStatus)
          Set the task status.
 

Field Detail

TASK_IDLE

static final int TASK_IDLE
See Also:
Constant Field Values

TASK_RUNNING

static final int TASK_RUNNING
See Also:
Constant Field Values

TASK_INTERRRUPTED

static final int TASK_INTERRRUPTED
See Also:
Constant Field Values

TASK_COMPLETE

static final int TASK_COMPLETE
See Also:
Constant Field Values

TASK_CRASHED

static final int TASK_CRASHED
See Also:
Constant Field Values
Method Detail

setStatus

void setStatus(int taskStatus)
Set the task status.

Parameters:
taskStatus -

setNumFiles

void setNumFiles(int nFiles)
Set the total number of files to process (will be one if only loaded data are being processed).

Parameters:
nFiles -

setProgress

void setProgress(int global,
                 double loaded)
Set the overall task progress

Parameters:
global - - global progress, i.e. number of files completed (0 - nFiles)
loaded - - progress though data currently loaded (0 - 1.)

setFileName

void setFileName(java.lang.String fileName)
Set the current file name.

Parameters:
fileName -