gstlal 1.13.0
Loading...
Searching...
No Matches
python.httpinterface.HTTPServers Class Reference
Inheritance diagram for python.httpinterface.HTTPServers:
Collaboration diagram for python.httpinterface.HTTPServers:

Public Member Functions

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

Public Attributes

 verbose = verbose
 service_discovery = service_discovery
 service_publisher = servicediscovery.Publisher().__enter__()

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 105 of file httpinterface.py.

Constructor & Destructor Documentation

◆ __init__()

python.httpinterface.HTTPServers.__init__ ( self,
port = 0,
bottle_app = None,
service_name = "www",
service_domain = None,
service_properties = None,
verbose = False,
service_discovery = True )

Definition at line 126 of file httpinterface.py.

◆ __del__()

python.httpinterface.HTTPServers.__del__ ( self)

Definition at line 157 of file httpinterface.py.

Member Data Documentation

◆ service_discovery

python.httpinterface.HTTPServers.service_discovery = service_discovery

Definition at line 130 of file httpinterface.py.

◆ service_publisher

python.httpinterface.HTTPServers.service_publisher = servicediscovery.Publisher().__enter__()

Definition at line 132 of file httpinterface.py.

◆ verbose

python.httpinterface.HTTPServers.verbose = verbose

Definition at line 129 of file httpinterface.py.


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