示例#1
0
文件: history.py 项目: iduque/UHCore
 def addPollingHistory(self, ruleName, delaySeconds):
     if not ActionHistory._runningThreads.has_key(ruleName):
         ahw = PollingThread(target=self.addHistory, delayTime=delaySeconds, args=(ruleName,), completeCallback=self._removePollingHistory)
         ahw.start()
         ActionHistory._runningThreads[ruleName] = ahw
     
     return ruleName
示例#2
0
 def addPollingHistory(self, ruleName, delaySeconds):
     if not ActionHistory._runningThreads.has_key(ruleName):
         ahw = PollingThread(target=self.addHistory, delayTime=delaySeconds, args=(ruleName,), completeCallback=self._removePollingHistory)
         ahw.start()
         ActionHistory._runningThreads[ruleName] = ahw
     
     return ruleName
示例#3
0
 def addPollingHistory(self, ruleName, delaySeconds):
     """ Starts automatically polling and updating the action history table every x seconds with the specified rule name """
     if not ActionHistory._runningThreads.has_key(ruleName):
         ahw = PollingThread(target=self.addHistory, delayTime=delaySeconds, args=(ruleName,), completeCallback=self._removePollingHistory)
         ahw.start()
         ActionHistory._runningThreads[ruleName] = ahw
     
     return ruleName
示例#4
0
    def addPollingHistory(self, ruleName, delaySeconds):
        """ Starts automatically polling and updating the action history table every x seconds with the specified rule name """
        if not ActionHistory._runningThreads.has_key(ruleName):
            ahw = PollingThread(target=self.addHistory,
                                delayTime=delaySeconds,
                                args=(ruleName, ),
                                completeCallback=self._removePollingHistory)
            ahw.start()
            ActionHistory._runningThreads[ruleName] = ahw

        return ruleName