org.gridbus.broker.farming.globus
Class GlobusJobWrapper

java.lang.Object
  extended byorg.gridbus.broker.farming.common.JobWrapper
      extended byorg.gridbus.broker.farming.globus.GlobusJobWrapper

public class GlobusJobWrapper
extends JobWrapper

This class interacts with the Globus2.4.2 Gatekeeper 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(org.ietf.jgss.GSSCredential proxy)
          Constructor
 
Method Summary
 void execute(Job job)
          This method actually starts the job process to the middleware.
 GassServerUtil getGassServer()
          Returns the gass server object
 java.lang.String getJobUrl()
          Returns the job URL
 org.ietf.jgss.GSSCredential getProxy()
          Returns the GSSCredential proxy
 void setGassServer(GassServerUtil util)
          Sets the gass server
 void setJobUrl(java.lang.String string)
          Sets the job url
 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(org.ietf.jgss.GSSCredential proxy)
Constructor

Parameters:
proxy -
Method Detail

execute

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

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

terminate

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

Overrides:
terminate in class 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

getGassServer

public GassServerUtil getGassServer()
Returns the gass server object

Returns:
gass server

setGassServer

public void setGassServer(GassServerUtil util)
Sets the gass server

Parameters:
util -

getJobUrl

public java.lang.String getJobUrl()
Returns the job URL

Returns:
job url

setJobUrl

public void setJobUrl(java.lang.String string)
Sets the job url

Parameters:
string -