Controller ========== Extend the :class:`Controller ` class with your own application implementing the :meth:`Controller.process ` method. If you do not want to use sleep based looping but rather an IOLoop or some other long-lived blocking loop, redefine the :meth:`Controller.run ` method. :class:`Controller ` maintains an internal state which is handy for ensuring the proper things are happening at the proper times. The following are the constants used for state transitions: - :attr:`Initializing ` - :attr:`Active ` - :attr:`Idle ` - :attr:`Sleeping ` - :attr:`Stop Requested ` - :attr:`Stopping ` - :attr:`Stopped ` When extending :class:`Controller `, if your class requires initialization or setup setups, extend the :meth:`Controller.setup ` method. If your application requires cleanup steps prior to stopping, extend the :meth:`Controller.cleanup ` method. .. autoclass:: helper.Controller :members: :undoc-members: