示例#1
0
 def __init__(self, connection, pureImplementationMappings=None):
     self.connection = connection
     self.stayOpenOnExit = False
     self.pureImplementationMappings = \
         pureImplementationMappings or DefaultPureImplementationMappings.getMappings()
     self.objectRegistry = ObjectRegistry.ObjectRegistry()
     self.objectRehydrator = PythonObjectRehydrator.PythonObjectRehydrator(
         self.pureImplementationMappings
         )
     self.lock = threading.Lock()
示例#2
0
文件: Executor.py 项目: nkhuyu/ufora
    def __init__(self, connection, pureImplementationMappings=None):
        """Initialize a Pyfora executor.

        connection - a pyfora.Connection.Connection, or something with similar interface.
        """
        self.connection = connection
        self.stayOpenOnExit = False
        self.pureImplementationMappings = pureImplementationMappings or DefaultPureImplementationMappings.getMappings()
        self.objectRegistry = ObjectRegistry.ObjectRegistry()
        self.objectRehydrator = PythonObjectRehydrator.PythonObjectRehydrator(self.pureImplementationMappings)
        self.futures = {}
        self.lock = threading.Lock()
示例#3
0
    def __init__(self, connection, pureImplementationMappings=None):
        """Initialize a Pyfora executor.

        connection - a pyfora.Connection.Connection, or something with similar interface.
        """
        self.connection = connection
        self.stayOpenOnExit = False
        self.pureImplementationMappings = pureImplementationMappings or DefaultPureImplementationMappings.getMappings(
        )
        self.objectRegistry = ObjectRegistry.ObjectRegistry()
        self.objectRehydrator = PythonObjectRehydrator.PythonObjectRehydrator(
            self.pureImplementationMappings)
        self.futures = {}
        self.lock = threading.Lock()