Пример #1
0
    def startService(self):
        print """Starting up."""
        if self.summaryCB:
            # TODO: handle deferred
            self.summarySubscribe().addErrback(log.err, 'while subscribing')

        StatusReceiverMultiService.startService(self)
Пример #2
0
	def startService(self):
		StatusReceiverMultiService.startService(self)

		self.agent = twisted.web.client.Agent(reactor, WebClientContextFactory())

		self.status = self.parent.getStatus()
		self.status.subscribe(self)
Пример #3
0
    def startService(self):
        print """Starting up."""
        if self.summaryCB:
            # TODO: handle deferred
            self.summarySubscribe().addErrback(log.err, 'while subscribing')

        StatusReceiverMultiService.startService(self)
Пример #4
0
  def startService(self):
    """Start the service and subscribe for updates."""
    self._create_event_logger()
    self._create_ts_mon_logger()

    StatusReceiverMultiService.startService(self)
    self.status = self.parent.getStatus()
    self.status.subscribe(self)
Пример #5
0
    def startService(self):
        StatusReceiverMultiService.startService(self)
        self.status = self.parent.getStatus()
        self.status.subscribe(self)

        self.thread_pool.start()
        log.msg('MonitoringStatusReceiver: starting looping call')
        self.loop.start(60, now=False)
Пример #6
0
 def startService(self):
   StatusReceiverMultiService.startService(self)
   if self.dry_run:
     return
   self.integrator_starting = self._start_integrator()
   common.log_on_error(self.integrator_starting, 'Could not start integrator')
   self._run_when_started(self.integrator.poll_builds)
   self.parent.getStatus().subscribe(self)
  def startService(self):
    StatusReceiverMultiService.startService(self)
    if self.dry_run:
      return

    buildbot = BuildbotGateway(self.parent)
    self.integrator.start(buildbot, self.buildbucket_service)
    self.integrator.poll_builds()
    self.parent.getStatus().subscribe(self)
Пример #8
0
 def startService(self):
     StatusReceiverMultiService.startService(self)
     if self.dry_run:
         return
     self.integrator_starting = self._start_integrator()
     common.log_on_error(self.integrator_starting,
                         'Could not start integrator')
     self._run_when_started(self.integrator.poll_builds)
     self.parent.getStatus().subscribe(self)
Пример #9
0
  def startService(self):
    """Start the service and subscribe for updates."""
    self._create_logger()
    self._create_event_logger()
    self._create_ts_mon_logger()

    StatusReceiverMultiService.startService(self)
    self.status = self.parent.getStatus()
    self.status.subscribe(self)
Пример #10
0
    def startService(self):
        """Twisted service is starting up."""
        StatusReceiverMultiService.startService(self)

        # Subscribe to get status updates.
        self._status = self.parent.getStatus()
        self._status.subscribe(self)

        # Schedule our first push.
        self._schedulePush()
Пример #11
0
  def startService(self):
    """Twisted service is starting up."""
    StatusReceiverMultiService.startService(self)

    # Subscribe to get status updates.
    self._status = self.parent.getStatus()
    self._status.subscribe(self)

    # Schedule our first push.
    self._schedulePush()
Пример #12
0
  def startService(self):
    """Twisted service is starting up."""
    StatusReceiverMultiService.startService(self)

    # Subscribe to get status updates.
    self._status = self.parent.getStatus()
    self._status.subscribe(self)

    # Init the client.
    self._client = PubSubClient(self.topic, self._service_account_file)
    yield self._client.start()

    # Schedule our first push.
    self._schedulePush()
  def startService(self):
    """Twisted service is starting up."""
    StatusReceiverMultiService.startService(self)

    # Subscribe to get status updates.
    self._status = self.parent.getStatus()
    self._status.subscribe(self)

    @defer.inlineCallbacks
    def start_loop():
      # Load and start our master push resource.
      self._res = yield self._loadResource()
      self._res.start()

      # Schedule our first push.
      self._schedulePush()
    reactor.callWhenRunning(start_loop)
