org.gridbus.broker.common
Class JobWrapper

java.lang.Object
  extended by org.gridbus.broker.common.JobWrapper
Direct Known Subclasses:
PosixJobWrapper, WindowsJobWrapper

public abstract class JobWrapper
extends java.lang.Object


Field Summary
protected static java.lang.String AGENT_JAR
           
protected static int COMMIT_TIMEOUT
           
protected static java.lang.String EOL
           
protected static java.lang.String PROXY_FILE
           
protected static java.lang.String QUOTE
           
protected static int SUBMISSION_TIMEOUT
           
 
Constructor Summary
JobWrapper()
           
 
Method Summary
protected abstract  void cleanUp(Job job)
           
protected abstract  void commit(Job job)
           
protected abstract  void execute(Job job)
           
protected abstract  void execute(org.gridbus.scs.common.SCSJob job)
           
protected  void executeJob(Job job)
           
protected  void executeJob(org.gridbus.scs.common.SCSJob job)
           
protected static java.lang.String getFileOnStagingServer(java.lang.String fileStagingUrl, java.lang.String file, java.lang.String uniqueId)
           
protected static java.lang.String getUniqueId(Job job)
           
protected static boolean jobNeedsRemoteData(Job job)
           
protected abstract  void stageIn(Job job)
           
protected abstract  void stageOut(Job job)
           
protected abstract  void stageOut(org.gridbus.scs.common.SCSJob job)
           
protected abstract  void terminate(Job job)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AGENT_JAR

protected static final java.lang.String AGENT_JAR
See Also:
Constant Field Values

PROXY_FILE

protected static final java.lang.String PROXY_FILE
See Also:
Constant Field Values

EOL

protected static final java.lang.String EOL
See Also:
Constant Field Values

QUOTE

protected static final java.lang.String QUOTE
See Also:
Constant Field Values

SUBMISSION_TIMEOUT

protected static final int SUBMISSION_TIMEOUT
See Also:
Constant Field Values

COMMIT_TIMEOUT

protected static final int COMMIT_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

JobWrapper

public JobWrapper()
Method Detail

jobNeedsRemoteData

protected static final boolean jobNeedsRemoteData(Job job)

getUniqueId

protected static final java.lang.String getUniqueId(Job job)

getFileOnStagingServer

protected static final java.lang.String getFileOnStagingServer(java.lang.String fileStagingUrl,
                                                               java.lang.String file,
                                                               java.lang.String uniqueId)

stageIn

protected abstract void stageIn(Job job)
                         throws java.lang.Exception
Throws:
java.lang.Exception

stageOut

protected abstract void stageOut(Job job)
                          throws java.lang.Exception
Throws:
java.lang.Exception

stageOut

protected abstract void stageOut(org.gridbus.scs.common.SCSJob job)
                          throws java.lang.Exception
Throws:
java.lang.Exception

execute

protected abstract void execute(Job job)
                         throws java.lang.Exception
Throws:
java.lang.Exception

execute

protected abstract void execute(org.gridbus.scs.common.SCSJob job)
                         throws java.lang.Exception
Throws:
java.lang.Exception

commit

protected abstract void commit(Job job)
                        throws JobCommitException
Throws:
JobCommitException

cleanUp

protected abstract void cleanUp(Job job)
                         throws java.lang.Exception
Throws:
java.lang.Exception

executeJob

protected final void executeJob(Job job)
                         throws JobSubmissionFailedException
Throws:
JobSubmissionFailedException

executeJob

protected final void executeJob(org.gridbus.scs.common.SCSJob job)
                         throws JobSubmissionFailedException
Throws:
JobSubmissionFailedException

terminate

protected abstract void terminate(Job job)
                           throws java.lang.Exception
Throws:
java.lang.Exception

Copyright © The University of Melbourne. 2006