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


Python ACSCorba.getManagerCorbaloc方法代码示例

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


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

示例1: getManagerHost

# 需要导入模块: from Acspy.Util import ACSCorba [as 别名]
# 或者: from Acspy.Util.ACSCorba import getManagerCorbaloc [as 别名]
    def getManagerHost(self): # pragma: NO COVER
        '''
        Helper function returns a string consisting of managers host.

        Return: hostname where manager is running.

        Raises: ???
        '''
        temp = ACSCorba.getManagerCorbaloc()
        # words end up as ['corbaloc', '', 'condor', 'xxxx/Manager']
        words = temp.split(':')
        return words[2]
开发者ID:,项目名称:,代码行数:14,代码来源:

示例2:

# 需要导入模块: from Acspy.Util import ACSCorba [as 别名]
# 或者: from Acspy.Util.ACSCorba import getManagerCorbaloc [as 别名]
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
# MA 02111-1307  USA
#
# @(#) $Id: acspyTestAcsCORBA.py,v 1.1.1.1 2012/03/07 17:41:01 acaproni Exp $
###############################################################################
'''
Tests CORBA access.
'''
from Acspy.Util import ACSCorba
###############################################################################
if __name__ == '__main__':
    print 'Manager corbaloc: %s' % ACSCorba.getManagerCorbaloc()
    print 'ORB: %s' % ACSCorba.getORB()
    print 'POA ROOT: %s' % ACSCorba.getPOARoot()
    print 'POA Manager: %s' % ACSCorba.getPOAManager()
    print 'Manager: %s' % ACSCorba.getManager()
    print 'Client: %s' % ACSCorba.getClient()
    print 'Log: %s' % ACSCorba.log()
    print 'LogFactory: %s' % ACSCorba.logFactory()
    print 'NotifyEventChannelFactory: %s' % ACSCorba.notifyEventChannelFactory()
    print 'ArchivingChannel: %s' % ACSCorba.archivingChannel()
    print 'LoggingChannel: %s' % ACSCorba.loggingChannel()
    print 'InterfaceRepository: %s' % ACSCorba.interfaceRepository()
    print 'CDB: %s' % ACSCorba.cdb()
    print 'ACSLogSvc: %s' % ACSCorba.acsLogSvc()
    print 'NameService: %s' % ACSCorba.nameService()
开发者ID:,项目名称:,代码行数:32,代码来源:

示例3: test_args

# 需要导入模块: from Acspy.Util import ACSCorba [as 别名]
# 或者: from Acspy.Util.ACSCorba import getManagerCorbaloc [as 别名]
 def test_args(self):
     saveargv = ACSCorba.argv
     ACSCorba.argv = [ '-m', 'corbaloc::127.0.0.3:3000/Manager' ]
     self.assertEqual('corbaloc::127.0.0.3:3000/Manager',
                      ACSCorba.getManagerCorbaloc())
     ACSCorba.argv = saveargv
开发者ID:,项目名称:,代码行数:8,代码来源:

示例4: test_environ

# 需要导入模块: from Acspy.Util import ACSCorba [as 别名]
# 或者: from Acspy.Util.ACSCorba import getManagerCorbaloc [as 别名]
 def test_environ(self):
     saveenv = ACSCorba.environ
     ACSCorba.environ = { 'MANAGER_REFERENCE':'corbaloc::127.0.0.2:3000/Manager'}
     self.assertEqual('corbaloc::127.0.0.2:3000/Manager',
                      ACSCorba.getManagerCorbaloc())
     ACSCorba.environ = saveenv
开发者ID:,项目名称:,代码行数:8,代码来源:

示例5: test_no_args_or_env

# 需要导入模块: from Acspy.Util import ACSCorba [as 别名]
# 或者: from Acspy.Util.ACSCorba import getManagerCorbaloc [as 别名]
 def test_no_args_or_env(self, managerportmock, ipmock):
     ipmock.return_value = '127.0.0.1'
     managerportmock.return_value = '3000'
     self.assertEqual('corbaloc::127.0.0.1:3000/Manager',
                      ACSCorba.getManagerCorbaloc())
开发者ID:,项目名称:,代码行数:7,代码来源:

示例6: test_new_corbaloc

# 需要导入模块: from Acspy.Util import ACSCorba [as 别名]
# 或者: from Acspy.Util.ACSCorba import getManagerCorbaloc [as 别名]
 def test_new_corbaloc(self):
     self.assertEqual('foo', ACSCorba.getManagerCorbaloc('foo'))
开发者ID:,项目名称:,代码行数:4,代码来源:

示例7: test_manager_exists

# 需要导入模块: from Acspy.Util import ACSCorba [as 别名]
# 或者: from Acspy.Util.ACSCorba import getManagerCorbaloc [as 别名]
 def test_manager_exists(self):
     ACSCorba.MGR_CORBALOC = 'foo'
     self.assertEqual('foo', ACSCorba.getManagerCorbaloc())
开发者ID:,项目名称:,代码行数:5,代码来源:

示例8: test_args

# 需要导入模块: from Acspy.Util import ACSCorba [as 别名]
# 或者: from Acspy.Util.ACSCorba import getManagerCorbaloc [as 别名]
 def test_args(self):
     saveargv = ACSCorba.argv
     ACSCorba.argv = ["-m", "corbaloc::127.0.0.3:3000/Manager"]
     self.assertEqual("corbaloc::127.0.0.3:3000/Manager", ACSCorba.getManagerCorbaloc())
     ACSCorba.argv = saveargv
开发者ID:jantogni,项目名称:ACS,代码行数:7,代码来源:test_Acspy_Util_ACSCorba.py

示例9: test_environ

# 需要导入模块: from Acspy.Util import ACSCorba [as 别名]
# 或者: from Acspy.Util.ACSCorba import getManagerCorbaloc [as 别名]
 def test_environ(self):
     saveenv = ACSCorba.environ
     ACSCorba.environ = {"MANAGER_REFERENCE": "corbaloc::127.0.0.2:3000/Manager"}
     self.assertEqual("corbaloc::127.0.0.2:3000/Manager", ACSCorba.getManagerCorbaloc())
     ACSCorba.environ = saveenv
开发者ID:jantogni,项目名称:ACS,代码行数:7,代码来源:test_Acspy_Util_ACSCorba.py

示例10: test_no_args_or_env

# 需要导入模块: from Acspy.Util import ACSCorba [as 别名]
# 或者: from Acspy.Util.ACSCorba import getManagerCorbaloc [as 别名]
 def test_no_args_or_env(self, managerportmock, ipmock):
     ipmock.return_value = "127.0.0.1"
     managerportmock.return_value = "3000"
     self.assertEqual("corbaloc::127.0.0.1:3000/Manager", ACSCorba.getManagerCorbaloc())
开发者ID:jantogni,项目名称:ACS,代码行数:6,代码来源:test_Acspy_Util_ACSCorba.py


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