Пример #14
0
  def startService(self):
    """Start the service and subscribe for updates."""
    logger = logging.getLogger(__name__)
    logger.propagate = False
    logger.setLevel(logging.INFO)
    # %(bbEvent)19s because builderChangedState is 19 characters long
    formatter = logging.Formatter('%(asctime)s - %(bbEvent)19s - %(message)s')
    # Use delay=True so we don't open an empty file while self.active=False.
    handler = TimedRotatingFileHandler(
        os.path.join(self.parent.basedir, self.logfile),
        when='H', interval=1, delay=True)
    handler.setFormatter(formatter)
    logger.addHandler(handler)
    self.logger = logger

    StatusReceiverMultiService.startService(self)
    self.status = self.parent.getStatus()
    self.status.subscribe(self)
    def startService(self):
        """Twisted service is starting up."""
        StatusReceiverMultiService.startService(self)

        # Subscribe to get status updates.
        self._status = self.parent.getStatus()
        self._status.subscribe(self)

        # Init the client.
        self._client = PubSubClient(self.topic, self._service_account_file)
        try:
            yield self._client.start()
        except Exception as e:
            # If we can't get a client started, then something has gone horribly
            # wrong, we'll want to stop the buildbot master.
            log.msg('PubSub: ERROR - Failed to start PubSub client %s' % e)
            reactor.stop()
            return

        # Schedule our first push.
        self._schedulePush()

        # Register our final push to happen when the reactor exits.
        reactor.addSystemEventTrigger('during', 'shutdown', self._stop)
Пример #16
0
 def startService(self):
     print """Starting up StashStatusPush"""
     self.summarySubscribe()
     StatusReceiverMultiService.startService(self)
 def startService(self):
     self.status = self.parent
     self.master = self.status.master
     StatusReceiverMultiService.startService(self)
     self.status.subscribe(self)
Пример #18
0
 def startService(self):
     print """Starting up."""
     StatusReceiverMultiService.startService(self)
     self.status = self.parent.getStatus()
     self.status.subscribe(self)
Пример #19
0
 def startService(self):
     """Starting up."""
     StatusReceiverMultiService.startService(self)
     self.status = self.parent.getStatus()
     self.status.subscribe(self)
     self.initialPush()
Пример #20
0
    def startService(self):
        print """Starting up."""
        if self.summaryCB:
            self.summarySubscribe()

        StatusReceiverMultiService.startService(self)
Пример #21
0
    def startService(self):
        print """Starting up."""
        if self.summaryCB:
            self.summarySubscribe()

        StatusReceiverMultiService.startService(self)
Пример #22
0
 def startService(self):
     StatusReceiverMultiService.startService(self)
     self._status = self.parent.getStatus()
     self._status.subscribe(self)
     log.msg("GitHubStatus: Service started.")
 def startService(self):
     StatusReceiverMultiService.startService(self)
     self.status = self.parent.getStatus()  # pylint: disable=W0201
     self.status.subscribe(self)
Пример #24
0
 def startService(self):
     print """Starting up StashStatusPush"""
     self.summarySubscribe()
     StatusReceiverMultiService.startService(self)
Пример #25
0
 def startService(self):
     self.status = self.parent
     self.master = self.status.master
     StatusReceiverMultiService.startService(self)
     self.status.subscribe(self)
Пример #26
0
 def startService(self):
     log.msg("""Starting up StashStatusPush""")
     self.summarySubscribe()
     StatusReceiverMultiService.startService(self)
Пример #27
0
 def startService(self):
     StatusReceiverMultiService.startService(self)
     self._status = self.parent.getStatus()
     self._status.subscribe(self)
Пример #28
0
 def startService(self):
   StatusReceiverMultiService.startService(self)
   self.status = self.parent.getStatus() # pylint: disable=W0201
   self.status.subscribe(self)
Пример #29
0
 def startService(self):
     StatusReceiverMultiService.startService(self)
     self._status = self.parent.getStatus()
     self._status.subscribe(self)
Пример #30
0
 def startService(self):
     print """Starting up."""
     StatusReceiverMultiService.startService(self)
     self.status = self.parent.getStatus()
     self.status.subscribe(self)
Пример #31
0
 def startService(self):
     """Starting up."""
     StatusReceiverMultiService.startService(self)
     self.status = self.parent.getStatus()
     self.status.subscribe(self)
     self.initialPush()
Пример #32
0
 def startService(self):
     StatusReceiverMultiService.startService(self)
     self.sourceStampSubscription = \
         self.parent.subscribeToSourceStampCompletions(
                 self.sourceStampFinished)