dragonflow/dragonflow/cmd
Shachar Snapiri d1050491cd Separate db_change_logic loop from nb_api
To be able to handle pubsub events (namely through db_change_callback)
the nb_api forced the user to call the process_changes() method which is
a blocking loop.
This is unusable for applications that do other things or have event
loops of their own.
In this patch this logic was moved to the local_controller as it is
specific to this use-case, and now the nb_api exposes a
register_db_change_callback method for this use case.
As a result of this change, there is no need to use the is_external_app
flag, as all it does is makes sure the subscriber is not initialized,
which happens now if the register_db_change_callback is not called.

Change-Id: I2b02fde8018f0ac209175beadf75bbb20a6480d6
2018-05-03 14:51:58 +00:00
..
eventlet Separate db_change_logic loop from nb_api 2018-05-03 14:51:58 +00:00
__init__.py Implement Guru meditation reports 2016-06-08 15:59:44 +08:00
df_skydive_service.py Separate db_change_logic loop from nb_api 2018-05-03 14:51:58 +00:00