nl.uva.vlet.vfs
Class VFSTaskWatcher

java.lang.Object
  extended by nl.uva.vlet.vfs.VFSTaskWatcher
All Implemented Interfaces:
ITaskSource

public class VFSTaskWatcher
extends java.lang.Object
implements ITaskSource

Task watcher for threaded VFS tasks Use VFS.getTaskWatcher() for the default VFS Task Watchers.


Constructor Summary
VFSTaskWatcher(java.lang.String idStr)
           
 
Method Summary
static VFSTaskWatcher getDefault()
           
 boolean getHasTasks()
           
 java.lang.String getID()
          Optional ID to use by the ActionTask
 void handle(java.lang.Exception e)
          Handle Exception thrown by the action task
 void messagePrintln(java.lang.String str)
          Message printer for the ActionTask to print messages and/or errors
 void setHasTasks(boolean b)
          Method to update the TaskSource if it has tasks running
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VFSTaskWatcher

public VFSTaskWatcher(java.lang.String idStr)
Method Detail

getDefault

public static VFSTaskWatcher getDefault()

setHasTasks

public void setHasTasks(boolean b)
Description copied from interface: ITaskSource
Method to update the TaskSource if it has tasks running

Specified by:
setHasTasks in interface ITaskSource

getHasTasks

public boolean getHasTasks()

getID

public java.lang.String getID()
Description copied from interface: ITaskSource
Optional ID to use by the ActionTask

Specified by:
getID in interface ITaskSource

messagePrintln

public void messagePrintln(java.lang.String str)
Description copied from interface: ITaskSource
Message printer for the ActionTask to print messages and/or errors

Specified by:
messagePrintln in interface ITaskSource

handle

public void handle(java.lang.Exception e)
Description copied from interface: ITaskSource
Handle Exception thrown by the action task

Specified by:
handle in interface ITaskSource