org.gridbus.broker.xpml
Class TaskProcessor

java.lang.Object
  extended by org.gridbus.broker.xpml.TaskProcessor

public class TaskProcessor
extends java.lang.Object

This class has methods to parse tasks from the xml file which specifies the app-description

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 command objects parsed from the xml file
 CopyCommand processCopy(org.dom4j.Element fragmentElement)
          Returns the copy command string from the element
 ExecuteCommand processExecute(org.dom4j.Element fragmentElement)
          Returns the execute command string from the element
 GCopyCommand processGcopy(org.dom4j.Element fragmentElement)
          Returns the GCopy command string from the element
 MCopyCommand processMcopy(org.dom4j.Element fragmentElement)
          Returns the MCopy command string from the element
 Task processPostProcess(org.dom4j.Element fragmentElement)
           
 SubstituteCommand 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 command objects parsed from the xml file

Returns:
collection of commands

processCopy

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

Parameters:
fragmentElement -
Returns:
CopyCommand

processGcopy

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

Parameters:
fragmentElement -
Returns:
string

processMcopy

public MCopyCommand processMcopy(org.dom4j.Element fragmentElement)
Returns the MCopy command string from the element

Parameters:
fragmentElement -
Returns:
string

processExecute

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

Parameters:
fragmentElement -
Returns:
string

processSubstitute

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

Parameters:
fragmentElement -
Returns:
string

processPostProcess

public Task processPostProcess(org.dom4j.Element fragmentElement)