org.gridbus.broker.farming.alchemi
Class AlchemiTask

java.lang.Object
  extended byorg.gridbus.broker.farming.alchemi.AlchemiTask

public class AlchemiTask
extends java.lang.Object

This class represents a task, for an AlchemiJob

Author:
Rajiv Ranjan (rranjan@cs.mu.oz.au)

Constructor Summary
AlchemiTask(Job j)
          Constructor for this class
 
Method Summary
 void copycmd(TaskCommand tc)
          Interprets the copy command for this task
 java.util.Hashtable getoutputsub()
          Returns a list of the output files
 void parserunfile()
          Parses the run file
 java.lang.String substitute(java.lang.String cmd, TaskCommand tc)
          Substitutes the input with the job variables and returns the result
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlchemiTask

public AlchemiTask(Job j)
Constructor for this class

Parameters:
j - - the job corresponding to this task
Method Detail

getoutputsub

public java.util.Hashtable getoutputsub()
Returns a list of the output files

Returns:
- list of output files in a hashtable

copycmd

public void copycmd(TaskCommand tc)
Interprets the copy command for this task

Parameters:
tc - - the copy command for this task

substitute

public java.lang.String substitute(java.lang.String cmd,
                                   TaskCommand tc)
Substitutes the input with the job variables and returns the result

Parameters:
cmd - - the command to substitute
tc - - the task command
Returns:
- the result of substitution

parserunfile

public void parserunfile()
Parses the run file