'The main method for the thread.
The controller will be constantly checking a queue
to see if new actions were added.
This will make host addition and removal "thread-safe" and will
avoid locking components that need to interact with the model'

def _main(self):

    while True:
        if (self._stop and (self.active_plugins_count == 0)):
            break
        if ((not self._sync_api_request) and (not self._saving_model_flag)):
            self.processAction()
        else:
            time.sleep(0.01)
