def __init__(self, config, datasetExpr, datasetNick = None, datasetID = 0): ConfigurablePlugin.__init__(self, config) self._log = logging.getLogger('user.dataprovider') (self._datasetExpr, self._datasetNick, self._datasetID) = (datasetExpr, datasetNick, datasetID) (self._cache_block, self._cache_dataset, self._passthrough) = (None, None, False) self._stats = DataProcessor.createInstance('StatsDataProcessor', config) self._nickProducer = config.getPlugin('nickname source', 'SimpleNickNameProducer', cls = DataProcessor) self._datasetProcessor = config.getCompositePlugin('dataset processor', 'EntriesConsistencyDataProcessor URLDataProcessor URLCountDataProcessor ' + 'EntriesCountDataProcessor EmptyDataProcessor UniqueDataProcessor LocationDataProcessor', 'MultiDataProcessor', cls = DataProcessor, onChange = triggerResync(['datasets', 'parameters']))
def __init__(self, config, datasetExpr, datasetNick = None, datasetID = 0): ConfigurablePlugin.__init__(self, config) self._log = logging.getLogger('user.dataprovider') (self._datasetExpr, self._datasetNick, self._datasetID) = (datasetExpr, datasetNick, datasetID) (self._cache_block, self._cache_dataset, self._passthrough) = (None, None, False) self._stats = DataProcessor.createInstance('StatsDataProcessor', config) self._nickProducer = config.getPlugin('nickname source', 'SimpleNickNameProducer', cls = DataProcessor) self._datasetProcessor = config.getCompositePlugin('dataset processor', 'EntriesConsistencyDataProcessor URLDataProcessor URLCountDataProcessor ' + 'EntriesCountDataProcessor EmptyDataProcessor UniqueDataProcessor LocationDataProcessor', 'MultiDataProcessor', cls = DataProcessor)
def __init__(self, config, datasetExpr, datasetNick = None): ConfigurablePlugin.__init__(self, config) self._log = logging.getLogger('dataset.provider') (self._datasetExpr, self._datasetNick) = (datasetExpr, datasetNick) (self._cache_block, self._cache_dataset) = (None, None) self._dataset_query_interval = config.getTime('dataset default query interval', 60, onChange = None) triggerDataResync = triggerResync(['datasets', 'parameters']) self._stats = DataProcessor.createInstance('SimpleStatsDataProcessor', config, triggerDataResync, self._log, ' * Dataset %s:\n\tcontains ' % repr(datasetNick or datasetExpr)) self._nickProducer = config.getPlugin('nickname source', 'SimpleNickNameProducer', cls = DataProcessor, pargs = (triggerDataResync,), onChange = triggerDataResync) self._datasetProcessor = config.getCompositePlugin('dataset processor', 'NickNameConsistencyProcessor EntriesConsistencyDataProcessor URLDataProcessor URLCountDataProcessor ' + 'EntriesCountDataProcessor EmptyDataProcessor UniqueDataProcessor LocationDataProcessor', 'MultiDataProcessor', cls = DataProcessor, pargs = (triggerDataResync,), onChange = triggerDataResync)
def __init__(self, config, datasetExpr, datasetNick, providerList): DataProvider.__init__(self, config, datasetExpr, datasetNick) self._stats = DataProcessor.createInstance('SimpleStatsDataProcessor', config, None, self._log, 'Summary: Running over ') self._providerList = providerList
def __init__(self, config, datasetExpr, datasetNick, providerList): DataProvider.__init__(self, config, datasetExpr, datasetNick) self._stats = DataProcessor.createInstance('SimpleStatsDataProcessor', config, None, self._log, 'Summary: Running over ') self._providerList = providerList