Ejemplo n.º 1
0
    def start(self):
        """Causes the reporting subsystem and any drivers to be started
        """
        map(lambda x: x.start(), self.drivers.itervalues())

        # set all checkers that loader has hooked in to be run on the
        # given interval
        checkstarter = lambda period, checker: util.periodicCallInThread(checker).start(period)
        for args in self.checkers:
            # wait 300 seconds to start each checker, to prevent startup lag from
            # throwing off the checkers
            reactor.callLater(2, checkstarter, *args)
Ejemplo n.º 2
0
    def start(self):
        """Causes the reporting subsystem and any drivers to be started
        """
        map(lambda x: x.start(), self.drivers.itervalues())

        # set all checkers that loader has hooked in to be run on the
        # given interval
        checkstarter = lambda period, checker: util.periodicCallInThread(
            checker).start(period)
        for args in self.checkers:
            # wait 300 seconds to start each checker, to prevent startup lag from
            # throwing off the checkers
            reactor.callLater(2, checkstarter, *args)
Ejemplo n.º 3
0
 def start(self):
     util.periodicCallInThread(self.update).start(self.rate)
Ejemplo n.º 4
0
 def start(self):
     util.periodicCallInThread(self.update).start(self.rate)