org.ourgrid.mygrid.ui.command
Class JobAdder

java.lang.Object
  extended by org.ourgrid.mygrid.ui.command.JobAdder
All Implemented Interfaces:
Command

public class JobAdder
extends java.lang.Object
implements Command

Description: This class is responsible to add new jobs to the scheduler. This can be made by getting an instance from JobAdder and using its API or through mygrid addjob script. At both of them a job is readed from the given file and passed to MyGrid, that'll schedule the job's tasks. To describe a job the user must create a description file where the job attributes are explicited and each task is described. To obtaind a better description about how to write this file, read: //TODO:refer to the manual!!!!

Version:
1.0 Created on 02/08/2004

Constructor Summary
JobAdder(UIManager manager)
           
 
Method Summary
 boolean configureEnvironment()
          Determines if this command needs to configure environment before being executed
static void printUsage()
          Print's this class command line usage.
 int run(java.lang.String[] params)
          Main method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobAdder

public JobAdder(UIManager manager)
Method Detail

run

public int run(java.lang.String[] params)
Main method. This method should be called with a JobDescriptionFile as command line argument1

Specified by:
run in interface Command

printUsage

public static void printUsage()
Print's this class command line usage.


configureEnvironment

public boolean configureEnvironment()
Description copied from interface: Command
Determines if this command needs to configure environment before being executed

Specified by:
configureEnvironment in interface Command
Returns:
true if this command needs to configure environment before. False, otherwise.
See Also:
Command.configureEnvironment()