c.b.s.RunCapture(protocol.ProcessProtocol) : class documentation

Part of canonical.buildd.slave View In Hierarchy

Run a command and capture its output to a slave's log
Method __init__ Undocumented
Method outReceived Pass on stdout data to the log.
Method errReceived Pass on stderr data to the log.
Method processEnded This method is called when a child process got terminated.
def __init__(self, slave, callback):
Undocumented
def outReceived(self, data):
Pass on stdout data to the log.
def errReceived(self, data):
Pass on stderr data to the log.

With a bit of luck we won't interleave horribly.

def processEnded(self, statusobject):
This method is called when a child process got terminated.

Three actions are required at this point: identify if we are within an "aborting" process, eliminate pending calls to "kill" and invoke the programmed notification callback. We only really care about invoking the notification callback last thing in this method. The order of the rest of the method is not critical.

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