def preInitialization(self): """ _preInitialization_ Sets up the workers threads """ pollInterval = self.config.AnalyticsDataCollector.pollInterval myThread = threading.currentThread() myThread.workerThreadManager.addWorker(AnalyticsPoller(self.config), pollInterval)
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