utilities.AAS_Archive_utils module

File to group useful methods for accessing and managing the AAS Archive.

utilities.AAS_Archive_utils.change_status(new_status)[source]

This method updated the status of an AAS Manager instance.

Args:

new_status (str): the new status of the AAS Manager instance.

utilities.AAS_Archive_utils.check_core_initialization()[source]

This method checks if the core has initialized so the Manager can be started.

utilities.AAS_Archive_utils.create_interaction_files()[source]

This method creates the necessary interaction files to exchange information between AAS Core and AAS Manager.

utilities.AAS_Archive_utils.create_log_files()[source]

This method creates the necessary log files to save services information.

utilities.AAS_Archive_utils.create_status_file()[source]

This method creates the status file of the AAS Manager and sets it to “initializing”. If the file exists because the AAS Manager has been restarted without terminating the Pod where it is running, the status file will be rewritten.

utilities.AAS_Archive_utils.file_to_json(file_path)[source]

This method gets the content of a JSON file.

Args:

file_path (str): the path of the JSON file.

Returns:

dict: content of the file in JSON format.

utilities.AAS_Archive_utils.get_status(entity)[source]

This method gets the status of the requested entity.

Args:

entity (str): The entity to get the status for.

Returns:

dict: status in JSON format.

utilities.AAS_Archive_utils.update_json_file(file_path, content)[source]

This method updates the content of a JSON file.

Args:

file_path (str): the path to the JSON file. content (dict): the content of the JSON file.

utilities.AAS_Archive_utils.xml_to_file(file_path, xml_content)[source]

This method writes the content of an XML in a file.

Args:

file_path (str): the path to the XML file. xml_content (bytes): the content of the XML file.