c.b.s.XMLRPCBuildDSlave(xmlrpc.XMLRPC) : class documentation

Part of canonical.buildd.slave View In Hierarchy

XMLRPC build daemon slave management interface
Method __init__ Undocumented
Method registerBuilder Undocumented
Method xmlrpc_echo Echo the argument back.
Method xmlrpc_info Return the protocol version and the builder methods supported.
Method xmlrpc_status Return the status of the build daemon.
Method status_IDLE Handler for xmlrpc_status IDLE.
Method status_BUILDING Handler for xmlrpc_status BUILDING.
Method status_WAITING Handler for xmlrpc_status WAITING.
Method status_ABORTED Handler for xmlrpc_status ABORTED.
Method status_ABORTING Handler for xmlrpc_status ABORTING.
Method xmlrpc_ensurepresent Attempt to ensure the given file is present.
Method xmlrpc_abort Abort the current build.
Method xmlrpc_clean Clean up the waiting files and reset the slave's internal state.
Method xmlrpc_build Check if requested arguments are sane and initiate build procedure
def __init__(self, config):
Undocumented
def registerBuilder(self, builderclass, buildertag):
Undocumented
def xmlrpc_echo(self, *args):
Echo the argument back.
def xmlrpc_info(self):
Return the protocol version and the builder methods supported.
def xmlrpc_status(self):
Return the status of the build daemon.

Depending on the builder status we return differing amounts of data. We do however always return the builder status as the first value.

def status_IDLE(self):
Handler for xmlrpc_status IDLE.

Returns a tuple containing a empty string since there's nothing to report.

def status_BUILDING(self):
Handler for xmlrpc_status BUILDING.

Returns the build id and up to one kilobyte of log tail

def status_WAITING(self):
Handler for xmlrpc_status WAITING.

Returns the build id and the set of files waiting to be returned unless the builder failed in which case we return the buildstatus and the build id but no file set.

def status_ABORTED(self):
Handler for xmlrpc_status ABORTED.

The only action the master can take is clean, other than ask status, of course, it returns the build id only.

def status_ABORTING(self):
Handler for xmlrpc_status ABORTING.

This state means the builder performing the ABORT command and is not able to do anything else than answer its status, returns the build id only.

def xmlrpc_ensurepresent(self, sha1sum, url, username, password):
Attempt to ensure the given file is present.
def xmlrpc_abort(self):
Abort the current build.
def xmlrpc_clean(self):
Clean up the waiting files and reset the slave's internal state.
def xmlrpc_build(self, buildid, builder, chrootsum, filemap, args):
Check if requested arguments are sane and initiate build procedure

return a tuple containing: (<builder_status>, <info>)

API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.