Package elisa :: Package core :: Package utils :: Module process_observer :: Class ProcessObserver

Class ProcessObserver

source code


This is a very simple Process Observer. It is a ProcessProtocol for twisted. The ProcessObserver is simply calling its deferred, when the Process ended. This does not necessarly mean, that the program is not running anymore but it has detachted from the console.

The result of the callback is 0, if the process terminated smoothly or 1 if it had another termination value.

# FIXME: a bit more enhanced: use callback and errback?

Instance Methods
 
__init__(self) source code
 
reset(self) source code
 
processEnded(self, status)
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

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

Method Details

processEnded(self, status)

source code 

This will be called when the subprocess is finished.

Overrides: twisted.internet.protocol.ProcessProtocol.processEnded
(inherited documentation)