class documentation
class Runner: (source)
Twisted application runner.
| Method | kill |
If self._kill is true, attempt to kill a running instance of the application. |
| Method | reactor |
Call self._reactorExited with self._reactorExitedArguments. |
| Method | run |
Run this command. |
| Method | start |
Start the twisted.logger logging system. |
| Method | start |
Register self._whenRunning with the reactor so that it is called once the reactor is running, then start the reactor. |
| Method | when |
Call self._whenRunning with self._whenRunningArguments. |
| Class Variable | _log |
The logger attached to this class. |
| Instance Variable | _default |
The default log level to start the logging system with. |
| Instance Variable | _file |
A factory for the file log observer to use when starting the logging system. |
| Instance Variable | _kill |
Whether this runner should kill an existing running instance of the application. |
| Instance Variable | _log |
A file stream to write logging output to. |
| Instance Variable | _pid |
The file to store the running process ID in. |
| Instance Variable | _reactor |
The reactor to start and run the application in. |
| Instance Variable | _reactor |
Hook to call after the reactor exits. |
| Instance Variable | _reactor |
Keyword arguments to pass to reactorExited when it is called. |
| Instance Variable | _when |
Hook to call after the reactor is running; this is where the application code that relies on the reactor gets called. |
| Instance Variable | _when |
Keyword arguments to pass to whenRunning when it is called. |
Call self._reactorExited with self._reactorExitedArguments.
| Note | |
| This method is called after the reactor exits. |
Register self._whenRunning with the reactor so that it is called once the reactor is running, then start the reactor.
Call self._whenRunning with self._whenRunningArguments.
| Note | |
| This method is called after the reactor starts running. |