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

Class Job

object --+
         |
        Job
Known Subclasses:

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
_set_command(self, cmd_args, cmdline, directives, state)
Set various members for the given command info.
 
_set_directives(self)
When directives_in and directives_default are set, use this to set directives.
 
start(self)
 
_write_job_context(self)
 
_write_job_state(self)
 
_write_params(self, name, attrs)
 
_load_params(self, name, attrs)
 
get_retcode(self)
 
get_state(self)
 
get_output(self)
 
can_send_input(self)
 
get_directives(self)
 
send_input(self, inp)
Send the provided text as input to the job.
 
close_input(self)
Close the input stream to this job.
 
register_listener(self, listener)
 
unregister_listener(self, listener)

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

Class Methods [hide private]
 
create_job(cls, cmd, cmdline, directives, state='NotRun')
Return a new job object created from the given command.
Static Methods [hide private]
 
load_job(datadir)
Return a new job object loaded from the given directory.
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)

send_input(self, inp)

 

Send the provided text as input to the job. Jobs which can accept input will implement this.

close_input(self)

 

Close the input stream to this job. Job subclasses may implement this.