org.gridbus.broker.farming.globus
Class GlobusJobWrapper

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

public class GlobusJobWrapper
extends java.lang.Object
implements JobWrapper

This class interacts with the Globus2.4.2 ComputeResourceList at the remote host. It creates RSL for the job, submits RSL to the remote host and spawns off a GlobusJobMonitor thread to monitor the job. The actual job submission is done in a separate thread.

Author:
Jia Yu (jiayu@cs.mu.oz.au), Srikumar Venugopal (srikumar@cs.mu.oz.au), Brett Beeson (bbeeson@ph.unimelb.edu.au)
See Also:
JobWrapper

Constructor Summary
GlobusJobWrapper()
           
GlobusJobWrapper(org.ietf.jgss.GSSCredential proxy)
          Constructor
 
Method Summary
 void execute(Job job)
          This method actually starts the job process to the middleware.
 org.ietf.jgss.GSSCredential getProxy()
          Returns the GSSCredential proxy
 void setProxy(org.ietf.jgss.GSSCredential credential)
          Sets the GSS credential
 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

GlobusJobWrapper

public GlobusJobWrapper()

GlobusJobWrapper

public GlobusJobWrapper(org.ietf.jgss.GSSCredential proxy)
Constructor

Parameters:
proxy -
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()

getProxy

public org.ietf.jgss.GSSCredential getProxy()
Returns the GSSCredential proxy

Returns:
the user proxy

setProxy

public void setProxy(org.ietf.jgss.GSSCredential credential)
Sets the GSS credential

Parameters:
credential - - the user credential