org.gridbus.broker.farming.globus.gt4
Class GT4JobRSL

java.lang.Object
  extended by org.gridbus.broker.farming.globus.gt4.GT4JobRSL

public class GT4JobRSL
extends java.lang.Object

This class has methods to work with XML RSL, which describes jobs for Globus 4

Author:
Krishna Nadiminti (kna@cs.mu.oz.au)

Constructor Summary
GT4JobRSL()
          Creates a GT4 XML-based RSL multi-job description for one job
GT4JobRSL(int numberOfJobs)
          Creates a GT4 XML-based RSL multi-job description for the given number of jobs
 
Method Summary
 java.lang.String getJobRSL()
          Generates the RSL for a single job.
 java.lang.String getJobRSL(int jobNum)
          Generates the RSL for the given job number.
 java.lang.String getMultiJobRSL()
          Generates the RSL.
 void setArguments(int jobNum, java.lang.String[] args)
          Sets the arguments for the job with the given job number.
 void setArguments(java.lang.String[] args)
          Sets the arguments for the (first) job.
 void setDirectory(int jobNum, java.lang.String directory)
          Sets the directory for the job with the given job number.
 void setDirectory(java.lang.String directory)
          Sets the directory for the (first) job
 void setExecutable(int jobNum, java.lang.String executable)
          Sets the executable for the job with the given job number
 void setExecutable(java.lang.String executable)
          Sets the executable for the (first) job.
 void setFileCleanup(int jobNum, java.lang.String[] fileNames)
          Clean up a set of files for the given job.
 void setFileCleanup(java.lang.String fileName)
          Clean up a single file
 void setFileCleanup(java.lang.String[] fileNames)
          Clean up a set of files
 void setFileStageIn(int jobNum, java.lang.String[] srcURLs, java.lang.String[] destURLs)
          Stage-in a set of files for the given job.
 void setFileStageIn(java.lang.String[] srcURLs, java.lang.String[] destURLs)
          Stage-in a set of files.
 void setFileStageIn(java.lang.String srcURL, java.lang.String destURL)
          Stage-in a single file.
 void setFileStageOut(int jobNum, java.lang.String[] srcURLs, java.lang.String[] destURLs)
          Stage-out a set of files for the given job.
 void setFileStageOut(java.lang.String[] srcURLs, java.lang.String[] destURLs)
          Stage-out a set of files
 void setFileStageOut(java.lang.String srcURL, java.lang.String destURL)
          Stage-out a single file
 void setMaxCPUTime(int jobNum, long i)
          Sets the maximum CPU time for the job with the given job number.
 void setMaxCPUTime(long i)
          Sets the maximum CPU time for the (first) job
 void setMaxMemory(int jobNum, long i)
          Set the maximum memory allowed for the job with the given job number.
 void setMaxMemory(long i)
          Set the maximum memory allowed for the (first) job.
 void setMaxWallTime(int jobNum, long i)
          Sets the maximum time allowed for the job with the given job number.
 void setMaxWallTime(long i)
          Sets the maximum time allowed for the (first) job
 void setMinmemory(int jobNum, long i)
          Sets the minimum memory for the job with the given job number.
 void setMinmemory(long i)
          Sets the minimum memory for the (first) job.
 void setNumJobs(int i)
           
 void setNumprocs(int i)
          Sets the number of processors required for the (first) job.
 void setNumprocs(int jobNum, int i)
          Sets the number of processors required for the job with the given job number.
 void setQueue(int jobNum, java.lang.String queue)
          Sets the job queue for the job with the given job number.
 void setQueue(java.lang.String queue)
          Sets the job queue for the (first) job.
 void setStderr(int jobNum, java.lang.String stderr)
          Sets the stderr for the job with the given job number.
 void setStderr(java.lang.String stderr)
          Sets the std err for the (first) job.
 void setStdout(int jobNum, java.lang.String stdout)
          Sets the std out for the job with the given job number.
 void setStdout(java.lang.String stdout)
          Sets the std out for the (first) job.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GT4JobRSL

public GT4JobRSL()
Creates a GT4 XML-based RSL multi-job description for one job


GT4JobRSL

public GT4JobRSL(int numberOfJobs)
Creates a GT4 XML-based RSL multi-job description for the given number of jobs

Parameters:
numberOfJobs -
Method Detail

setFileCleanup

public void setFileCleanup(int jobNum,
                           java.lang.String[] fileNames)
Clean up a set of files for the given job.

Parameters:
jobNum -
fileNames -

setFileCleanup

public void setFileCleanup(java.lang.String fileName)
Clean up a single file

Parameters:
fileName -

setFileCleanup

public void setFileCleanup(java.lang.String[] fileNames)
Clean up a set of files

Parameters:
fileNames -

setFileStageIn

