本文整理汇总了Python中pyon.util.containers.DotDict.op方法的典型用法代码示例。如果您正苦于以下问题:Python DotDict.op方法的具体用法?Python DotDict.op怎么用?Python DotDict.op使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyon.util.containers.DotDict
的用法示例。
在下文中一共展示了DotDict.op方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUp
# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
def setUp(self):
super(DiscoveryIntTest, self).setUp()
self._start_container()
self.addCleanup(DiscoveryIntTest.es_cleanup)
self.container.start_rel_from_url('res/deploy/r2dm.yml')
self.discovery = DiscoveryServiceClient()
self.catalog = CatalogManagementServiceClient()
self.ims = IndexManagementServiceClient()
self.rr = ResourceRegistryServiceClient()
if use_es:
self.es_host = CFG.get_safe('server.elasticsearch.host', 'localhost')
self.es_port = CFG.get_safe('server.elasticsearch.port', '9200')
CFG.server.elasticsearch.shards = 1
CFG.server.elasticsearch.replicas = 0
CFG.server.elasticsearch.river_shards = 1
CFG.server.elasticsearch.river_replicas = 0
self.es = ep.ElasticSearch(
host=self.es_host,
port=self.es_port,
timeout=10,
verbose=True
)
op = DotDict(CFG)
op.op = 'clean_bootstrap'
self.container.spawn_process('index_bootstrap','ion.processes.bootstrap.index_bootstrap','IndexBootStrap', op)
示例2: preload
# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
def preload(self):
config = DotDict()
config.op = 'load'
config.scenario='BETA'
config.categories='Parser,Reference'
config.path='master'
self.container.spawn_process('ion_loader', 'ion.processes.bootstrap.ion_loader','IONLoader',config)
示例3: lc_preload
# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
def lc_preload(self):
config = DotDict()
config.op = 'load'
config.scenario = 'BASE,LC_TEST'
config.categories = 'ParameterFunctions,ParameterDefs,ParameterDictionary'
config.path = 'res/preload/r2_ioc'
self.container.spawn_process('preload','ion.processes.bootstrap.ion_loader','IONLoader', config)
示例4: preload_ui
# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
def preload_ui(self):
config = DotDict()
config.op='loadui'
config.loadui=True
config.attachments='res/preload/r2_ioc/attachments'
config.ui_path = "http://userexperience.oceanobservatories.org/database-exports/Candidates"
self.container.spawn_process('preloader', 'ion.processes.bootstrap.ion_loader', 'IONLoader', config)
示例5: preload_units
# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
def preload_units(self):
config = DotDict()
config.op = 'load'
config.attachments = "res/preload/r2_ioc/attachments"
config.scenario = 'LC_UNITS'
config.categories='ParameterFunctions,ParameterDefs,ParameterDictionary'
config.path = 'master'
self.container.spawn_process('preloader', 'ion.processes.bootstrap.ion_loader', 'IONLoader', config)
示例6: preload_tmpsf
# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
def preload_tmpsf(self):
config = DotDict()
config.op = 'load'
config.loadui=True
config.ui_path = "http://userexperience.oceanobservatories.org/database-exports/Candidates"
config.attachments = "res/preload/r2_ioc/attachments"
config.scenario = 'BETA,TMPSF'
#config.categories='ParameterFunctions,ParameterDefs,ParameterDictionary'
self.container.spawn_process('preloader', 'ion.processes.bootstrap.ion_loader', 'IONLoader', config)
示例7: preload_vel3d_cd
# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
def preload_vel3d_cd(self):
config = DotDict()
config.op = 'load'
config.loadui=True
config.ui_path = "http://userexperience.oceanobservatories.org/database-exports/Candidates"
config.attachments = "res/preload/r2_ioc/attachments"
config.scenario = 'BETA,VEL3D_C'
config.path = 'master'
self.container.spawn_process('preloader', 'ion.processes.bootstrap.ion_loader', 'IONLoader', config)
示例8: preload_example2
# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
def preload_example2(self):
config = DotDict()
config.op = 'load'
config.loadui=True
config.ui_path = "http://userexperience.oceanobservatories.org/database-exports/Candidates"
config.attachments = "res/preload/r2_ioc/attachments"
config.scenario = 'BETA,EXAMPLE2'
config.path = 'master'
#config.categories='ParameterFunctions,ParameterDefs,ParameterDictionary,StreamDefinition,DataProduct'
self.container.spawn_process('preloader', 'ion.processes.bootstrap.ion_loader', 'IONLoader', config)
示例9: preload_ctdgv
# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
def preload_ctdgv(self):
config = DotDict()
config.op = 'load'
config.loadui=True
config.ui_path = "http://userexperience.oceanobservatories.org/database-exports/Candidates"
config.attachments = "res/preload/r2_ioc/attachments"
config.scenario = 'BETA,GLIDER,CTDGV,CTDGV01'
config.path = 'master'
#config.categories='ParameterFunctions,ParameterDefs,ParameterDictionary,StreamDefinition,DataProduct'
self.container.spawn_process('preloader', 'ion.processes.bootstrap.ion_loader', 'IONLoader', config)
self.container.spawn_process('agentctrl', 'ion.agents.agentctrl', 'AgentControl', {'op':'load', 'instrument':'CTDGV'})
示例10: on_initial_bootstrap
# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
def on_initial_bootstrap(self, process, config, **kwargs):
if config.get_safe('system.elasticsearch') and config.get_safe('bootstrap.use_es'):
#---------------------------------------------
# Spawn the index bootstrap
#---------------------------------------------
config = DotDict(config)
config.op = 'clean_bootstrap'
process.container.spawn_process('index_bootstrap','ion.processes.bootstrap.index_bootstrap','IndexBootStrap',config)
#---------------------------------------------
else:
log.info("Not creating the ES indexes.")