congress.common.eventlet_server module

congress.common.eventlet_server module

class congress.common.eventlet_server.APIServer(app_conf, name, host=None, port=None, threads=1000, keepalive=False, keepidle=None, bus_id=None, **kwargs)

Bases: oslo_service.service.ServiceBase

Server class to Data Service Node with API services.

This server has All API services in itself.

kill()
listen(key=None, backlog=128)

Create and start listening on socket.

Call before forking worker processes.

Raises Exception if this has already been called.

reset()

Reset service.

Called in case service running in daemon mode receives SIGHUP.

set_ssl(certfile, keyfile=None, ca_certs=None, cert_required=True)
start(key=None, backlog=128)

Run a WSGI server with the given application.

stop()

Stop service.

wait()

Wait until all servers have completed running.

class congress.common.eventlet_server.EventletFilteringLogger(logger)

Bases: object

write(msg)
class congress.common.eventlet_server.Server(name, bus_id=None)

Bases: oslo_service.service.Service

Server class to Data Service Node without API services.

start()

Start a service.

stop()

Stop a service.

Parameters:graceful – indicates whether to wait for all threads to finish or terminate them instantly
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.