Пример #1
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
Пример #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