コード例 #1
0
ファイル: Couch.py プロジェクト: lucacopa/WMCore
 def __init__(self, config, generator):
     PeriodPoller.__init__(self, config, generator)
     # ProcessDetail class instance (main process plus subprocesses)
     self._dbProcessDetail = None
     # instance of Measurements
     self._measurements = None
     self._setUp()
コード例 #2
0
ファイル: MySQL.py プロジェクト: rishiloyola/WMCore
 def __init__(self, config, generator):
     PeriodPoller.__init__(self, config, generator)
     # ProcessDetail class instance (main process plus subprocesses)
     self._dbProcessDetail = None
     # instance of Measurements
     self._measurements = None
     self._setUp()
コード例 #3
0
ファイル: Agent.py プロジェクト: zhiwenuil/WMCore
 def __init__(self, config, generator):
     PeriodPoller.__init__(self, config, generator)
     # access to the entire agent's configuration
     self.agentCompleteConfig = generator.config
     # list of instances of ProcessDetail class (processes (plus subprocesses)
     # that represent all (as read from the configuration) components of the agent
     self._components = []
     # list of instance of the Measurements class - measurements for 1 particular component
     self._compMeasurements = []
     self._setUp()
コード例 #4
0
ファイル: Agent.py プロジェクト: ticoann/WMCore
 def __init__(self, config, generator):
     PeriodPoller.__init__(self, config, generator)
     # access to the entire agent's configuration
     self.agentCompleteConfig = generator.config
     # number of measurements (polling) before the values are evaluated
     # for possible alert sending (is set up in the _setUp method)
     self.numOfMeasurements = -1
     # list of instances of ProcessDetail class (processes (plus subprocesses)
     # that represent all (as read from the configuration) components of the agent
     self._components = []
     # list of instance of the Measurements class - measurements for 1 particular component
     self._compMeasurements = []
     self._setUp()
コード例 #5
0
ファイル: System.py プロジェクト: ticoann/WMCore
 def __init__(self, config, generator):
     PeriodPoller.__init__(self, config, generator)
     numOfMeasurements = round(self.config.period / self.config.pollInterval, 0)
     self._measurements = Measurements(numOfMeasurements)