gstlal  1.4.1
Public Member Functions | Public Attributes | List of all members
python.httpinterface.HTTPServers Class Reference
Inheritance diagram for python.httpinterface.HTTPServers:
[legend]
Collaboration diagram for python.httpinterface.HTTPServers:
[legend]

Public Member Functions

def __init__ (self, port=0, bottle_app=None, service_name="www", service_domain=None, service_properties=None, verbose=False)
 
def __del__ (self)
 

Public Attributes

 verbose
 
 service_publisher
 

Detailed Description

Utility to start, advertise, track and shutdown http servers on all
interfaces.  De-advertise and shutdown the servers by deleting this
object.  Do not allow the object to be garbage collected until you
wish the servers to be shutdown.

Example:

>>> # save return value in a variable to prevent garbage collection
>>> servers = HTTPServers(port = 12345)
>>> pass    # blah
>>> pass    # blah
>>> pass    # blah
>>> # shutdown servers by deleting object
>>> del servers

If port = 0 (the default) a port will be assigned randomly.
bottle_app should be a Bottle instance.  If bottle_app is None (the
default) then the current default Bottle application is used.

Definition at line 93 of file httpinterface.py.


The documentation for this class was generated from the following file: