class documentation

class CountingReactor(MemoryReactorClock): (source)

Implements interfaces: twisted.internet.interfaces.IReactorProcess

View In Hierarchy

A fake reactor that counts the calls to IReactorCore.run, IReactorCore.stop, and IReactorProcess.spawnProcess.

Method __init__ Undocumented
Method run See IReactorCore.run.
Method spawnProcess See IReactorProcess.spawnProcess.
Method stop See IReactorCore.stop.
Class Variable runCount Undocumented
Class Variable spawnCount Undocumented
Class Variable stopCount Undocumented
Instance Variable hasRun Undocumented
Instance Variable running Undocumented
Instance Variable _workers Undocumented
def __init__(self, workers): (source)

Undocumented

def spawnProcess(self, workerProto, executable, args=(), env={}, path=None, uid=None, gid=None, usePTY=0, childFDs=None): (source)

See IReactorProcess.spawnProcess.

Parameters
workerProtoSee IReactorProcess.spawnProcess.
executableUndocumented
argsSee IReactorProcess.spawnProcess.
envUndocumented
pathUndocumented
uidUndocumented
gidUndocumented
usePTYUndocumented
childFDsUndocumented
kwargsSee IReactorProcess.spawnProcess.
runCount: int = (source)

Undocumented

spawnCount: int = (source)

Undocumented

stopCount: int = (source)

Undocumented

Undocumented

Undocumented

_workers = (source)

Undocumented