marathon-bigip-ctlr.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:marathon-bigip-ctlr 作者: F5Networks 项目源码 文件源码
def __init__(self, marathon, verify_interval, cccls):
        """Class init.

        Starts a thread that waits for Marathon events,
        then configures BIG-IP based on the Marathon state
        """
        self.__marathon = marathon
        # appId -> MarathonApp
        self.__apps = dict()
        self.__cccls = cccls
        self.__verify_interval = verify_interval

        self.__condition = threading.Condition()
        self.__thread = threading.Thread(target=self.do_reset)
        self.__pending_reset = False
        self.__thread.daemon = True
        self.__thread.start()
        self.__timer = None
        self._backoff_timer = 1
        self._max_backoff_time = 128

        # Fetch the base data
        self.reset_from_tasks()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号