コード例 #1
0
ファイル: collect.py プロジェクト: DSDev-NickHogle/terane
 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)
コード例 #2
0
ファイル: __init__.py プロジェクト: DSDev-NickHogle/terane
 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)
コード例 #3
0
ファイル: __init__.py プロジェクト: msfrank/terane
 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)
コード例 #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)