class documentation

class MemoryReactorClock(MemoryReactor, Clock): (source)

View In Hierarchy

Undocumented

Method __init__ Initialize the tracking lists.

Inherited from MemoryReactor:

Method add​Reader Fake IReactorFDSet.addReader which adds the reader to a local set.
Method add​System​Event​Trigger Fake IReactorCore.run. Keep track of trigger by appending it to self.triggers[phase][eventType].
Method add​Writer Fake IReactorFDSet.addWriter which adds the writer to a local set.
Method adopt​Datagram​Port Fake IReactorSocket.adoptDatagramPort, that logs the call and returns a fake IListeningPort.
Method adopt​Stream​Connection Record the given stream connection in adoptedStreamConnections.
Method adopt​Stream​Port Fake IReactorSocket.adoptStreamPort, that logs the call and returns an IListeningPort.
Method call​When​Running Fake IReactorCore.callWhenRunning. Keeps a list of invocations to make in self.whenRunningHooks.
Method connect​SSL Fake IReactorSSL.connectSSL, that logs the call and returns an IConnector.
Method connect​TCP Fake IReactorTCP.connectTCP, that logs the call and returns an IConnector.
Method connect​UNIX Fake IReactorUNIX.connectUNIX, that logs the call and returns an IConnector.
Method crash Fake IReactorCore.crash. Sets self.running to None, because that feels crashy. Sets self.hasCrashed to True.
Method fire​System​Event Not implemented; raises NotImplementedError.
Method get​Readers Fake IReactorFDSet.getReaders which returns a list of readers from the local set.
Method get​Writers Fake IReactorFDSet.getWriters which returns a list of writers from the local set.
Method install Fake install callable to emulate reactor module installation.
Method iterate Not implemented; raises NotImplementedError.
Method listen​SSL Fake IReactorSSL.listenSSL, that logs the call and returns an IListeningPort.
Method listen​TCP Fake IReactorTCP.listenTCP, that logs the call and returns an IListeningPort.
Method listen​UNIX Fake IReactorUNIX.listenUNIX, that logs the call and returns an IListeningPort.
Method remove​All Fake IReactorFDSet.removeAll which removed all readers and writers from the local sets.
Method remove​Reader Fake IReactorFDSet.removeReader which removes the reader from a local set.
Method remove​System​Event​Trigger Not implemented; raises NotImplementedError.
Method remove​Writer Fake IReactorFDSet.removeWriter which removes the writer from a local set.
Method resolve Not implemented; raises NotImplementedError.
Method run No summary
Method stop Fake IReactorCore.run. Sets self.running to False. Sets self.hasStopped to True.
Instance Variable adopted​Ports Keeps track of server listen attempts (ie, calls to adoptStreamPort).
Instance Variable adopted​Stream​Connections Keeps track of stream-oriented connections added using adoptStreamConnection.
Instance Variable connectors Undocumented
Instance Variable has​Crashed Keeps track of whether this reactor has crashed.
Instance Variable has​Installed Keeps track of whether this reactor has been installed.
Instance Variable has​Run Undocumented
Instance Variable has​Stopped Keeps track of whether this reactor has been stopped.
Instance Variable readers Undocumented
Instance Variable running Keeps track of whether this reactor is running.
Instance Variable ssl​Clients Keeps track of connection attempts (ie, calls to connectSSL).
Instance Variable ssl​Servers Keeps track of server listen attempts (ie, calls to listenSSL).
Instance Variable tcp​Clients Keeps track of connection attempts (ie, calls to connectTCP).
Instance Variable tcp​Servers Keeps track of server listen attempts (ie, calls to listenTCP).
Instance Variable triggers Keeps track of hooks registered with addSystemEventTrigger.
Instance Variable unix​Clients Keeps track of connection attempts (ie, calls to connectUNIX).
Instance Variable unix​Servers Keeps track of server listen attempts (ie, calls to listenUNIX).
Instance Variable when​Running​Hooks Keeps track of hooks registered with callWhenRunning.
Instance Variable writers Undocumented

Inherited from Clock:

Method advance Move time on this clock forward by the given amount and run whatever pending calls should be run.
Method call​Later See twisted.internet.interfaces.IReactorTime.callLater.
Method get​Delayed​Calls See twisted.internet.interfaces.IReactorTime.getDelayedCalls
Method pump Advance incrementally by the given set of times.
Method seconds Pretend to be time.time(). This is used internally when an operation such as IDelayedCall.reset needs to determine a time value relative to the current time.
Class Variable right​Now Undocumented
Instance Variable calls Undocumented
Method _sort​Calls Sort the pending calls according to the time they are scheduled.
def __init__(self): (source)
Initialize the tracking lists.