|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.peace_tools.workspace.JobBase
public abstract class JobBase
This is a common base class that contains fields that are common to both the JobSummary class and the Job class. This class does not have a corresponding element in the XML representation.
Nested Class Summary | |
---|---|
static class |
JobBase.JobStatusType
Different enumerations defining the last known runtime status of a given Job. |
Field Summary | |
---|---|
protected java.lang.String |
jobID
The unique generated jobID value for this job. |
protected javax.xml.datatype.Duration |
runtime
The actual CPU time that the job took to run on the server. |
protected java.lang.String |
serverID
A cross reference to the server on which this Job has been scheduled. |
protected JobBase.JobStatusType |
status
The current runtime status of this job. |
Constructor Summary | |
---|---|
JobBase(JobBase jobData)
A copy constructor to create/initialize a common Job base object using data from an existing job or job summary object. |
|
JobBase(java.lang.String jobID,
java.lang.String serverID)
Constructor to create a common job object with the fixed value fields initialized to specific values. |
Method Summary | |
---|---|
java.lang.String |
getJobID()
Obtain the work space wide unique identifier set for this job. |
long |
getRunTime()
Obtain the wall clock run time for this job. |
java.lang.String |
getServerID()
Obtain the work space wide unique identifier set for the server on which this job is scheduled to run (or was run). |
JobBase.JobStatusType |
getStatus()
Obtain the current status set for this job. |
boolean |
isDone()
Convenience method to determine if job has completed. |
void |
setRunTime(long milliseconds)
This method can be used to explicitly set the actual wall clock time that this job used on the server. |
void |
setStatus(JobBase.JobStatusType status)
Change the status for this job. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String jobID
protected final java.lang.String serverID
protected JobBase.JobStatusType status
protected javax.xml.datatype.Duration runtime
Constructor Detail |
---|
public JobBase(java.lang.String jobID, java.lang.String serverID)
jobID
- The work space-wide unique, generated job ID for this job.
The jobID is generated via a call to JobList.reserveJobID() method.
This is a valid string (typically in the form job####)serverID
- The ID of the server on which this job is running.
This is a cross reference ID of a Server configured in this work space.public JobBase(JobBase jobData)
jobData
- The source job base object from where the data for this
object is to be copied.Method Detail |
---|
public java.lang.String getJobID()
public java.lang.String getServerID()
public void setStatus(JobBase.JobStatusType status)
status
- The new status value to be set for this job.public JobBase.JobStatusType getStatus()
public void setRunTime(long milliseconds)
milliseconds
- The actual wall clock time that this job used on the
server.public long getRunTime()
public boolean isDone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |