org.gridbus.broker.plan
Class TaskProcessor

java.lang.Object
  extended byorg.gridbus.broker.plan.TaskProcessor

public class TaskProcessor
extends java.lang.Object

This class has methods to parse tasks from the xml file which specifies the plan

Author:
Ding Choon Hoong (chd@students.cs.mu.oz.au)

Constructor Summary
TaskProcessor()
          Default constructor
TaskProcessor(org.dom4j.Element fragmentElement)
          Sets up the taskprocessor class with the element object passed in
 
Method Summary
 java.util.Vector extractTask()
          Returns a collection of tasks from the xml file
 java.lang.String processCopy(org.dom4j.Element fragmentElement)
          Returns the copy command string from the element
 java.lang.String processExecute(org.dom4j.Element fragmentElement)
          Returns the execute command string from the element
 java.lang.String processGcopy(org.dom4j.Element fragmentElement)
          Returns the GCopy command string from the element
 java.lang.String processMkdir(org.dom4j.Element fragmentElement)
          Returns the mkdir command string from the element
 java.lang.String processOnerror(org.dom4j.Element fragmentElement)
          Returns the onerror string from the element
 java.lang.String processOptions(org.dom4j.Element fragmentElement)
          Returns the options string from the element
 java.lang.String processSubstitute(org.dom4j.Element fragmentElement)
          Returns the substitute command string from the element
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskProcessor

public TaskProcessor()
Default constructor


TaskProcessor

public TaskProcessor(org.dom4j.Element fragmentElement)
Sets up the taskprocessor class with the element object passed in

Parameters:
fragmentElement -
Method Detail

extractTask

public java.util.Vector extractTask()
Returns a collection of tasks from the xml file

Returns:
collection of tasks

processCopy

public java.lang.String processCopy(org.dom4j.Element fragmentElement)
Returns the copy command string from the element

Parameters:
fragmentElement -
Returns:
string

processGcopy

public java.lang.String processGcopy(org.dom4j.Element fragmentElement)
Returns the GCopy command string from the element

Parameters:
fragmentElement -
Returns:
string

processExecute

public java.lang.String processExecute(org.dom4j.Element fragmentElement)
Returns the execute command string from the element

Parameters:
fragmentElement -
Returns:
string

processMkdir

public java.lang.String processMkdir(org.dom4j.Element fragmentElement)
Returns the mkdir command string from the element

Parameters:
fragmentElement -
Returns:
string

processOptions

public java.lang.String processOptions(org.dom4j.Element fragmentElement)
Returns the options string from the element

Parameters:
fragmentElement -
Returns:
string

processSubstitute

public java.lang.String processSubstitute(org.dom4j.Element fragmentElement)
Returns the substitute command string from the element

Parameters:
fragmentElement -
Returns:
string

processOnerror

public java.lang.String processOnerror(org.dom4j.Element fragmentElement)
Returns the onerror string from the element

Parameters:
fragmentElement -
Returns:
string