| Trees | Indices | Help |
|
|---|
|
|
The PyCmdExecutor class is used by qube loadOnce python jobtypes. It is tightly coupled to the PyCmdDispatcher class; the 2 classes are server/client relations.
A PyCmdExecutor object is instantiated by the child process and is responsible for executing commands sent from the PyCmdDispatcher over stdin. It is normally instantiated inside a child bootstrapper script.
Initialize 2 empty dicts to serve as the locals() and globals() for
the exec statement used to execute the command.
Note: The definition of failure is not a boolean result of the command executed, it is the inability of the PyCmdExecutor object to actually execute the command without raising an exception.
|
|||
|
|||
str
|
|
||
| str |
|
||
|
|||
| NoneType or int |
|
||
| int |
|
||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Function to set up members of the class.
|
Initialize an xdrlib.Packer instance for internal use by the class member. The packer instance is accessed via the self.packer attribute.
|
Determine the string that is printed prior to echoing out to stdout the command about to be run.
|
Write a message via a PFXSimpleClient to the pyCmdDispatcher sending this instance commands. Successful execution results in the integer 0, packed into 4 bytes, being sent with no other message behind it. Failure, defined as any command which raises an uncaught exception, results in the traceback from the exception being sent, preceded by the packed messageLength.
|
Most exceptions raised by the failure of
|
Main loop of the PyCmdExecutor. Responsible solely for reading commands to execute over stdin. Successful execution results in a zero integer being passed back to the the PyCmdDispatcher via the PFXClient instance (the backChannel). Unsuccessful commands result in an error message of some sort being returned via the backChannel. The traceback generated by the failure to execute the command is what gets written to the backChannel.
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Apr 17 10:45:11 2017 | http://epydoc.sourceforge.net |