blob: 43afba7bba98f320aa0b6eabf73e68b562dd7018 [file] [log] [blame]
Tony Mack79a49c82013-06-15 23:51:57 -04001import threading
Tony Mack79a49c82013-06-15 23:51:57 -04002from openstack.observer import OpenStackObserver
3from openstack.event_listener import EventListener
4
5class Backend:
6
7 def run(self):
8 # start the openstack observer
9 observer = OpenStackObserver()
10 observer_thread = threading.Thread(target=observer.run)
11 observer_thread.start()
12
13 # start event listene
14 event_listener = EventListener()
15 event_listener_thread = threading.Thread(target=event_listener.run)
16 event_listener_thread.start()
17