jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb.job
Class PendingJob

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

public class PendingJob
extends java.lang.Object

Class representing a job which has been submitted but not yet completed.

Version:
$Date: 2005-10-24 10:16:06 +0100 (Mon, 24 Oct 2005) $ $Revision: 959 $
Author:
Jon Butterworth

Constructor Summary
PendingJob(int newlogId)
          Constructor taking an Id for the Logfile for this Job.
 
Method Summary
 void delete()
          Removes record of this job from the database and deletes the run script if possible.
 java.util.Date getDate()
          RunDate for the job
 int getLogId()
          Id of the logfile for this job.
 java.lang.String getName()
          JobName
 RunSeries getRunSeries()
          Return the runSeries on which this Job is based.
 java.lang.String getScriptName()
          Name of the Run Script for this job.
 boolean isValid()
          Flag allowing job to be invalidated during processing.
 void setDate(java.util.Date d)
          Sets the RunDate for the job
 void setName(java.lang.String n)
          JobName
 void setRunSeries(ResultSearchPattern pattern)
          Sets the runSeries on which this Job is based.
 void setRunSeriesId(int lp)
          Id of the runSeries on which this Job is based.
 void setScriptName(java.lang.String sn)
          Name of the Run Script for this job.
 void setValid(boolean ok)
          Flag allowing job to be invalidated during processing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PendingJob

public PendingJob(int newlogId)
           throws JetWebException
Constructor taking an Id for the Logfile for this Job.

Parameters:
newlogId -
Throws:
JetWebException

Method Detail

isValid

public boolean isValid()
Flag allowing job to be invalidated during processing.

Returns:
true if Job is valid


setValid

public void setValid(boolean ok)
Flag allowing job to be invalidated during processing.

Parameters:
ok, - set to false invalidates this job


getScriptName

public java.lang.String getScriptName()
Name of the Run Script for this job.

Returns:
scriptName


setScriptName

public void setScriptName(java.lang.String sn)
Name of the Run Script for this job.

Parameters:
scriptName -


getName

public java.lang.String getName()
JobName

Returns:
name


setName

public void setName(java.lang.String n)
JobName

Parameters:
name -


setRunSeriesId

public void setRunSeriesId(int lp)
Id of the runSeries on which this Job is based.

Parameters:
id -


getDate

public java.util.Date getDate()
RunDate for the job

Returns:
date


setDate

public void setDate(java.util.Date d)
Sets the RunDate for the job

Parameters:
date -


getLogId

public int getLogId()
Id of the logfile for this job.

Returns:
id


getRunSeries

public RunSeries getRunSeries()
Return the runSeries on which this Job is based.


setRunSeries

public void setRunSeries(ResultSearchPattern pattern)
Sets the runSeries on which this Job is based.


delete

public void delete()
Removes record of this job from the database and deletes the run script if possible.