Module VRED_backEnd :: Class VRED_BackEnd
[hide private]
[frames] | no frames]

Class VRED_BackEnd

source code


A backend for a jobtype that runs an instance of VRED in a child process.

This will allow the VRED session to persist for the duration of the subjob.

Instance Methods [hide private]
tuple ([childArgs], [pyInitCmds])
getSubprocessArgs(self, port)
Get the arguments to start the child python process.
source code
str
generateChildBootstrapper(self, port)
Returns: Return the path to the newly-created file
source code

Inherited from qb.backend.pythonChildBackEnd.PythonChildBackEnd: __init__, executeWork, initPyCmdDispatcher, jobSetup, jobTeardown

Inherited from qb.backend.pythonBackEnd.PythonQubeBackEnd: getLogData, hasJobPhaseCmds, logHandler, parseLogData, printClassInfo, updateResultPackage, validateOutputFileSize

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

Class Variables [hide private]

Inherited from qb.backend.pythonChildBackEnd.PythonChildBackEnd: DEFAULT_PYTHON

Inherited from qb.backend.pythonBackEnd.PythonQubeBackEnd: LOGREAD_TIME_THRESHOLD, QB_WAITING_TIMEOUT

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getSubprocessArgs(self, port)

source code 

Get the arguments to start the child python process.

Parameters:
  • port (int) - the port on which the PyCmdDispatcher's backchannel instance is listening, usually passed as a parameter to the child_bootstrapper.py script which starts up the pyCmdExecutor inside child process started by the PyCmdDispatcher
Returns: tuple ([childArgs], [pyInitCmds])
Return a tuple of a list of args to start the python interpreter, and a list of python commands to initialize the python working environment.
Raises:
  • NotImplementedError - Raised when this method is not overridden in a derived class.
Overrides: qb.backend.pythonChildBackEnd.PythonChildBackEnd.getSubprocessArgs

generateChildBootstrapper(self, port)

source code 

This is only overridden if a 3rd-party application which will be started cannot use the standard child_bootstrapper.py script. This can happen if the 3rd-party app doesn't support passing arguments to the bootstrapper.

Parameters:
  • port (int) - the port on which the PyCmdDispatcher's backchannel instance is listening, usually passed as a parameter to the child_bootstrapper.py script which starts up the pyCmdExecutor inside child process started by the PyCmdDispatcher
Returns: str
Return the path to the newly-created file
Overrides: qb.backend.pythonChildBackEnd.PythonChildBackEnd.generateChildBootstrapper