MOA 12.03
Real Time Analytics for Data Streams
moa.tasks.TaskThread Class Reference

Task Thread. More...

Collaboration diagram for moa.tasks.TaskThread:

List of all members.

Public Types

enum  Status {
  NOT_STARTED, RUNNING, PAUSED, CANCELLING,
  CANCELLED, COMPLETED, FAILED
}

Public Member Functions

 TaskThread (Task toRun)
 TaskThread (Task toRun, ObjectRepository repository)
void run ()
synchronized void pauseTask ()
synchronized void resumeTask ()
synchronized void cancelTask ()
double getCPUSecondsElapsed ()
Task getTask ()
String getCurrentStatusString ()
String getCurrentActivityString ()
double getCurrentActivityFracComplete ()
boolean isComplete ()
Object getFinalResult ()
void addTaskCompletionListener (TaskCompletionListener tcl)
void removeTaskCompletionListener (TaskCompletionListener tcl)
void getPreview (ResultPreviewListener previewer)
Object getLatestResultPreview ()
double getLatestPreviewGrabTimeSeconds ()

Protected Member Functions

void fireTaskCompleted ()

Protected Attributes

Task runningTask
volatile Status currentStatus
TaskMonitor taskMonitor
ObjectRepository repository
Object finalResult
long taskStartTime
long taskEndTime
double latestPreviewGrabTime = 0.0

Package Attributes

CopyOnWriteArraySet
< TaskCompletionListener
completionListeners = new CopyOnWriteArraySet<TaskCompletionListener>()

Detailed Description

Task Thread.

Author:
Richard Kirkby (rkirkby@cs.waikato.ac.nz)
Version:
Revision:
7

Definition at line 33 of file TaskThread.java.


Member Enumeration Documentation

Enumerator:
NOT_STARTED 
RUNNING 
PAUSED 
CANCELLING 
CANCELLED 
COMPLETED 
FAILED 

Definition at line 35 of file TaskThread.java.


Constructor & Destructor Documentation

moa.tasks.TaskThread.TaskThread ( Task  toRun)

Definition at line 58 of file TaskThread.java.

moa.tasks.TaskThread.TaskThread ( Task  toRun,
ObjectRepository  repository 
)

Definition at line 62 of file TaskThread.java.

Here is the call graph for this function:


Member Function Documentation

void moa.tasks.TaskThread.addTaskCompletionListener ( TaskCompletionListener  tcl)

Definition at line 179 of file TaskThread.java.

synchronized void moa.tasks.TaskThread.cancelTask ( )

Definition at line 103 of file TaskThread.java.

Here is the call graph for this function:

void moa.tasks.TaskThread.fireTaskCompleted ( ) [protected]

Definition at line 187 of file TaskThread.java.

Referenced by moa.tasks.TaskThread.run().

Here is the caller graph for this function:

double moa.tasks.TaskThread.getCPUSecondsElapsed ( )

Definition at line 111 of file TaskThread.java.

Referenced by moa.tasks.TaskThread.getPreview(), moa.gui.TaskManagerPanel.TaskTableModel.getValueAt(), and moa.DoTask.main().

Here is the call graph for this function:

Here is the caller graph for this function:

double moa.tasks.TaskThread.getCurrentActivityFracComplete ( )

Definition at line 154 of file TaskThread.java.

Referenced by moa.gui.TaskManagerPanel.TaskTableModel.getValueAt(), and moa.DoTask.main().

Here is the call graph for this function:

Here is the caller graph for this function:

String moa.tasks.TaskThread.getCurrentActivityString ( )

Definition at line 149 of file TaskThread.java.

Referenced by moa.gui.TaskManagerPanel.TaskTableModel.getValueAt(), and moa.DoTask.main().

Here is the call graph for this function:

Here is the caller graph for this function:

String moa.tasks.TaskThread.getCurrentStatusString ( )

Definition at line 129 of file TaskThread.java.

Referenced by moa.gui.TaskManagerPanel.TaskTableModel.getValueAt(), and moa.DoTask.main().

Here is the caller graph for this function:

Object moa.tasks.TaskThread.getFinalResult ( )

Definition at line 175 of file TaskThread.java.

Referenced by moa.DoTask.main(), and moa.gui.PreviewPanel.setLatestPreview().

Here is the caller graph for this function:

double moa.tasks.TaskThread.getLatestPreviewGrabTimeSeconds ( )

Definition at line 202 of file TaskThread.java.

Referenced by moa.gui.PreviewPanel.setLatestPreview().

Here is the caller graph for this function:

Object moa.tasks.TaskThread.getLatestResultPreview ( )

Definition at line 198 of file TaskThread.java.

Referenced by moa.gui.PreviewPanel.setTaskThreadToPreview().

Here is the call graph for this function:

Here is the caller graph for this function:

void moa.tasks.TaskThread.getPreview ( ResultPreviewListener  previewer)

Definition at line 193 of file TaskThread.java.

Referenced by moa.gui.PreviewPanel.refresh().

Here is the call graph for this function:

Here is the caller graph for this function:

Task moa.tasks.TaskThread.getTask ( )

Definition at line 125 of file TaskThread.java.

Referenced by moa.gui.TaskManagerPanel.TaskTableModel.getValueAt().

Here is the caller graph for this function:

synchronized void moa.tasks.TaskThread.pauseTask ( )

Definition at line 89 of file TaskThread.java.

Here is the call graph for this function:

void moa.tasks.TaskThread.removeTaskCompletionListener ( TaskCompletionListener  tcl)

Definition at line 183 of file TaskThread.java.

synchronized void moa.tasks.TaskThread.resumeTask ( )

Definition at line 96 of file TaskThread.java.

Here is the call graph for this function:

void moa.tasks.TaskThread.run ( )

Definition at line 71 of file TaskThread.java.

Here is the call graph for this function:


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations