org.gridbus.broker.runfile
Class RunFile

java.lang.Object
  extended by org.gridbus.broker.runfile.RunFile

public class RunFile
extends java.lang.Object

This class parses a run file and loads the information into appropriate data structures.

Author:
Hussein Gibbins (hag@cs.mu.oz.au)

Constructor Summary
RunFile()
           
 
Method Summary
 java.util.Vector getConstVars()
          Gets the list of constant variables defined in the parsed run file.
 Task getFinishTask()
          Gets the "rootfinish" task and associated commands defined in the parsed run file.
 java.util.Vector getJobs()
          Gets the jobs defined in the parsed run file.
 java.util.Vector getListVars()
          Gets the list of list type variables defined in the parsed run file.
 Task getStartTask()
          Gets the "nodestart" task and associated commands defined in the parsed run file.
 void parseRunFile(java.lang.String runFile)
          Parses the specified run file.
 void printJobs()
          Prints the details of the jobs defined in the parsed run file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunFile

public RunFile()
Method Detail

parseRunFile

public void parseRunFile(java.lang.String runFile)
Parses the specified run file. Stores information contained in the run file in internal data structures.

Parameters:
runFile - run file to be parsed.

getJobs

public java.util.Vector getJobs()
Gets the jobs defined in the parsed run file.

Returns:
jobs

getListVars

public java.util.Vector getListVars()
Gets the list of list type variables defined in the parsed run file.

Returns:
list variables

getConstVars

public java.util.Vector getConstVars()
Gets the list of constant variables defined in the parsed run file.

Returns:
constant variables

getStartTask

public Task getStartTask()
Gets the "nodestart" task and associated commands defined in the parsed run file.

Returns:
the nodestart task and its associated commands.

getFinishTask

public Task getFinishTask()
Gets the "rootfinish" task and associated commands defined in the parsed run file.

Returns:
the rootfinish task and its associated commands.

printJobs

public void printJobs()
Prints the details of the jobs defined in the parsed run file.