def __init__(self): threading.Thread.__init__(self) Config.initialize_config() self.__tenant_context_initialized = False self.__log_publish_manager = None self.__terminated = False self.__log = LogFactory().get_log(__name__) mb_ip = Config.read_property(constants.MB_IP) mb_port = Config.read_property(constants.MB_PORT) mb_username = Config.read_property(constants.MB_USERNAME, False) mb_password = Config.read_property(constants.MB_PASSWORD, False) self.__inst_topic_subscriber = \ EventSubscriber(constants.INSTANCE_NOTIFIER_TOPIC, mb_ip, mb_port, mb_username, mb_password) self.__tenant_topic_subscriber = \ EventSubscriber(constants.TENANT_TOPIC, mb_ip, mb_port, mb_username, mb_password) self.__app_topic_subscriber = \ EventSubscriber(constants.APPLICATION_SIGNUP, mb_ip, mb_port, mb_username, mb_password) self.__topology_event_subscriber = \ EventSubscriber(constants.TOPOLOGY_TOPIC, mb_ip, mb_port, mb_username, mb_password) self.__event_handler = EventHandler()
def __init__(self): Config.initialize_config() self.__terminated = False self.__log = LogFactory().get_log(__name__) mb_urls = Config.mb_urls.split(",") mb_uname = Config.mb_username mb_pwd = Config.mb_password self.__inst_topic_subscriber = EventSubscriber(constants.INSTANCE_NOTIFIER_TOPIC, mb_urls, mb_uname, mb_pwd) self.__tenant_topic_subscriber = EventSubscriber(constants.TENANT_TOPIC, mb_urls, mb_uname, mb_pwd) self.__app_topic_subscriber = EventSubscriber(constants.APPLICATION_SIGNUP, mb_urls, mb_uname, mb_pwd) self.__topology_event_subscriber = EventSubscriber(constants.TOPOLOGY_TOPIC, mb_urls, mb_uname, mb_pwd)