本文整理匯總了Python中DIRAC.WorkloadManagementSystem.private.PilotDirector.PilotDirector.configureFromSection方法的典型用法代碼示例。如果您正苦於以下問題:Python PilotDirector.configureFromSection方法的具體用法?Python PilotDirector.configureFromSection怎麽用?Python PilotDirector.configureFromSection使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DIRAC.WorkloadManagementSystem.private.PilotDirector.PilotDirector
的用法示例。
在下文中一共展示了PilotDirector.configureFromSection方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: configureFromSection
# 需要導入模塊: from DIRAC.WorkloadManagementSystem.private.PilotDirector import PilotDirector [as 別名]
# 或者: from DIRAC.WorkloadManagementSystem.private.PilotDirector.PilotDirector import configureFromSection [as 別名]
def configureFromSection( self, mySection ):
"""
reload from CS
"""
PilotDirector.configureFromSection( self, mySection )
self.computingElementList = gConfig.getValue( mySection+'/ComputingElements' , self.computingElementList )
self.addComputingElement( self.computingElementList )
self.siteName = gConfig.getValue( mySection+'/SiteName' , self.siteName )
示例2: configureFromSection
# 需要導入模塊: from DIRAC.WorkloadManagementSystem.private.PilotDirector import PilotDirector [as 別名]
# 或者: from DIRAC.WorkloadManagementSystem.private.PilotDirector.PilotDirector import configureFromSection [as 別名]
def configureFromSection( self, mySection ):
"""
reload from CS
"""
PilotDirector.configureFromSection( self, mySection )
self.gridEnv = gConfig.getValue( mySection + '/GridEnv', self.gridEnv )
if not self.gridEnv:
# No specific option found, try a general one
setup = gConfig.getValue( '/DIRAC/Setup', '' )
if setup:
instance = gConfig.getValue( '/DIRAC/Setups/%s/WorkloadManagement' % setup, '' )
if instance:
self.gridEnv = gConfig.getValue( '/Systems/WorkloadManagement/%s/GridEnv' % instance, '' )
self.resourceBrokers = gConfig.getValue( mySection + '/ResourceBrokers' , self.resourceBrokers )
self.cpuPowerRef = gConfig.getValue( mySection + '/CPUPowerRef' , self.cpuPowerRef )
self.requirements = gConfig.getValue( mySection + '/Requirements' , self.requirements )
self.rank = gConfig.getValue( mySection + '/Rank' , self.rank )
self.fuzzyRank = gConfig.getValue( mySection + '/FuzzyRank' , self.fuzzyRank )