def run(self):
        time.sleep(3)
        ClearTempFiles().clearTempFiles()
        if self.versionInfoProvider is None:
            ILog.getLogger().info("Version info provider is None.")
            return
        ILog.getLogger().info("PyVersionMonitor start...")
        while self.isRunning:
            if time.time() - self.lastShowAlert > IMessageDef.INTERVAL_SECOND_ALERT_UPGRADE:
                reqMsg = self.genRequestMsg()
                rspMsg = HttpClient.requestWidthPost(IMessageDef.BASE_URL, reqMsg)
                if rspMsg is None:
                    continue
                jsonInfo = json.loads(rspMsg)
                if jsonInfo is None:
                    continue
                if not self.uiIsShow:
                    self.parseAndControlVersion(rspMsg, jsonInfo)
            iIndex = 0
            while iIndex <= 30:
                if not self.isRunning:
                    break
                time.sleep(1)
                iIndex+=1
                ILog.getLogger().info("sleep 2...."+str(self.uiIsShow))

        ILog.getLogger().info("PyVersion Monitor Exit...")
 def run(self):
     if self.jsonInfoObj is None:
         return
     jsonUpgradeReq = self.__genUpgradeFileListReq()
     jsonUpgradeRsp = HttpClient.requestWidthPost(IMessageDef.BASE_URL, jsonUpgradeReq)
     
     if jsonUpgradeRsp is None:
         return
     
     self.__beginUpgrade(jsonUpgradeRsp)