org.gridbus.broker.farming.xgrid
Class XgridJobWrapper

java.lang.Object
  extended by org.gridbus.broker.farming.common.JobWrapper
      extended by org.gridbus.broker.farming.xgrid.XgridJobWrapper

public class XgridJobWrapper
extends JobWrapper

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

Author:
Marcos Assunção (marcosd@cs.mu.oz.au)
See Also:
JobWrapper

Constructor Summary
XgridJobWrapper()
          Default constructor
XgridJobWrapper(java.lang.Object o)
           
 
Method Summary
 void addStageBack(java.lang.String source, java.lang.String dest)
          The list for output files to be staged back by the compute server
 int getStageStatus()
          Used to check out whether the files have been staged out
 void stageBack(Job job)
           
 void terminate()
          This method terminates the process running on the remote host and initiates cleanup if required
 
Methods inherited from class org.gridbus.broker.farming.common.JobWrapper
executeJob, getConfig, getLocalWorkingDir
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XgridJobWrapper

public XgridJobWrapper()
Default constructor


XgridJobWrapper

public XgridJobWrapper(java.lang.Object o)
Parameters:
o -
Method Detail

addStageBack

public void addStageBack(java.lang.String source,
                         java.lang.String dest)
The list for output files to be staged back by the compute server

Parameters:
source -
dest -

stageBack

public void stageBack(Job job)
Parameters:
job -

getStageStatus

public int getStageStatus()
Used to check out whether the files have been staged out

Returns:
the status of staging out

terminate

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

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