twisted.test.test_twistd.TestApplicationRunner(app.ApplicationRunner)
class documentationtwisted.test.test_twistd
(View In Hierarchy)
An ApplicationRunner which tracks the environment in which its methods are called.
Method | __init__ | Undocumented |
Method | preApplication | Override in subclass. |
Method | postApplication | Override in subclass. |
Inherited from ApplicationRunner:
Instance Variable | config | The config object, which provides a dict-like interface. |
Instance Variable | application | Available in postApplication, but not preApplication. This is the application object. |
Instance Variable | profilerFactory | Factory for creating a profiler object, able to profile the application if options are set accordingly. |
Instance Variable | profiler | Instance provided by profilerFactory . |
Instance Variable | loggerFactory | Factory for creating object responsible for logging. |
Instance Variable | logger | Instance provided by loggerFactory . |
Method | run | Run the application. |
Method | startReactor | Run the reactor with the given configuration. Subclasses should
probably call this from postApplication . |
Method | createOrGetApplication | Create or load an Application based on the parameters found in the given
ServerOptions
instance. |
Override in subclass.
This should set up any state necessary before loading and running the Application.