Package Products :: Package ZenUtils :: Module ProcessQueue :: Class _ProcessQueueProtocol
[hide private]
[frames] | no frames]

Class _ProcessQueueProtocol

source code

twisted.internet.protocol.BaseProtocol --+    
                                         |    
 twisted.internet.protocol.ProcessProtocol --+
                                             |
                                            _ProcessQueueProtocol
Known Subclasses:

For interal use by ProcessQueue Protocol to run processes in ProcessQueue. Controls life cycle or process including timing out long running processes

Instance Methods [hide private]
 
__init__(self, executable, args=(), env={}, path=None, uid=None, gid=None, usePTY=0, childFDs=None, timeout=60, timeout_callback=None) source code
 
__str__(self) source code
 
start(self) source code
 
_timedOut(self, value)
Kill a process if it takes too long
source code
 
processEnded(self, reason)
This will be called when the subprocess is finished.
source code

Inherited from twisted.internet.protocol.ProcessProtocol: childConnectionLost, childDataReceived, errConnectionLost, errReceived, inConnectionLost, outConnectionLost, outReceived, processExited

Inherited from twisted.internet.protocol.BaseProtocol: connectionMade, makeConnection

Class Variables [hide private]

Inherited from twisted.internet.protocol.BaseProtocol: connected, transport

Method Details [hide private]

processEnded(self, reason)

source code 

This will be called when the subprocess is finished.

Parameters:
  • reason (twisted.python.failure.Failure)
Overrides: twisted.internet.protocol.ProcessProtocol.processEnded