本文整理汇总了Python中Client._getGridSrc方法的典型用法代码示例。如果您正苦于以下问题:Python Client._getGridSrc方法的具体用法?Python Client._getGridSrc怎么用?Python Client._getGridSrc使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Client
的用法示例。
在下文中一共展示了Client._getGridSrc方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import Client [as 别名]
# 或者: from Client import _getGridSrc [as 别名]
def __init__(self):
self.__servername = '' # name of the myproxy server
self.__vomsattributes = 'atlas' # voms attributes, needed to use glexec
self.__userDN = '' # DN of the user
self.__pilotownerDN = '' # DN of the pilot owner
# who will be allowed to retrieve the proxy
self.__proxypath = '' # location for the retrieved proxy
self.__pilotproxypath = '' # location of the pilot owner proxy
self.__command = '' # command, for testing purposes
# dates, in seconds since Epoch, used as reference for myproxy tools
# to compare with version installed on the WN
# Reference value is 12 Jun 2007
# which corresponds with 1181620800 seconds
self.__myproxyinit_refdate = 1181620800
self.__myproxylogon_refdate = 1181620800
# variables to manage the periodically retrieval
# by a separate script
self.__automatic_retrieval = 0 # by default, the option is disabled.
self.__time_threshold = 3600 # by default, 1 hour
# src file to setup grid runtime
self.srcFile = Client._getGridSrc()