コード例 #1
0
 def create_client(self, comm_address=None):
     r"""Create a new ClientDriver instance."""
     inst = runner.create_driver(
         'ClientDriver', 'test_model_request.' + str(uuid.uuid4()),
         comm=self.client_comm,
         comm_address=comm_address,
         namespace=self.namespace, working_dir=self.working_dir,
         timeout=self.timeout)
     return inst
コード例 #2
0
 def create_server(self, comm_address=None):
     r"""Create a new ServerDriver instance."""
     inst = runner.create_driver('ServerDriver',
                                 'TestServerRequestDriver.' + self.uuid,
                                 comm=self.server_comm,
                                 comm_address=comm_address,
                                 namespace=self.namespace,
                                 working_dir=self.working_dir,
                                 timeout=self.timeout)
     return inst