Esempio n. 1
0
 def cycleInspect(self):
     if len(IGeTui.serviceMap[self.appKey]) == 0:
         raise ValueError("can't get fastest host from empty list")
     else:
         t = threading.Timer(GtConfig.getHttpInspectInterval(), self.getFastUrl)
         t.setDaemon(True)
         t.start()
Esempio n. 2
0
 def cycleInspect(self):
     if len(IGeTui.serviceMap[self.appKey]) == 0:
         raise ValueError("can't get fastest host from empty list")
     else:
         t = threading.Timer(GtConfig.getHttpInspectInterval(), self.getFastUrl)
         t.setDaemon(True)
         t.start()