org.gridbus.broker.farming.common
Class JobWrapper

java.lang.Object
  extended by org.gridbus.broker.farming.common.JobWrapper
Direct Known Subclasses:
AlchemiJobWrapper, CondorJobWrapper, ForkJobWrapper, GlobusJobWrapper, PBSJobWrapper, SGEJobWrapper, UnicoreJobWrapper, XgridJobWrapper

public abstract class JobWrapper
extends java.lang.Object

This is a model class for submitting jobs to various middleware such as Globus2.0 or Globus 3.0. The minimum nodeRequirements is a job and a server to which the job is submittted.

Author:
Srikumar Venugopal (srikumar@cs.mu.oz.au)

Constructor Summary
JobWrapper(java.lang.Object o)
          This constructor allows for passing of an Object which may be used to configure this object.
 
Method Summary
 void executeJob(Job j)
          The executeJob will call the protected execute(Job) method, on a seperate thread, to make sure that the execution returns properly.
 java.lang.Object getConfig()
           
 java.lang.String getLocalWorkingDir()
           
abstract  void terminate()
          This method terminates the process running on the remote host and initiates cleanup if required
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobWrapper

public JobWrapper(java.lang.Object o)
This constructor allows for passing of an Object which may be used to configure this object. Every subclass should call this constructor using super(Object) to ensure the properties are initialised properly. In the current Object parameter is an instance of the BrokerProperties class.

Parameters:
o -
Method Detail

getConfig

public java.lang.Object getConfig()
Returns:

executeJob

public final void executeJob(Job j)
The executeJob will call the protected execute(Job) method, on a seperate thread, to make sure that the execution returns properly.

Parameters:
j -

getLocalWorkingDir

public java.lang.String getLocalWorkingDir()

terminate

public abstract void terminate()
This method terminates the process running on the remote host and initiates cleanup if required