Part of lp.codehosting.puller.scheduler View In Hierarchy
The PullerMaster
kicks off a child worker process and handles the events
generated by that process.
Method | __init__ | Construct a PullerMaster object. |
Method | mirror | Spawn a worker process to mirror a branch. |
Method | run | Launch a child worker and mirror a branch, handling errors. |
Method | startMirroring | Undocumented |
Method | mirrorFailed | Undocumented |
Method | branchChanged | Undocumented |
Method | log | Undocumented |
Method | unexpectedError | Undocumented |
Parameters | branch_id | The database ID of the branch to be mirrored. |
source_url | The location from which the branch is to be mirrored. | |
unique_name | The unique name of the branch to be mirrored. | |
branch_type_name | The name of the BranchType of the branch to be mirrored (e.g. 'MIRRORED'). | |
default_stacked_on_url | The default stacked-on URL for the product that the branch is in. '' implies that there is no such default. | |
logger | A Python logging object. | |
client | An asynchronous client for the branch status XML-RPC service. |
This is the main method to call to mirror a branch.
Returns | A Deferred that fires when the mirroring job is completed, one way or the other. It will never fire with a failure. The value of the Deferred itself is uninteresting (probably None). |