Beispiel #1
0
 def __init__(self,
              filenamePattern,
              maxWaitingTime,
              pollingInterval,
              name=None):
     """<filenamePattern>: regular expression to match the filenames that are in this stager.
     <pollingInterval>: default polling interval (seconds) to check file status when files are being staged from tape to disk.
     <maxWaitingTime>: default maximum time (seconds) to wait for all files to be staged.
     <name>: name by which this stager will be known"""
     global theFileStagerRobot
     if not name: name = self.__class__.__name__
     TransformLogger.__init__(self, name)
     self.__name = name
     self.__filesToPreStage = {}  # map with (key,value)=(filename,status)
     self.setFilenamePattern(filenamePattern)
     self.__maxWaitingTime = maxWaitingTime
     self.__pollingInterval = pollingInterval
     # list of files to pre-stage and their last status (key=filename,value=status)
     theFileStagerRobot.addStager(self)
Beispiel #2
0
 def setLoggerParentName(self, name):
     """Override from TransformLogger: propagate to all stagers"""
     TransformLogger.setLoggerParentName(self, name)
     for stager in self.__stagerList:
         stager.setLoggerParentName(name)
Beispiel #3
0
 def __init__(self):
     self._name = self.__class__.__name__
     TransformLogger.__init__(self, self._name)
Beispiel #4
0
 def __init__(self, name=None):
     if not name: name = self.__class__.__name__
     TransformLogger.__init__(self, name)
     self.setLoggerLevel(logging.INFO)
     self.__name = name
     self.__stagerList = []
Beispiel #5
0
 def __init__(self, outputLevel = 3, jobOptions = None ):
     TransformLogger.__init__(self,"FakeAppMgr")
     self.__dict__['_setupValue'] = None
     self.__dict__['_nEvents'] = 0
     self.__dict__['_propertyRepository'] = {}