twisted.application.runner._runnerView Source (View In Hierarchy)
Twisted application runner.
|Method||run||Run this command.|
|Class Variable||_log||The logger attached to this class. (type:
|Instance Variable||_reactor||The reactor to start and run the application in. (type:
|Instance Variable||_pidFile||The file to store the running process ID in. (type: callable that takes a single writable file-like object argument and returns
|Instance Variable||_kill||Whether this runner should kill an existing running instance of the
|Instance Variable||_defaultLogLevel||The default log level to start the logging system with. (type:
|Instance Variable||_logFile||A file stream to write logging output to. (type: writable file-like object)|
|Instance Variable||_fileLogObserverFactory||A factory for the file log observer to use when starting the logging system.|
|Instance Variable||_whenRunning||Hook to call after the reactor is running; this is where the application
code that relies on the reactor gets called. (type: callable that takes the keyword arguments specified by
|Instance Variable||_whenRunningArguments||Keyword arguments to pass to
|Instance Variable||_reactorExited||Hook to call after the reactor exits. (type: callable that takes the keyword arguments specified by
|Instance Variable||_reactorExitedArguments||Keyword arguments to pass to
whenRunningwhen it is called. (type:
reactorExitedwhen it is called. (type:
Run this command.
self._kill is true, attempt to kill a running instance
of the application.
self._whenRunning with the reactor so that it is
called once the reactor is running, then start the reactor.
|Note||This method is called after the reactor starts running.|
|Note||This method is called after the reactor exits.|