hsh :: jobs :: JobManager :: Class JobManager
[hide private]
[frames] | no frames]

Class JobManager

object --+
         |
        JobManager

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
register_listener(self, listener)
 
unregister_listener(self, listener)
 
create_job(self, command, start)
Create a new job from a command object and return it.
 
load_job(self, datadir)
 
forget_job(self, job)
Forget the job from disk.
 
get_job(self, jobid)
Fetch the job with the given id, or None if there's no job with that id.
 
get_prev_job(self, jobid)
Given a job object, return the job immediately before it, or None if it's the first job.
 
get_last_job(self)
 
get_jobid_list(self)
Return a list of all jobids as strings.
 
terminate(self)
Called when the program is exiting, so that the manager can clean up.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

create_job(self, command, start)

 

Create a new job from a command object and return it. Start the job if requested.