l.c.c.t.t.CIWorkerMonitorForTesting(CodeImportWorkerMonitor) : class documentation

Part of lp.codehosting.codeimport.tests.test_workermonitor View In Hierarchy

A CodeImportWorkerMonitor that hangs on to the process protocol.
Method _makeProcessProtocol See CodeImportWorkerMonitor._makeProcessProtocol.

Inherited from CodeImportWorkerMonitor:

Method __init__ Construct an instance.
Method getWorkerArguments Get arguments for the worker for the import we are working on.
Method updateHeartbeat Call the updateHeartbeat method for the job we are working on.
Method finishJob Call the finishJobID method for the job we are working on.
Method run Perform the import.
Method callFinishJob Call finishJob() with the appropriate status.
Method _logOopsFromFailure Undocumented
Method _trap_nosuchcodeimportjob Undocumented
Method _createLibrarianFileAlias Call IFileUploadClient.remoteAddFile with the given parameters.
Method _launchProcess Launch the code-import-worker.py child process.
Method _silenceQuietExit Quietly swallow a ExitQuietly failure.
Method _reasonToStatus Translate the 'reason' for process exit into a result status.
def _makeProcessProtocol(self, deferred):
See CodeImportWorkerMonitor._makeProcessProtocol.

We hang on to the constructed object for later inspection -- see TestWorkerMonitorIntegration.assertImported.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.