congress.datasources.benchmark_driver module

congress.datasources.benchmark_driver module

class congress.datasources.benchmark_driver.BenchmarkDriver(name='', keys='', inbox=None, datapath=None, args=None)

Bases: congress.datasources.datasource_driver.PollingDataSourceDriver

BENCHTABLE = 'benchtable'
TRANSLATORS = [{'table-name': 'benchtable', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'field1'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'field2'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}]
get_credentials(*args, **kwargs)
translator = {'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'field1'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'field2'}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'benchtable', 'translation-type': 'HDICT'}
update_from_datasource()
value_trans = {'translation-type': 'VALUE'}
congress.datasources.benchmark_driver.d6service(name, keys, inbox, datapath, args)

Create a dataservice instance.

This method is called by d6cage to create a dataservice instance. There are a couple of parameters we found useful to add to that call, so we included them here instead of modifying d6cage (and all the d6cage.createservice calls).

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.