Esempio n. 1
0
    def __init__(self, channel, thread_cnt, need_cnt):
        BaseTask.__init__(self, "fetch_csv_sample", thread_cnt=thread_cnt)
        self.channel = channel
        self.rand = RandomDispatcher(channel, self._queue, need_cnt)
        self.dispatcher = lambda q: self.rand.dispatcher()

        self.dir_path = self.get_save_dir_path()
        CsvWriteBase.__init__(self, self.dir_path, self.channel)

        self.cv_measure_store = CVRawStore(channel, 'measure')
Esempio n. 2
0
    def __init__(self, channel, thread_cnt=5):

        BaseTask.__init__(self, "gets_raw", thread_cnt=thread_cnt)

        self.rawdispatcher = BugFixDispatcher(channel, self._queue)
        self.dispatcher = lambda q: self.rawdispatcher.dispatcher()
        self.channel = channel

        self.dir_path = self.get_save_file_dir()

        CsvWriteBase.__init__(self, self.dir_path, self.channel)