Package Jobber :: Module interfaces :: Class IJobStatus
[hide private]
[frames] | no frames]

Class IJobStatus

source code

zope.interface.Interface --+
                           |
                          IJobStatus

Contains interesting information about a job, including state, start and finish times, and log file.

Instance Methods [hide private]
 
getJob()
Return the IJob associated with this status object.
source code
 
getTimes()
Returns a (start, end) tuple, indicating when the Job started and finished.
source code
 
getLog()
Return the ILogFile that contains the job output.
source code
 
isFinished()
Return a boolean indicating whether or not the job has finished.
source code
 
waitUntilFinished()
Return a Deferred that will fire when the IJob finishes.
source code
 
getResult()
Return a constant describing the results of the job, from jobs.status: SUCCESS or FAILURE.
source code
Method Details [hide private]

getTimes()

source code 
Returns a (start, end) tuple, indicating when the Job started and finished. If the Job is still running, end will be None.

waitUntilFinished()

source code 
Return a Deferred that will fire when the IJob finishes. If the IJob has finished, this Deferred will fire right away.