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


Python ComputingElement._addCEConfigDefaults方法代码示例

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


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

示例1: _addCEConfigDefaults

# 需要导入模块: from DIRAC.Resources.Computing.ComputingElement import ComputingElement [as 别名]
# 或者: from DIRAC.Resources.Computing.ComputingElement.ComputingElement import _addCEConfigDefaults [as 别名]
  def _addCEConfigDefaults( self ):
    """Method to make sure all necessary Configuration Parameters are defined
    """
    # First assure that any global parameters are loaded
    ComputingElement._addCEConfigDefaults( self )
    # Now batch system specific ones
    if 'ExecQueue' not in self.ceParameters:
      self.ceParameters['ExecQueue'] = self.ceParameters.get( 'Queue', '' )

    if 'SharedArea' not in self.ceParameters:
      defaultPath = os.environ.get( 'HOME', '.' )
      self.ceParameters['SharedArea'] = gConfig.getValue( '/LocalSite/InstancePath', defaultPath )

    if 'BatchOutput' not in self.ceParameters:
      self.ceParameters['BatchOutput'] = 'data'

    if 'BatchError' not in self.ceParameters:
      self.ceParameters['BatchError'] = 'data'

    if 'ExecutableArea' not in self.ceParameters:
      self.ceParameters['ExecutableArea'] = 'data'

    if 'InfoArea' not in self.ceParameters:
      self.ceParameters['InfoArea'] = 'info'

    if 'WorkArea' not in self.ceParameters:
      self.ceParameters['WorkArea'] = 'work'
开发者ID:DIRACGrid-test,项目名称:DIRAC,代码行数:29,代码来源:LocalComputingElement.py

示例2: _addCEConfigDefaults

# 需要导入模块: from DIRAC.Resources.Computing.ComputingElement import ComputingElement [as 别名]
# 或者: from DIRAC.Resources.Computing.ComputingElement.ComputingElement import _addCEConfigDefaults [as 别名]
  def _addCEConfigDefaults( self ):
    """Method to make sure all necessary Configuration Parameters are defined
    """
    # First assure that any global parameters are loaded
    ComputingElement._addCEConfigDefaults( self )
    # Now batch system specific ones
    if 'ExecQueue' not in self.ceParameters:
      self.ceParameters['ExecQueue'] = self.ceParameters.get( 'Queue', '' )

    if 'SharedArea' not in self.ceParameters:
      self.ceParameters['SharedArea'] = '.'

    if 'BatchOutput' not in self.ceParameters:
      self.ceParameters['BatchOutput'] = 'data' 

    if 'BatchError' not in self.ceParameters:
      self.ceParameters['BatchError'] = 'data' 

    if 'ExecutableArea' not in self.ceParameters:
      self.ceParameters['ExecutableArea'] = 'data' 

    if 'InfoArea' not in self.ceParameters:
      self.ceParameters['InfoArea'] = 'info'
      
    if 'WorkArea' not in self.ceParameters:
      self.ceParameters['WorkArea'] = 'work'  
      
    if 'SubmitOptions' not in self.ceParameters:
      self.ceParameters['SubmitOptions'] = '-'    
开发者ID:cgrefe,项目名称:DIRAC,代码行数:31,代码来源:SSHComputingElement.py

示例3: _addCEConfigDefaults

# 需要导入模块: from DIRAC.Resources.Computing.ComputingElement import ComputingElement [as 别名]
# 或者: from DIRAC.Resources.Computing.ComputingElement.ComputingElement import _addCEConfigDefaults [as 别名]
  def _addCEConfigDefaults( self ):
    """Method to make sure all necessary Configuration Parameters are defined
    """
    # First assure that any global parameters are loaded
    ComputingElement._addCEConfigDefaults( self )
    # Now Torque specific ones
    if 'ExecQueue' not in self.ceConfigDict:
      self.ceConfigDict['ExecQueue'] = self.ceConfigDict['Queue']

    if 'SharedArea' not in self.ceConfigDict:
      self.ceConfigDict['SharedArea'] = ''

    if 'BatchOutput' not in self.ceConfigDict:
      self.ceConfigDict['BatchOutput'] = os.path.join( gConfig.getValue( '/LocalSite/InstancePath', rootPath ), 'data' )

    if 'BatchError' not in self.ceConfigDict:
      self.ceConfigDict['BatchError'] = os.path.join( gConfig.getValue( '/LocalSite/InstancePath', rootPath ), 'data' )
开发者ID:caitriana,项目名称:DIRAC,代码行数:19,代码来源:TorqueComputingElement.py

示例4: _addCEConfigDefaults

# 需要导入模块: from DIRAC.Resources.Computing.ComputingElement import ComputingElement [as 别名]
# 或者: from DIRAC.Resources.Computing.ComputingElement.ComputingElement import _addCEConfigDefaults [as 别名]
    def _addCEConfigDefaults(self):
        """Method to make sure all necessary Configuration Parameters are defined
    """
        # First assure that any global parameters are loaded
        ComputingElement._addCEConfigDefaults(self)
        # Now Torque specific ones
        if "ExecQueue" not in self.ceConfigDict:
            self.ceConfigDict["ExecQueue"] = self.ceConfigDict["Queue"]

        if "SharedArea" not in self.ceConfigDict:
            self.ceConfigDict["SharedArea"] = ""

        if "BatchOutput" not in self.ceConfigDict:
            self.ceConfigDict["BatchOutput"] = os.path.join(
                gConfig.getValue("/LocalSite/InstancePath", rootPath), "data"
            )

        if "BatchError" not in self.ceConfigDict:
            self.ceConfigDict["BatchError"] = os.path.join(
                gConfig.getValue("/LocalSite/InstancePath", rootPath), "data"
            )
开发者ID:roiser,项目名称:DIRAC,代码行数:23,代码来源:TorqueComputingElement.py

示例5: _addCEConfigDefaults

# 需要导入模块: from DIRAC.Resources.Computing.ComputingElement import ComputingElement [as 别名]
# 或者: from DIRAC.Resources.Computing.ComputingElement.ComputingElement import _addCEConfigDefaults [as 别名]
 def _addCEConfigDefaults(self):
   """Method to make sure all necessary Configuration Parameters are defined
   """
   # First assure that any global parameters are loaded
   ComputingElement._addCEConfigDefaults(self)
开发者ID:DIRACGrid,项目名称:DIRAC,代码行数:7,代码来源:PoolComputingElement.py


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