springpython.remoting.pyro.PyroDaemonHolder
index
/home/gturnquist/spring-python-1.2.x/src/springpython/remoting/pyro/PyroDaemonHolder.py

Copyright 2006-2008 SpringSource (http://springsource.com), All Rights Reserved
 
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
 
    http://www.apache.org/licenses/LICENSE-2.0
 
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

 
Modules
       
Pyro
logging
threading

 
Functions
       
deregister(service_name, host, port)
Deregister the named service by removing it from the list of
managed services and also disconnect from the daemon.
getaddrinfo(...)
getaddrinfo(host, port [, family, socktype, proto, flags])
    -> list of (family, socktype, proto, canonname, sockaddr)
 
Resolve host and port into addrinfo struct.
gethostbyname(...)
gethostbyname(host) -> address
 
Return the IP address (a string of the form '255.255.255.255') for a host.
register(pyro_obj, service_name, host, port)
Register the pyro object and its service name with the daemon.
Also add the service to a dictionary of objects. This allows the
PyroDaemonHolder to intelligently know when to start and stop the
daemon thread.
resolve(host, port)
shutdown(daemon_host, daemon_port)
This provides a hook so an application can deliberately shutdown a
daemon thread.

 
Data
        logger = <logging.Logger instance>
pyro_threads = {}
serviceList = {}