Package Products :: Package ZenRRD :: Module zencommand :: Class ProcessRunner |
[hide private]
[frames] | no frames]

# Class ProcessRunner

source code

    twisted.internet.protocol.BaseProtocol --+
                                             |
     twisted.internet.protocol.ProcessProtocol --+
                                                 |
                                                ProcessRunner

Provide deferred process execution for a *single* command

Instance Methods | [hide private]
start(self, cmd) Kick off the process: run it local | source code
timeout(self, value) Kill a process gracefully if it takes too long | source code
_reap(self) Kill a process forcefully if it takes too long | source code
outReceived(self, data) Store up the output as it arrives from the process | source code
errReceived(self, data) Store up the output as it arrives from the process | source code
processEnded(self, reason) Notify the starter that their process is complete | source code
Inherited from `twisted.internet.protocol.ProcessProtocol`: `childConnectionLost`, `childDataReceived`, `errConnectionLost`, `inConnectionLost`, `outConnectionLost`, `processExited` Inherited from `twisted.internet.protocol.BaseProtocol`: `connectionMade`, `makeConnection`

Class Variables | [hide private]
| stopped = `None`
| exitCode = `None`
| output = `''`
| stderr = `''`
Inherited from `twisted.internet.protocol.BaseProtocol`: `connected`, `transport`

Method Details | [hide private]

### outReceived(self, data) | source code
Store up the output as it arrives from the process Overrides: twisted.internet.protocol.ProcessProtocol.outReceived

### errReceived(self, data) | source code
Store up the output as it arrives from the process Overrides: twisted.internet.protocol.ProcessProtocol.errReceived

### processEnded(self, reason) | source code
Notify the starter that their process is complete Overrides: twisted.internet.protocol.ProcessProtocol.processEnded