Esempio n. 1
0
 def serve(self):
     daemon.cleanup(self.server_config)
     self.manager = driver.DriverManager(
         self.namespace,
         self.verification,
         invoke_on_load=True,
         invoke_kwds=self.verification_config)
     self.driver = self.manager.driver
     rpc_server = xmlrpc.get_server(self.server_config)
     #TODO(dshulyak) verification api should know what methods to serve
     rpc_server.register_function(self.driver.listen, 'listen')
     rpc_server.register_function(self.driver.send, 'send')
     rpc_server.register_function(self.driver.get_info, 'get_info')
     rpc_server.register_function(self.driver.test, 'test')
     return daemon.run_server(rpc_server, self.server_config)
Esempio n. 2
0
 def serve(self):
     daemon.cleanup(self.server_config)
     self.manager = driver.DriverManager(
         self.namespace,
         self.verification,
         invoke_on_load=True,
         invoke_kwds=self.verification_config)
     self.driver = self.manager.driver
     rpc_server = xmlrpc.get_server(self.server_config)
     # TODO(dshulyak) verification api should know what methods to serve
     rpc_server.register_function(self.driver.listen, 'listen')
     rpc_server.register_function(self.driver.send, 'send')
     rpc_server.register_function(self.driver.get_info, 'get_info')
     rpc_server.register_function(self.driver.test, 'test')
     return daemon.run_server(rpc_server, self.server_config)
Esempio n. 3
0
 def clean(self):
     return daemon.cleanup(self.server_config)
Esempio n. 4
0
 def clean(self):
     return daemon.cleanup(self.server_config)