コード例 #1
0
ファイル: __init__.py プロジェクト: Cophy08/spring-python
 def __del__(self):
     """
     When the service exporter goes out of scope and is garbage collected, the
     service must be deregistered.
     """
     from springpython.remoting.pyro import Pyro4DaemonHolder
     Pyro4DaemonHolder.deregister(self.service_name, self.service_host, self.service_port)
コード例 #2
0
ファイル: __init__.py プロジェクト: ws-os/spring-python
 def __del__(self):
     """
     When the service exporter goes out of scope and is garbage collected, the
     service must be deregistered.
     """
     from springpython.remoting.pyro import Pyro4DaemonHolder
     Pyro4DaemonHolder.deregister(self.service_name, self.service_host,
                                  self.service_port)
コード例 #3
0
ファイル: __init__.py プロジェクト: Cophy08/spring-python
    def after_properties_set(self):
        import Pyro4
        from springpython.remoting.pyro import Pyro4DaemonHolder
        if self.service is None: raise Exception("service must NOT be None")
        if self.service_name is None: raise Exception("service_name must NOT be None")
        if self.service_host is None: raise Exception("service_host must NOT be None")
        if self.service_port is None: raise Exception("service_port must NOT be None")
        self.logger.debug("Exporting %s as a Pyro service at %s:%s" % (self.service_name, self.service_host, self.service_port))
	wrapping_obj = PyroWrapperObj(self.service)
        Pyro4DaemonHolder.register(wrapping_obj, self.service_name, self.service_host, self.service_port)
コード例 #4
0
ファイル: __init__.py プロジェクト: ws-os/spring-python
 def after_properties_set(self):
     import Pyro4
     from springpython.remoting.pyro import Pyro4DaemonHolder
     if self.service is None: raise Exception("service must NOT be None")
     if self.service_name is None:
         raise Exception("service_name must NOT be None")
     if self.service_host is None:
         raise Exception("service_host must NOT be None")
     if self.service_port is None:
         raise Exception("service_port must NOT be None")
     self.logger.debug(
         "Exporting %s as a Pyro service at %s:%s" %
         (self.service_name, self.service_host, self.service_port))
     wrapping_obj = PyroWrapperObj(self.service)
     Pyro4DaemonHolder.register(wrapping_obj, self.service_name,
                                self.service_host, self.service_port)