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

    Returns:
      a instance of RPC.
    """
        return apiproxy_rpc.RealRPC(stub=self)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #5
0
 def CreateRPC(self):
     """ Create an RPC that can be used asynchronously. """
     return apiproxy_rpc.RealRPC(stub=self)
Beispiel #6
0
 def CreateRPC(self):
     return apiproxy_rpc.RealRPC(stub=self)