Exemple #1
0
 def add_proxy_log(proxy_log):
     Tables.FILE_LOGS.append(proxy_log)
     proxy_client = ProxyClient("", proxy_log.ip, proxy_log.port)
     Globals.add_proxy_client(proxy_client)
     Tables.TABLE_PROXY_INFO[(
         proxy_log.ip, proxy_log.port
     )] = True if proxy_log.operation == raft_proto.Available else False
Exemple #2
0
 def init_proxies(lst_proxies):
     for ip, port in lst_proxies:
         proxy_client = ProxyClient("", ip, port)
         Globals.add_proxy_client(proxy_client)
         Tables.TABLE_PROXY_INFO[(ip, port)] = True