jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb.job
Class JobRequest

java.lang.Object
  extended by cedar.jetweb.job.JobRequest

public class JobRequest
extends java.lang.Object

Class representing a job to be submitted.

Version:
$Date: 2006-06-19 13:15:40 +0100 (Mon, 19 Jun 2006) $ $Revision: 1189 $
Author:
Jon Butterworth

Constructor Summary
JobRequest(Model inModel, MCProcessType inProc, java.lang.String rqh)
          Build a job request.
 
Method Summary
 java.lang.String getCardName()
          Return the name of the control card file for this job.
 java.lang.String getJobName()
          JobName is the name (without path) of the shell script which is submitted to the batch system.
 MCProcessType getMCProcessType()
          Get the MCProcessType for which data will be simulated
 Model getModel()
          Returns the model on which this JobRequest is based.
 java.lang.String getRequestingHost()
           
 java.io.File getSubmitScript()
          Get command file for submitting a batch job
static void main(java.lang.String[] args)
          Little main program to test job submission.
 void setJobName()
          Sets the - JobName - the name of the shell script which is submitted to the batch queue.
 void setMCProcessType(MCProcessType inProc)
          Set the MCProcessType for which data will be simulated.
 void setSubmitScript(java.io.File script)
          Set command file for submitting a batch job
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobRequest

public JobRequest(Model inModel,
                  MCProcessType inProc,
                  java.lang.String rqh)
           throws JetWebException
Build a job request.

Parameters:
model. - The Model for which events will be generated.
proc. - The MCProcessType for which events will be generated.
Throws:
JetWebException

Method Detail

getRequestingHost

public java.lang.String getRequestingHost()

main

public static void main(java.lang.String[] args)
                 throws JetWebException
Little main program to test job submission.

Throws:
JetWebException


getJobName

public java.lang.String getJobName()
JobName is the name (without path) of the shell script which is submitted to the batch system.

Returns:
jobname


setJobName

public void setJobName()
                throws JetWebException
Sets the - JobName - the name of the shell script which is submitted to the batch queue. Checks that there is no input parameter file with this name already in the expected directory.

Throws:
JetWebException


setMCProcessType

public void setMCProcessType(MCProcessType inProc)
Set the MCProcessType for which data will be simulated.

Parameters:
reaction -


getMCProcessType

public MCProcessType getMCProcessType()
Get the MCProcessType for which data will be simulated

Returns:
proc


getModel

public Model getModel()
Returns the model on which this JobRequest is based.

Returns:
model


getSubmitScript

public java.io.File getSubmitScript()
Get command file for submitting a batch job

Returns:
file


setSubmitScript

public void setSubmitScript(java.io.File script)
Set command file for submitting a batch job


getCardName

public java.lang.String getCardName()
Return the name of the control card file for this job.