Public Member Functions | |
def | __init__ (self, uri, timeOut, maxTime, retries, retryPeriod, proxy, debug) |
def | getFirstSafeRun (self) |
def | getGlobalTag (self, config) |
def | setDebug (self) |
def | setProxy (self, proxy) |
def | unsetDebug (self) |
Private Member Functions | |
def | _curlQueryTier0 |
def | _getCerts (self) |
def | _queryTier0DataSvc (self, url) |
Private Attributes | |
_debug | |
_maxTime | |
_proxy | |
_retries | |
_retryPeriod | |
_timeOut | |
_uri | |
def tier0.Tier0Handler.__init__ | ( | self, | |
uri, | |||
timeOut, | |||
maxTime, | |||
retries, | |||
retryPeriod, | |||
proxy, | |||
debug | |||
) |
Parameters: uri: Tier0DataSvc URI; timeOut: time out for connection of Tier0DataSvc HTTPS calls [seconds]; maxTime: maximum time for Tier0DataSvc HTTPS calls (including data transfer) [seconds]; retries: maximum retries for Tier0DataSvc HTTPS calls; retryPeriod: sleep time between two Tier0DataSvc HTTPS calls [seconds]; proxy: HTTP proxy for accessing Tier0DataSvc HTTPS calls; debug: if set to True, enables debug information.
Definition at line 73 of file tier0.py.
|
private |
Definition at line 116 of file tier0.py.
References EcalMatacqAnalyzer._debug, EcalABAnalyzer._debug, tier0.Tier0Handler._debug, uploads.uploader._debug, EcalLaserAnalyzer2._debug, EcalLaserAnalyzer._debug, tier0.Tier0Handler._getCerts(), and tier0.Tier0Handler._proxy.
Referenced by tier0.Tier0Handler._queryTier0DataSvc().
|
private |
|
private |
Queries Tier0DataSvc. url: Tier0DataSvc URL. @returns: dictionary, from whence the required information must be retrieved according to the API call. Raises if connection error, bad response, or timeout after retries occur.
Definition at line 135 of file tier0.py.
References tier0.Tier0Handler._curlQueryTier0(), tier0.Tier0Handler._proxy, tier0.Tier0Handler._retryPeriod, join(), python.rootplot.root2matplotlib.replace(), and str.
Referenced by FrontierCondition_GT_autoExpress_cfi.Tier0Handler.getFirstSafeRun(), tier0.Tier0Handler.getFirstSafeRun(), FrontierCondition_GT_autoExpress_cfi.Tier0Handler.getGlobalTag(), and tier0.Tier0Handler.getGlobalTag().
def tier0.Tier0Handler.getFirstSafeRun | ( | self | ) |
Queries Tier0DataSvc to get the first condition safe run. Parameters: @returns: integer, the run number. Raises if connection error, bad response, timeout after retries occur, or if the run number is not available.
Definition at line 168 of file tier0.py.
References tier0.Tier0Handler._proxy, tier0.Tier0Handler._queryTier0DataSvc(), tier0.Tier0Handler._uri, createfilelist.int, and str.
def tier0.Tier0Handler.getGlobalTag | ( | self, | |
config | |||
) |
Queries Tier0DataSvc to get the most recent Global Tag for a given workflow. Parameters: config: Tier0DataSvc API call for the workflow to be looked for; @returns: a string with the Global Tag name. Raises if connection error, bad response, timeout after retries occur, or if no Global Tags are available.
Definition at line 185 of file tier0.py.
References tier0.Tier0Handler._proxy, tier0.Tier0Handler._queryTier0DataSvc(), tier0.Tier0Handler._uri, str, and tier0.unique().
def tier0.Tier0Handler.setDebug | ( | self | ) |
Definition at line 92 of file tier0.py.
References EcalMatacqAnalyzer._debug, EcalABAnalyzer._debug, tier0.Tier0Handler._debug, uploads.uploader._debug, EcalLaserAnalyzer2._debug, and EcalLaserAnalyzer._debug.
def tier0.Tier0Handler.setProxy | ( | self, | |
proxy | |||
) |
Definition at line 98 of file tier0.py.
References tier0.Tier0Handler._proxy.
def tier0.Tier0Handler.unsetDebug | ( | self | ) |
Definition at line 95 of file tier0.py.
References EcalMatacqAnalyzer._debug, EcalABAnalyzer._debug, tier0.Tier0Handler._debug, uploads.uploader._debug, EcalLaserAnalyzer2._debug, and EcalLaserAnalyzer._debug.
|
private |
Definition at line 90 of file tier0.py.
Referenced by tier0.Tier0Handler._curlQueryTier0(), FrontierCondition_GT_autoExpress_cfi.Tier0Handler._queryTier0DataSvc(), FrontierCondition_GT_autoExpress_cfi.Tier0Handler.setDebug(), tier0.Tier0Handler.setDebug(), FrontierCondition_GT_autoExpress_cfi.Tier0Handler.unsetDebug(), and tier0.Tier0Handler.unsetDebug().
|
private |
Definition at line 89 of file tier0.py.
Referenced by tier0.Tier0Handler._curlQueryTier0(), FrontierCondition_GT_autoExpress_cfi.Tier0Handler._queryTier0DataSvc(), tier0.Tier0Handler._queryTier0DataSvc(), FrontierCondition_GT_autoExpress_cfi.Tier0Handler.getFirstSafeRun(), tier0.Tier0Handler.getFirstSafeRun(), FrontierCondition_GT_autoExpress_cfi.Tier0Handler.getGlobalTag(), tier0.Tier0Handler.getGlobalTag(), FrontierCondition_GT_autoExpress_cfi.Tier0Handler.setProxy(), and tier0.Tier0Handler.setProxy().
|
private |
Definition at line 87 of file tier0.py.
Referenced by FrontierCondition_GT_autoExpress_cfi.Tier0Handler._queryTier0DataSvc().
|
private |
Definition at line 88 of file tier0.py.
Referenced by tier0.Tier0Handler._queryTier0DataSvc().
|
private |
Definition at line 85 of file tier0.py.
Referenced by FrontierCondition_GT_autoExpress_cfi.Tier0Handler._queryTier0DataSvc().
|
private |
Definition at line 84 of file tier0.py.
Referenced by FrontierCondition_GT_autoExpress_cfi.Tier0Handler.getFirstSafeRun(), tier0.Tier0Handler.getFirstSafeRun(), FrontierCondition_GT_autoExpress_cfi.Tier0Handler.getGlobalTag(), and tier0.Tier0Handler.getGlobalTag().