Tony Mack | 79a49c8 | 2013-06-15 23:51:57 -0400 | [diff] [blame] | 1 | import threading |
| 2 | from openstack.sliveragent import SliverAgent |
| 3 | from openstack.observer import OpenStackObserver |
| 4 | from openstack.event_listener import EventListener |
| 5 | |
| 6 | class Backend: |
| 7 | |
| 8 | def run(self): |
| 9 | # start the openstack observer |
| 10 | observer = OpenStackObserver() |
| 11 | observer_thread = threading.Thread(target=observer.run) |
| 12 | observer_thread.start() |
| 13 | |
| 14 | # start event listene |
| 15 | event_listener = EventListener() |
| 16 | event_listener_thread = threading.Thread(target=event_listener.run) |
| 17 | event_listener_thread.start() |
| 18 | |