serverinfo
Defines the basic server management api.
Attributes
DATAFILE_ID = 'serverinfo'
module-attribute
mlogger = get_logger(__name__)
module-attribute
Classes
RoutesServerInfo(host, version, process_id, server_host, server_port)
Bases: object
Routes server info.
Source code in pyrevitlib/pyrevit/routes/server/serverinfo.py
Attributes
host = host
instance-attribute
version = version
instance-attribute
process_id = process_id
instance-attribute
server_host = server_host
instance-attribute
server_port = server_port
instance-attribute
Functions
get_cache_data()
Functions
get_registered_servers()
Get all registered servers on this machine.
Returns:
Type | Description |
---|---|
list[RoutesServerInfo]
|
list of registered servers |
register()
Register host:port for this host instance.
unregister()
Remove registered server host:port for this host instance.