EventManager

class tenjint.event.EventManager[source]

tenjint’s event manager.

The event manager is the main component of the event system. It is responsible for getting events from QEMU and to distpatch them within the system. In addition, the event manager allows us to request callbacks for certain events or to publish our own events within the system. See request_event() and put_event() for details respectively.

Methods

EventManager.__init__()

Initialize self.

EventManager.add_continue_hook(callback_func)

Add a continue hook.

EventManager.cancel_event(callback)

Cancel an event request.

EventManager.get_event_cls(event_key)

EventManager.get_registered_events()

Get all events that the event manager is aware of.

EventManager.put_event(event)

Publish an event in the system.

EventManager.register(plugin)

Register a plugin with the event manager.

EventManager.remove_continue_hook(callback_func)

Remove a continue hook.

EventManager.request_event(callback[, …])

Register an event callback with the event manager.

EventManager.run_loop()

The event managers internal run loop.

EventManager.unregister(plugin)

Unregister a plugin from the event manager.