org.gridbus.broker.farming.fork
Class ForkJobWrapper

java.lang.Object
  |
  +--org.gridbus.broker.farming.fork.ForkJobWrapper
All Implemented Interfaces:
JobWrapper

public class ForkJobWrapper
extends java.lang.Object
implements JobWrapper

This class interacts with the local host. It creates the script for the job and submits it locally.

Author:
Tianchi Ma (tcma@cs.mu.oz.au)
See Also:
JobWrapper

Constructor Summary
ForkJobWrapper()
           
ForkJobWrapper(int myplat)
          Constructor
 
Method Summary
 void execute(Job job)
          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

ForkJobWrapper

public ForkJobWrapper(int myplat)
Constructor

Parameters:
myplat -

ForkJobWrapper

public ForkJobWrapper()
Method Detail

execute

public void execute(Job job)
Description copied from interface: JobWrapper
This method actually starts the job process to the middleware. Calls middleware specific functions

Specified by:
execute in interface JobWrapper
Parameters:
job - - Job to be executed
See Also:
JobWrapper.execute(org.gridbus.broker.farming.common.Job)

terminate

public void terminate()
Description copied from interface: JobWrapper
This method terminates the process running on the remote host and initiates cleanup if required

Specified by:
terminate in interface JobWrapper
See Also:
JobWrapper.terminate()