public void setFileStageIn(java.lang.String srcURL,
                           java.lang.String destURL)
Stage-in a single file.

Parameters:
srcURL -
destURL -

setFileStageIn

public void setFileStageIn(java.lang.String[] srcURLs,
                           java.lang.String[] destURLs)
Stage-in a set of files.

Parameters:
srcURLs -
destURLs -

setFileStageIn

public void setFileStageIn(int jobNum,
                           java.lang.String[] srcURLs,
                           java.lang.String[] destURLs)
Stage-in a set of files for the given job.

Parameters:
jobNum -
srcURLs -
destURLs -

setFileStageOut

public void setFileStageOut(java.lang.String srcURL,
                            java.lang.String destURL)
Stage-out a single file

Parameters:
srcURL -
destURL -

setFileStageOut

public void setFileStageOut(java.lang.String[] srcURLs,
                            java.lang.String[] destURLs)
Stage-out a set of files

Parameters:
srcURLs -
destURLs -

setFileStageOut

public void setFileStageOut(int jobNum,
                            java.lang.String[] srcURLs,
                            java.lang.String[] destURLs)
Stage-out a set of files for the given job.

Parameters:
jobNum -
srcURLs -
destURLs -

setExecutable

public void setExecutable(java.lang.String executable)
Sets the executable for the (first) job.

Parameters:
executable -

setExecutable

public void setExecutable(int jobNum,
                          java.lang.String executable)
Sets the executable for the job with the given job number

Parameters:
jobNum -
executable -

setArguments

public void setArguments(int jobNum,
                         java.lang.String[] args)
Sets the arguments for the job with the given job number. Each argument is an element in the args string array.

Parameters:
jobNum -
args -

setArguments

public void setArguments(java.lang.String[] args)
Sets the arguments for the (first) job.

Parameters:
args -

setDirectory

public void setDirectory(int jobNum,
                         java.lang.String directory)
Sets the directory for the job with the given job number.

Parameters:
jobNum -
directory -

setDirectory

public void setDirectory(java.lang.String directory)
Sets the directory for the (first) job

Parameters:
directory -

setMaxCPUTime

public void setMaxCPUTime(int jobNum,
                          long i)
Sets the maximum CPU time for the job with the given job number.

Parameters:
jobNum -
i -

setMaxCPUTime

public void setMaxCPUTime(long i)
Sets the maximum CPU time for the (first) job

Parameters:
i -

setMaxWallTime

public void setMaxWallTime(int jobNum,
                           long i)
Sets the maximum time allowed for the job with the given job number.

Parameters:
jobNum -
i -

setMaxWallTime

public void setMaxWallTime(long i)
Sets the maximum time allowed for the (first) job

Parameters:
i -

setMaxMemory

public void setMaxMemory(int jobNum,
                         long i)
Set the maximum memory allowed for the job with the given job number.

Parameters:
jobNum -
i -

setMaxMemory

public void setMaxMemory(long i)
Set the maximum memory allowed for the (first) job.

Parameters:
i -

setMinmemory

public void setMinmemory(int jobNum,
                         long i)
Sets the minimum memory for the job with the given job number.

Parameters:
jobNum -
i -

setMinmemory

public void setMinmemory(long i)
Sets the minimum memory for the (first) job.

Parameters:
i -

setNumprocs

public void setNumprocs(int jobNum,
                        int i)
Sets the number of processors required for the job with the given job number.

Parameters:
jobNum -
i -

setNumprocs

public void setNumprocs(int i)
Sets the number of processors required for the (first) job.

Parameters:
i -

setQueue

public void setQueue(int jobNum,
                     java.lang.String queue)
Sets the job queue for the job with the given job number.

Parameters:
jobNum -
queue -

setQueue

public void setQueue(java.lang.String queue)
Sets the job queue for the (first) job.

Parameters:
queue -

setStderr

public void setStderr(int jobNum,
                      java.lang.String stderr)
Sets the stderr for the job with the given job number.

Parameters:
jobNum -
stderr -

setStderr

public void setStderr(java.lang.String stderr)
Sets the std err for the (first) job.

Parameters:
stderr -

setStdout

public void setStdout(int jobNum,
                      java.lang.String stdout)
Sets the std out for the job with the given job number.

Parameters:
jobNum -
stdout -

setStdout

public void setStdout(java.lang.String stdout)
Sets the std out for the (first) job.

Parameters:
stdout -

setNumJobs

public void setNumJobs(int i)
Parameters:
i -

getMultiJobRSL

public java.lang.String getMultiJobRSL()
Generates the RSL.

Returns:
rsl string

getJobRSL

public java.lang.String getJobRSL(int jobNum)
Generates the RSL for the given job number.

Parameters:
jobNum -
Returns:
rsl string

getJobRSL

public java.lang.String getJobRSL()
Generates the RSL for a single job.

Returns: