本文整理汇总了Python中DAS.services.abstract_service.DASAbstractService.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python DASAbstractService.__init__方法的具体用法?Python DASAbstractService.__init__怎么用?Python DASAbstractService.__init__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DAS.services.abstract_service.DASAbstractService
的用法示例。
在下文中一共展示了DASAbstractService.__init__方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
def __init__(self, config):
DASAbstractService.__init__(self, 'combined', config)
self.map = self.dasmapping.servicemap(self.name)
map_validator(self.map)
self.dbs = 'dbs3'
self.sites = {'tstamp': 0} # local cache
self.thr = 24*60*60 # 1 day for local cache
示例2: __init__
# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
def __init__(self, config):
DASAbstractService.__init__(self, 'dbs3', config)
self.reserved = ['api', 'apiversion']
self.map = self.dasmapping.servicemap(self.name)
map_validator(self.map)
self.prim_instance = config['dbs']['dbs_global_instance']
self.instances = config['dbs']['dbs_instances']
示例3: __init__
# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
def __init__(self, config):
DASAbstractService.__init__(self, 'runsum', config)
self.results = []
self.params = {'DB':'cms_omds_lb', 'FORMAT':'XML'}
self._keys = None
self.map = self.dasmapping.servicemap(self.name)
map_validator(self.map)
示例4: __init__
# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
def __init__(self, config):
DASAbstractService.__init__(self, 'dbs', config)
self.reserved = ['api', 'apiversion']
self.map = self.dasmapping.servicemap(self.name)
map_validator(self.map)
self.prim_instance = self.dasmapping.dbs_global_instance(self.name)
self.instances = self.dasmapping.dbs_instances(self.name)
self.extended_expire = config['dbs'].get('extended_expire', 0)
self.extended_threshold = config['dbs'].get('extended_threshold', 0)
示例5: __init__
# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
def __init__(self, config):
DASAbstractService.__init__(self, "xwho", config)
self.map = self.dasmapping.servicemap(self.name)
map_validator(self.map)
self.re_summary_ids = re.compile(r'<a href="/xwho/people/([0-9]{6})">')
self.re_find_name = re.compile(r"<h1>(.*?)</h1>")
self.re_find_email = re.compile(r"<a href=mailto:(.*?)>")
self.re_find_phone = re.compile(r"<b>Tel:</b>([0-9 ]+)")
示例6: __init__
# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
def __init__(self, config):
DASAbstractService.__init__(self, "dbs3", config)
self.reserved = ["api", "apiversion"]
self.map = self.dasmapping.servicemap(self.name)
map_validator(self.map)
self.prim_instance = self.dasmapping.dbs_global_instance(self.name)
self.instances = self.dasmapping.dbs_instances(self.name)
self.extended_expire = config["dbs"].get("extended_expire", 0)
self.extended_threshold = config["dbs"].get("extended_threshold", 0)
self.dbs_choice = config["das"].get("main_dbs", "dbs3")
示例7: __init__
# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
def __init__(self, config):
DASAbstractService.__init__(self, 'cmsswconfigs', config)
self.headers = {'Accept': 'text/json;application/json'}
self.map = self.dasmapping.servicemap(self.name)
map_validator(self.map)
# specify access to DB
dburi = config.get('dburi')
self.conn = db_connection(dburi)
database = self.conn['configdb']
self.managers = {}
for release in database.collection_names():
if release.find('index') == -1:
self.managers[release] = MongoQuery(release)
self.releases = self.managers.keys()
示例8: __init__
# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
def __init__(self, config):
DASAbstractService.__init__(self, 'reqmgr', config)
self.map = self.dasmapping.servicemap(self.name)
map_validator(self.map)
示例9: __init__
# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
def __init__(self, config):
DASAbstractService.__init__(self, 'dashboard', config)
self.headers = {'Accept': 'text/xml'}
self.map = self.dasmapping.servicemap(self.name)
map_validator(self.map)
示例10: __init__
# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
def __init__(self, config):
DASAbstractService.__init__(self, 'phedex', config)
self.map = self.dasmapping.servicemap(self.name)
map_validator(self.map)
self.notationmap = self.notations()
示例11: __init__
# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
def __init__(self, config):
DASAbstractService.__init__(self, 'conddb', config)
self.reserved = ['api', 'apiversion']
self.map = self.dasmapping.servicemap(self.name)
map_validator(self.map)
示例12: __init__
# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
def __init__(self, config):
DASAbstractService.__init__(self, "dq", config)
self._keys = None
self.map = self.dasmapping.servicemap(self.name)
map_validator(self.map)
示例13: __init__
# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
def __init__(self, config):
DASAbstractService.__init__(self, 'lumidb', config)
self.map = self.dasmapping.servicemap(self.name, 'javaservlet')
map_validator(self.map)
示例14: __init__
# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
def __init__(self, config):
DASAbstractService.__init__(self, 'combined', config)
self.map = self.dasmapping.servicemap(self.name)
map_validator(self.map)
dbs = config['das'].get('main_dbs', 'dbs')
self.dbs = dbs