class documentation

class _ShutdownCallbackProcessProtocol(ProcessProtocol): (source)

View In Hierarchy

An IProcessProtocol which fires a Deferred when the process it is associated with ends.

Method __init__ Undocumented
Method childDataReceived Called when data arrives from the child process.
Method processEnded Called when the child process exits and all file descriptors associated with it have been closed.
Instance Variable received A dict mapping file descriptors to lists of bytes received from the child process on those file descriptors.
Instance Variable whenFinished Undocumented

Inherited from ProcessProtocol:

Method childConnectionLost Called when a file descriptor associated with the child process is closed.
Method errConnectionLost This will be called when stderr is closed.
Method errReceived Some data was received from stderr.
Method inConnectionLost This will be called when stdin is closed.
Method outConnectionLost This will be called when stdout is closed.
Method outReceived Some data was received from stdout.
Method processExited This will be called when the subprocess exits.
Class Variable transport Undocumented

Inherited from BaseProtocol (via ProcessProtocol):

Method connectionMade Called when a connection is made.
Method makeConnection Make a connection to a transport and a server.
Instance Variable connected Undocumented
def __init__(self, whenFinished): (source)

Undocumented

def childDataReceived(self, fd, bytes): (source)

Called when data arrives from the child process.

Parameters
fdUndocumented
bytesUndocumented
childFDThe file descriptor from which the data was received.
dataThe data read from the child's file descriptor.
def processEnded(self, reason): (source)

Called when the child process exits and all file descriptors associated with it have been closed.

Parameters
reason:twisted.python.failure.FailureUndocumented
received: dict = (source)

A dict mapping file descriptors to lists of bytes received from the child process on those file descriptors.

whenFinished = (source)

Undocumented