Beispiel #1
0
 def startService(self):
     Plugin.startService(self)
     if not self._inputs == []:
         portal = Portal(CollectorRealm(self))
         portal.registerChecker(AllowAnonymousAccess())
         factory = PBServerFactory(portal)
         self._listener = reactor.listenTCP(self._port, factory, interface=self._address)
         logger.info("[%s] listening for remote messages on %s:%i" % (self.name,self._address,self._port))
     else:
         logger.info("[%s] no inputs configured" % self.name)
Beispiel #2
0
 def startService(self):
     """
     Start the database service.
     """
     # start processing logfd messages
     self._logfd = LogFD()
     self._logfd.startReading()
     # open the db environment
     self._env = Env(self._dbdir, self._options)
     logger.debug("[%s] opened database environment in %s" % (self.name,self._dbdir))
     Plugin.startService(self)
Beispiel #3
0
 def startService(self):
     """
     Start the database service.
     """
     # start processing logfd messages
     self._logfd = LogFD()
     self._logfd.startReading()
     # open the db environment
     self._env = Env(self._dbdir, self._options)
     logger.debug("[%s] opened database environment in %s" % (self.name,self._dbdir))
     Plugin.startService(self)
Beispiel #4
0
 def startService(self):
     Plugin.startService(self)
     if not self._inputs == []:
         portal = Portal(CollectorRealm(self))
         portal.registerChecker(AllowAnonymousAccess())
         factory = PBServerFactory(portal)
         self._listener = reactor.listenTCP(self._port,
                                            factory,
                                            interface=self._address)
         logger.info("[%s] listening for remote messages on %s:%i" %
                     (self.name, self._address, self._port))
     else:
         logger.info("[%s] no inputs configured" % self.name)