当前位置: 首页>>代码示例>>Python>>正文


Python IceGridAdmin.iceGridClientServerTest方法代码示例

本文整理汇总了Python中IceGridAdmin.iceGridClientServerTest方法的典型用法代码示例。如果您正苦于以下问题:Python IceGridAdmin.iceGridClientServerTest方法的具体用法?Python IceGridAdmin.iceGridClientServerTest怎么用?Python IceGridAdmin.iceGridClientServerTest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IceGridAdmin的用法示例。


在下文中一共展示了IceGridAdmin.iceGridClientServerTest方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: len

# 需要导入模块: import IceGridAdmin [as 别名]
# 或者: from IceGridAdmin import iceGridClientServerTest [as 别名]
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************

import os, sys

path = [ ".", "..", "../..", "../../..", "../../../..", "../../../../..", "../../../../../..",
         "../../../../../../..", "../../../../../../../..", "../../../../../../../../.." ]
head = os.path.dirname(sys.argv[0])
if len(head) > 0:
    path = [os.path.join(head, p) for p in path]
path = [os.path.abspath(p) for p in path if os.path.exists(os.path.join(p, "scripts", "TestUtil.py")) ]
if len(path) == 0:
    raise RuntimeError("can't find toplevel directory!")
sys.path.append(os.path.join(path[0], "scripts"))
import TestUtil, IceGridAdmin

# Test IceGrid discovery with multiple replicas
IceGridAdmin.nreplicas=2 

#
# Test client/server without on demand activation.
#
IceGridAdmin.iceGridClientServerTest("", "--TestAdapter.Endpoints=default --TestAdapter.AdapterId=TestAdapter")

#
# Test client/server with on demand activation.
#
IceGridAdmin.iceGridTest("simple_server.xml", "--with-deploy")
开发者ID:bjarnescottlee,项目名称:ice,代码行数:32,代码来源:run.py


注:本文中的IceGridAdmin.iceGridClientServerTest方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。