congress.datasources.benchmark_driver.
BenchmarkDriver
(name='', keys='', inbox=None, datapath=None, args=None)¶Bases: congress.datasources.datasource_driver.PollingDataSourceDriver
BENCHTABLE
= 'benchtable'¶TRANSLATORS
= [{'translation-type': 'HDICT', 'table-name': 'benchtable', 'selector-type': 'DICT_SELECTOR', 'field-translators': ({'fieldname': 'field1', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'field2', 'translator': {'translation-type': 'VALUE'}})}]¶get_credentials
(*args, **kwargs)¶translator
= {'field-translators': ({'fieldname': 'field1', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'field2', 'translator': {'translation-type': 'VALUE'}}), '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).
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.