示例#1
0
    def preInitialization(self):
        """
        _preInitialization_

        Sets up the workers threads
        """
        pollInterval = self.config.AnalyticsDataCollector.pollInterval
        
        myThread = threading.currentThread()
        
        myThread.workerThreadManager.addWorker(AnalyticsPoller(self.config),
                                               pollInterval)
示例#2
0
    def testAnalyticsPoller(self):
        """
        Tests the components, as in sees if they load.
        Otherwise does nothing.
        """
        threading.currentThread()
        config = self.getConfig()
        analytics = AnalyticsPoller(config)

        analytics.setup(None)
        analytics.localQueue = MockLocalQService()
        analytics.algorithm(None)
        return
 def testAnalyticsPoller(self):
     """
     Tests the components, as in sees if they load.
     Otherwise does nothing.
     """
     myThread = threading.currentThread()
     config = self.getConfig()
     analytics = AnalyticsPoller(config)
     
     analytics.setup(None)
     analytics.localQueue = MockLocalQService()
     analytics.algorithm(None)
     return