class documentation

class _BackRelay(protocol.ProcessProtocol): (source)

View In Hierarchy

Trivial protocol for communicating with a process and turning its output into the result of a Deferred.
Method __init__ Undocumented
Method err​Received​Is​Bad Undocumented
Method err​Received​Is​Good Undocumented
Method out​Received Some data was received from stdout.
Method process​Ended Called when the child process exits and all file descriptors associated with it have been closed.
Instance Variable deferred A Deferred which will be called back with all of stdout and, if errortoo is true, all of stderr as well (mixed together in one string). If errortoo is false and any bytes are received over stderr, this will fire with an _UnexpectedErrorOutput instance and the attribute will be set to None.
Instance Variable on​Process​Ended If errortoo is false and bytes are received over stderr, this attribute will refer to a Deferred which will be called back when the process ends. This Deferred is also associated with the _UnexpectedErrorOutput which deferred fires with earlier in this case so that users can determine when the process has actually ended, in addition to knowing when bytes have been received via stderr.
Instance Variable s Undocumented

Inherited from ProcessProtocol:

Method child​Connection​Lost Called when a file descriptor associated with the child process is closed.
Method child​Data​Received Called when data arrives from the child process.
Method err​Connection​Lost This will be called when stderr is closed.
Method err​Received Some data was received from stderr.
Method in​Connection​Lost This will be called when stdin is closed.
Method out​Connection​Lost This will be called when stdout is closed.
Method process​Exited This will be called when the subprocess exits.

Inherited from BaseProtocol (via ProcessProtocol):

Method connection​Made Called when a connection is made.
Method make​Connection Make a connection to a transport and a server.
Instance Variable connected Undocumented
Instance Variable transport Undocumented
def __init__(self, deferred, errortoo=0): (source)

Undocumented

def errReceivedIsBad(self, text): (source)

Undocumented

def errReceivedIsGood(self, text): (source)

Undocumented

def outReceived(self, text): (source)
Some data was received from stdout.
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
deferred = (source)
A Deferred which will be called back with all of stdout and, if errortoo is true, all of stderr as well (mixed together in one string). If errortoo is false and any bytes are received over stderr, this will fire with an _UnexpectedErrorOutput instance and the attribute will be set to None.
onProcessEnded = (source)
If errortoo is false and bytes are received over stderr, this attribute will refer to a Deferred which will be called back when the process ends. This Deferred is also associated with the _UnexpectedErrorOutput which deferred fires with earlier in this case so that users can determine when the process has actually ended, in addition to knowing when bytes have been received via stderr.

Undocumented