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

Instance Methods | [hide private]
start(self, cmd) Kick off the process: run it local | source code
timeout(self, value) Kill a process if it takes too long | source code
outReceived(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`, `errReceived`, `inConnectionLost`, `outConnectionLost` Inherited from `twisted.internet.protocol.BaseProtocol`: `connectionMade`, `makeConnection`

Class Variables | [hide private]
| stopped = `None`
| exitCode = `None`
| output = `''`
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

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