Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

PendingJob Class Reference

Collaboration diagram for PendingJob:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

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

Definition at line 30 of file PendingJob.java.


Public Member Functions

boolean isValid ()
void setValid (boolean ok)
String getScriptName ()
void setScriptName (String sn)
String getName ()
void setName (String n)
void setRunSeriesId (int lp)
Date getDate ()
void setDate (Date d)
int getLogId ()
RunSeries getRunSeries ()
void setRunSeries (ResultSearchPattern pattern)
 PendingJob (int newlogId) throws JetWebException
void delete ()

Private Attributes

int runSeriesId = -1
String scriptName
String name
Date date
boolean valid
RunSeries runSeries
int logId

Constructor & Destructor Documentation

PendingJob int  newlogId  )  throws JetWebException
 

Constructor taking an Id for the Logfile for this Job.

Parameters:
newlogId 

Definition at line 126 of file PendingJob.java.

00126                                                            {
00127     logId = newlogId;
00128     DBJobManager.selectFromDB(this);
00129 
00130     if (runSeriesId>0 && valid) {
00131         runSeries = new RunSeries(runSeriesId);
00132     }
00133 
00134     }


Member Function Documentation

void delete  ) 
 

Removes record of this job from the database and deletes the run script if possible.

Definition at line 140 of file PendingJob.java.

00140                         {
00141 
00142     //DBFitManager.delete(this);
00143     
00144     File script = new File(scriptName);
00145     if (script.exists()){ script.delete(); }
00146 
00147     }

Date getDate  ) 
 

RunDate for the job

Returns:
date

Definition at line 98 of file PendingJob.java.

Referenced by HTMLWriter.listPendingJobs().

00098 { return date; }

int getLogId  ) 
 

Id of the logfile for this job.

Returns:
id

Definition at line 112 of file PendingJob.java.

00112 {return logId; }

String getName  ) 
 

JobName

Returns:
name

Definition at line 75 of file PendingJob.java.

Referenced by HTMLWriter.listPendingJobs(), and JobRequest.setJobName().

00075                             {
00076     return name;
00077     }

RunSeries getRunSeries  ) 
 

Return the runSeries on which this Job is based.

Definition at line 115 of file PendingJob.java.

00115 {return runSeries;}

String getScriptName  ) 
 

Name of the Run Script for this job.

Returns:
scriptName

Definition at line 60 of file PendingJob.java.

Referenced by HTMLWriter.listPendingJobs().

00060                                   {
00061     return scriptName;
00062     }

boolean isValid  ) 
 

Flag allowing job to be invalidated during processing.

Returns:
true if Job is valid

Definition at line 47 of file PendingJob.java.

Referenced by DBJobManager.selectPendingJobs().

00047 { return valid; }

void setDate Date  d  ) 
 

Sets the RunDate for the job

Parameters:
date 

Definition at line 104 of file PendingJob.java.

00104 { date = d; }

void setName String  n  ) 
 

JobName

Parameters:
name 

Definition at line 83 of file PendingJob.java.

00083 { name = n; }

void setRunSeries ResultSearchPattern  pattern  ) 
 

Sets the runSeries on which this Job is based.

Definition at line 117 of file PendingJob.java.

00117                                                          {
00118     runSeries = (RunSeries)pattern;
00119     }

void setRunSeriesId int  lp  ) 
 

Id of the runSeries on which this Job is based.

Parameters:
id 

Definition at line 90 of file PendingJob.java.

00090 { runSeriesId = lp; }

void setScriptName String  sn  ) 
 

Name of the Run Script for this job.

Parameters:
scriptName 

Definition at line 68 of file PendingJob.java.

00068 { scriptName = sn; }

void setValid boolean  ok  ) 
 

Flag allowing job to be invalidated during processing.

Parameters:
ok,set to false invalidates this job

Definition at line 53 of file PendingJob.java.

00053 { valid=ok; }


Member Data Documentation

Date date [private]
 

Definition at line 36 of file PendingJob.java.

int logId [private]
 

Definition at line 106 of file PendingJob.java.

String name [private]
 

Definition at line 35 of file PendingJob.java.

RunSeries runSeries [private]
 

Definition at line 38 of file PendingJob.java.

int runSeriesId = -1 [private]
 

Definition at line 32 of file PendingJob.java.

String scriptName [private]
 

Definition at line 34 of file PendingJob.java.

boolean valid [private]
 

Definition at line 37 of file PendingJob.java.


The documentation for this class was generated from the following file:

Generated Wed Jan 17 09:14:27 GMT 2007