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

Class IJob

source code

zope.interface.Interface --+
                           |
                          IJob

Persistent object that contains the entry-point function for running a job.

Instance Methods [hide private]
 
start()
Begins the job-running process.
source code
 
run()
Contains all job-specific code.
source code
 
finished(results)
Called when the job is finished.
source code
 
interrupt(why)
Halt the running of the job.
source code
 
update(msg)
Set the current status of the running job to msg.
source code
 
getStatus()
Get the IJobStatus associated with this job.
source code
Method Details [hide private]

start()

source code 
Begins the job-running process. Does setup, then calls self.run().

run()

source code 
Contains all job-specific code. This will be overridden in subclasses to provide the ability to run different kinds of jobs.

interrupt(why)

source code 
Halt the running of the job. If necessary, send signals to any subprocesses that are involved in job running.