org.gridbus.broker.farming.common
Class JobWrapper

java.lang.Object
  extended byorg.gridbus.broker.farming.common.JobWrapper
Direct Known Subclasses:
AlchemiJobWrapper, DummyJobWrapper, GlobusJobWrapper, UnicoreJobWrapper

public 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 requirement is a job and a server to which the job is submittted.

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

Constructor Summary
JobWrapper()
           
 
Method Summary
 void execute(Job j)
          This method actually starts the job process to the middleware.
 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()
Method Detail

execute

public void execute(Job j)
This method actually starts the job process to the middleware. Calls middleware specific functions

Parameters:
j - - Job to be executed

terminate

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