ait.dsn.sle.util.sle_interface_mgr_server Module
- class ait.dsn.sle.util.sle_interface_mgr_server.SleMgrServers(services, **kwargs)
Bases:
Greenlet
- attach_downlink_transfer_handler(handler)
Attaches the log handler to the RAF and RCF services for TransferBuffer events
- bring_up_services()
Runs the up-start service life cycle (connect,bind,start) for each service
- build_servers()
Builds the REST and UDP servers
- default_sle_mgr_host = '127.0.0.1'
- default_sle_mgr_rest_port = 7654
- default_sle_mgr_udp_port = 9000
- get_service_start_parms(service_type)
Returns a dictionary that will be converted into a set of REST query parameters for a given service type. :param service_type: ServiceType enumeration :return: dict of service values
- kill_servers()
Close the socket and bring down the UDP and REST servers
- run_servers()
Run the REST and UDP services. Creates a UDP socket for data upload
- service_names_to_enums()
Utility method that returns list of service type enumbs based on list of names passed in
- sle_mgr_host = '127.0.0.1'
- sle_mgr_rest_port = 7654
- sle_mgr_udp_port = 9000
- tear_down_services()
For each active service, calls the teardown lifecycle (stop,unbind,disconnect)
- upload_data(data, num_uploads=1)
Uploads data to the CLTU service. First a number of upload to to UDP calls are made followed by a final REST call to perform CLTU upload :param data: byte-array data to be uploaded :param num_uploads: Number of data uploads to run
- xfer_bffr_log_handler(pdu)
Simple handler that prints the PDU event name to the logger :param pdu: PDU event