示例#1
0
    def CreateRPC(self):
        """Creates RPC object instance.

    Returns:
      a instance of RPC.
    """
        return apiproxy_rpc.RealRPC(stub=self)
示例#2
0
    def CreateRPC(self):
        """Creates RPC object instance.

    Returns:
      a instance of RPC.
    """
        # AppScale: Use custom thread-based RPC.
        return apiproxy_rpc.RealRPC(stub=self)
示例#3
0
 def CreateRPC(self):
     """ Create an RPC that can be used asynchronously. """
     # If the runtime is importing a module, fall back to the non-threaded RPC.
     # This prevents a deadlock in cases when the RealRPC thread tries to
     # acquire the import lock.
     if imp.lock_held():
         return apiproxy_rpc.RPC(stub=self)
     else:
         return apiproxy_rpc.RealRPC(stub=self)
示例#4
0
 def CreateRPC(self):
     """ Create an RPC that can be used asynchronously. """
     if imp.lock_held():
         return apiproxy_rpc.RPC(stub=self)
     else:
         return apiproxy_rpc.RealRPC(stub=self)
示例#5
0
 def CreateRPC(self):
     """ Create an RPC that can be used asynchronously. """
     return apiproxy_rpc.RealRPC(stub=self)
示例#6
0
 def CreateRPC(self):
     return apiproxy_rpc.RealRPC(stub=self)