l.c.p.s.PullerMaster : class documentation

Part of lp.codehosting.puller.scheduler View In Hierarchy

Controller for a single puller worker.

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
def __init__(self, branch_id, source_url, unique_name, branch_type_name, default_stacked_on_url, logger, client):
Construct a PullerMaster object.
Parametersbranch_idThe database ID of the branch to be mirrored.
source_urlThe location from which the branch is to be mirrored.
unique_nameThe unique name of the branch to be mirrored.
branch_type_nameThe name of the BranchType of the branch to be mirrored (e.g. 'MIRRORED').
default_stacked_on_urlThe default stacked-on URL for the product that the branch is in. '' implies that there is no such default.
loggerA Python logging object.
clientAn asynchronous client for the branch status XML-RPC service.
def mirror(self):
Spawn a worker process to mirror a branch.
def run(self):
Launch a child worker and mirror a branch, handling errors.

This is the main method to call to mirror a branch.

ReturnsA 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).
def startMirroring(self):
Undocumented
def mirrorFailed(self, reason, oops):
Undocumented
def branchChanged(self, stacked_on_url, revid_before, revid_after, control_string, branch_string, repository_string):
Undocumented
def log(self, message):
Undocumented
def unexpectedError(self, failure):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.