Exemplo n.º 1
0
 def attach(self):
     server = self.server
     server._nodeClient = subscriber.rMakeServerNodeClient(server.cfg, self)
     server._nodeClient.connect()
     server._subscribers = [subscriber._JobDbLogger(server.db),
                             # it's important that the job logger comes 
                             # first, since that means the state will be 
                             # recorded in the database before it is 
                             # published
                            subscriber._RmakeBusPublisher(
                                                     server._nodeClient)]
     server._internalSubscribers = list(server._subscribers)
     server._addMethods(self)
     server._canBuild = self._canBuild
     server._authCheck = self._authCheck
     server._initializeNodes = self._initializeNodes
     server.worker = Worker(server.cfg, server._nodeClient, server._logger)
Exemplo n.º 2
0
 def attach(self):
     server = self.server
     server._nodeClient = subscriber.rMakeServerNodeClient(server.cfg, self)
     server._nodeClient.connect()
     server._subscribers = [
         subscriber._JobDbLogger(server.db),
         # it's important that the job logger comes
         # first, since that means the state will be
         # recorded in the database before it is
         # published
         subscriber._RmakeBusPublisher(server._nodeClient)
     ]
     server._internalSubscribers = list(server._subscribers)
     server._addMethods(self)
     server._canBuild = self._canBuild
     server._authCheck = self._authCheck
     server._initializeNodes = self._initializeNodes
     server.worker = Worker(server.cfg, server._nodeClient, server._logger)
Exemplo n.º 3
0
 def _connectBus(self):
     self.nodeClient = mn_subscriber.rMakeServerNodeClient(self.cfg, self)
     self.nodeClient.connect()
     self._subscribers.append(mn_subscriber._RmakeBusPublisher(self.nodeClient))