Part of lp.codehosting.codeimport.tests.test_workermonitor View In Hierarchy
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. |
CodeImportWorkerMonitor._makeProcessProtocol.
We hang on to the constructed object for later inspection -- see
TestWorkerMonitorIntegration.assertImported.