class documentation

class DummyProcess: (source)

View In Hierarchy

An incomplete and fake IProcessTransport implementation for testing how ProcessMonitor behaves when its monitored processes exit.

Method __init__ Undocumented
Method processEnded Deliver the process ended event to self.proto.
Method signalProcess A partial implementation of signalProcess which can only handle TERM and KILL signals.
Instance Variable pid Undocumented
Instance Variable proto Undocumented
Instance Variable _args Undocumented
Instance Variable _childFDs Undocumented
Instance Variable _environment Undocumented
Instance Variable _executable Undocumented
Instance Variable _gid Undocumented
Instance Variable _path Undocumented
Instance Variable _reactor Undocumented
Instance Variable _signalHandler Undocumented
Instance Variable _terminationDelay the delay in seconds after which the DummyProcess will appear to exit when it receives a TERM signal
Instance Variable _uid Undocumented
Instance Variable _usePTY Undocumented
def __init__(self, reactor, executable, args, environment, path, proto, uid=None, gid=None, usePTY=0, childFDs=None): (source)

Undocumented

def processEnded(self, status): (source)

Deliver the process ended event to self.proto.

def signalProcess(self, signalID): (source)

A partial implementation of signalProcess which can only handle TERM and KILL signals.

  • When a TERM signal is given, the dummy process will appear to exit after DummyProcess._terminationDelay seconds with exit code 0
  • When a KILL signal is given, the dummy process will appear to exit immediately with exit code 1.
Parameters
signalID:strThe signal name or number to be issued to the process.

Undocumented

Undocumented

Undocumented

_childFDs = (source)

Undocumented

_environment = (source)

Undocumented

_executable = (source)

Undocumented

Undocumented

Undocumented

_reactor = (source)

Undocumented

_signalHandler = (source)

Undocumented

_terminationDelay: int = (source)

the delay in seconds after which the DummyProcess will appear to exit when it receives a TERM signal

Undocumented

Undocumented