Package Jobber :: Module jobs :: Class ShellCommandJob
[hide private]
[frames] | no frames]

Class ShellCommandJob

source code

Products.ZenModel.ZenModelRM.ZenModelRM --+    
                                          |    
                                        Job --+
                                              |
                                             ShellCommandJob

Instance Methods [hide private]
 
__init__(self, jobid, cmd)
Initialization method.
source code
 
getDescription(self) source code
 
run(self, r)
Should call self.finished(results) when done, where results is one of SUCCESS, FAILURE.
source code
 
interrupt(self)
Halt the job, for whatever reason.
source code

Inherited from Job: finished, getJobType, getStatus, getUid, start

Class Variables [hide private]
  _v_process = None
  pid = 0

Inherited from Job (private): _relations

Method Details [hide private]

__init__(self, jobid, cmd)
(Constructor)

source code 
Initialization method.
Parameters:
  • cmd (list or string) - The command that will be run by the job.

getDescription(self)

source code 
Overrides: Job.getDescription

run(self, r)

source code 
Should call self.finished(results) when done, where results is one of SUCCESS, FAILURE.
Overrides: Job.run
(inherited documentation)

interrupt(self)

source code 

Halt the job, for whatever reason.

This will almost certainly be implemented differently in various subclasses.
Overrides: Job.interrupt
(inherited documentation)