offlineProcessing
Class TaskMonitorData

java.lang.Object
  extended by offlineProcessing.TaskMonitorData

public class TaskMonitorData
extends java.lang.Object

Class used to transfer status and progress information out of the OfflienTaskGroup worker thread.

Author:
Doug Gillespie

Field Summary
(package private)  int dataType
           
(package private)  java.lang.String fileName
           
(package private)  int globalProgress
           
(package private)  double loadedProgress
          Progress through loaded data Values < 0 represent unknown (i.e.
(package private)  int nFiles
           
static int SET_FILENAME
           
static int SET_NFILES
           
static int SET_PROGRESS
           
static int SET_STATUS
           
(package private)  int status
           
 
Constructor Summary
TaskMonitorData(int status)
          Constructor used to set the status
TaskMonitorData(int globalProgress, double loadedProgress)
          Constructor used to set the analysis progress.
TaskMonitorData(int status, int nFiles)
          Constructor used to set both the status and the total number of files.
TaskMonitorData(java.lang.String fileName)
          Constructor used to set the current file name
 
Method Summary
static int getStatusCode(java.lang.String statusString)
          Turn a status string back into a code.
static java.lang.String getStatusString(int status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SET_NFILES

public static final int SET_NFILES
See Also:
Constant Field Values

SET_FILENAME

public static final int SET_FILENAME
See Also:
Constant Field Values

SET_STATUS

public static final int SET_STATUS
See Also:
Constant Field Values

SET_PROGRESS

public static final int SET_PROGRESS
See Also:
Constant Field Values

dataType

int dataType

globalProgress

int globalProgress

nFiles

int nFiles

loadedProgress

double loadedProgress
Progress through loaded data Values < 0 represent unknown (i.e. currently loading data). so progress bars should be set to indeterminate.


status

int status

fileName

java.lang.String fileName
Constructor Detail

TaskMonitorData

TaskMonitorData(int status)
Constructor used to set the status

Parameters:
status - status

TaskMonitorData

TaskMonitorData(int status,
                int nFiles)
Constructor used to set both the status and the total number of files.

Parameters:
status - status
nFiles - number of files

TaskMonitorData

TaskMonitorData(java.lang.String fileName)
Constructor used to set the current file name

Parameters:
fileName - file Name

TaskMonitorData

TaskMonitorData(int globalProgress,
                double loadedProgress)
Constructor used to set the analysis progress.

Parameters:
globalProgress -
loadedProgress -
Method Detail

getStatusString

public static java.lang.String getStatusString(int status)
Parameters:
status - Task status
Returns:
some string or other to represent the status.

getStatusCode

public static int getStatusCode(java.lang.String statusString)
Turn a status string back into a code.

Parameters:
statusString -
Returns: