AntanoServer¶
-
class
server.AntanoServer(_server_param)¶ Bases:
server.ServerThe Antoano - Server combines TCP, UDP, Websocket and REST connectivitiy to all Antano - Clients.It is ultra reliable and performant as it selects the best way for connection for each use-case. Further more it is easily scaleable and prepared to run in a cluster. :param _server_param {Dict ServerParams} – Contains a dict with all ServerParameter: :param _config {dict <string, string>} – current loaded config: :param _cur {db cursor} – current hot db cursor:
Methods Summary
add_entity(_entity)Adds the entity to a the server-cache get_service(a_service)Gets a specific service with a given service params get_version()get_version returns the current version of the server init_logging(_log_level)Inits all logging features to our server prepare_http_service()Wrapper for config all httpd and nginx stuff start(_server_param)Starts all services and inits the database start_additional_services()Starts additional services like internal UNIX or internal REST start_services()Starts all services from current active_service params stop()Stops all services in each process Methods Documentation
-
add_entity(_entity)¶ Adds the entity to a the server-cache
Parameters: {Entity} -- current entity (_entity) –
-
get_service(a_service)¶ Gets a specific service with a given service params
Parameters: {Dict<string, obj>} -- Server Params (a_service) – Returns: Service – a service Object
-
static
get_version()¶ get_version returns the current version of the server
Returns: [string] – [version string]
-
static
init_logging(_log_level)¶ Inits all logging features to our server
Parameters: {[int]} -- [a specific logging_level] (_log_level) –
-
prepare_http_service()¶ Wrapper for config all httpd and nginx stuff
-
start(_server_param)¶ Starts all services and inits the database
-
start_additional_services()¶ Starts additional services like internal UNIX or internal REST
-
start_services()¶ Starts all services from current active_service params
-
stop()¶ Stops all services in each process
-