當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。