nl.uva.vlet.exec
Class ProcessTaskSource

java.lang.Object
  extended by nl.uva.vlet.exec.ProcessTaskSource
All Implemented Interfaces:
ITaskSource

public class ProcessTaskSource
extends java.lang.Object
implements ITaskSource

Simple ProcessTasksource listener. This is not a TaskSource for actual started processes, but for the Tasks started in the Java Process obejcts which watch the started process. For example the streamReader task.


Constructor Summary
ProcessTaskSource()
           
 
Method Summary
 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 msg)
          Message printer for the ActionTask to print messages and/or errors
 void setHasTasks(boolean val)
          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

ProcessTaskSource

public ProcessTaskSource()
Method Detail

getID

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

Specified by:
getID 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

messagePrintln

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

Specified by:
messagePrintln in interface ITaskSource

setHasTasks

public void setHasTasks(boolean val)
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()