Public Member Functions | |
def | __init__ (self, uri, timeOut, 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 | _queryTier0DataSvc (self, url) |
Private Attributes | |
_debug | |
_proxy | |
_retries | |
_retryPeriod | |
_timeOut | |
_uri | |
def tier0.Tier0Handler.__init__ | ( | self, | |
uri, | |||
timeOut, | |||
retries, | |||
retryPeriod, | |||
proxy, | |||
debug | |||
) |
Parameters: uri: Tier0DataSvc URI; timeOut: time out for Tier0DataSvc HTTPS calls; retries: maximum retries for Tier0DataSvc HTTPS calls; retryPeriod: sleep time between two Tier0DataSvc HTTPS calls; proxy: HTTP proxy for accessing Tier0DataSvc HTTPS calls; debug: if set to True, enables debug information.
Definition at line 67 of file tier0.py.
|
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 93 of file tier0.py.
References EcalMatacqAnalyzer._debug, EcalABAnalyzer._debug, uploads.output._debug, tier0.Tier0Handler._debug, EcalLaserAnalyzer2._debug, EcalLaserAnalyzer._debug, uploads.uploader._debug, tier0.Tier0Handler._proxy, tier0.Tier0Handler._retries, tier0.Tier0Handler._timeOut, 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 142 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 158 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 84 of file tier0.py.
References EcalMatacqAnalyzer._debug, EcalABAnalyzer._debug, uploads.output._debug, tier0.Tier0Handler._debug, EcalLaserAnalyzer2._debug, EcalLaserAnalyzer._debug, and uploads.uploader._debug.
def tier0.Tier0Handler.setProxy | ( | self, | |
proxy | |||
) |
Definition at line 90 of file tier0.py.
References tier0.Tier0Handler._proxy.
def tier0.Tier0Handler.unsetDebug | ( | self | ) |
Definition at line 87 of file tier0.py.
References EcalMatacqAnalyzer._debug, EcalABAnalyzer._debug, uploads.output._debug, tier0.Tier0Handler._debug, EcalLaserAnalyzer2._debug, EcalLaserAnalyzer._debug, and uploads.uploader._debug.
|
private |
Definition at line 82 of file tier0.py.
Referenced by FrontierCondition_GT_autoExpress_cfi.Tier0Handler._queryTier0DataSvc(), tier0.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 81 of file tier0.py.
Referenced by 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 79 of file tier0.py.
Referenced by FrontierCondition_GT_autoExpress_cfi.Tier0Handler._queryTier0DataSvc(), and tier0.Tier0Handler._queryTier0DataSvc().
|
private |
Definition at line 78 of file tier0.py.
Referenced by FrontierCondition_GT_autoExpress_cfi.Tier0Handler._queryTier0DataSvc(), and tier0.Tier0Handler._queryTier0DataSvc().
|
private |
Definition at line 77 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().