CN-122018925-A - Unified representation and conversion method and device for application
Abstract
The invention provides a unified application representation and conversion method and device, wherein the method comprises the steps of generating an adaptation strategy of an application to be converted based on a preset adaptation rule matched with unified application representation and target environment characteristics; and deploying the application to be converted based on the target deployment configuration of the application target deployment environment. The method provided by the invention realizes standardized description of multi-type application through the unified presentation layer, eliminates information island, dynamically generates target deployment configuration through combining environment characteristics through the self-adaptive conversion layer, and realizes automatic adaptation across heterogeneous environments. Therefore, the problems that application description is not uniform, configuration needs to be modified manually in a large amount in cross-environment deployment and errors are prone to occur in the prior art are effectively solved, the application adaptation period is obviously shortened, and the delivery efficiency and portability of the application in complex environments such as a computing network are improved.
Inventors
- XU JUNDONG
- Shen linjiang
- TIAN REN
Assignees
- 浪潮通信信息系统有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251224
Claims (10)
- 1. A unified presentation and conversion method for an application, comprising: The method comprises the steps of obtaining unified application representation of an application to be converted and target environment characteristics of a target deployment environment, wherein the unified application representation is used for reflecting deployment conditions supported by the application to be converted; generating an adaptation strategy of the application to be converted based on the unified application representation and the target environment characteristic matching preset adaptation rules; adjusting the unified application representation based on the adaptation strategy to obtain target deployment configuration of the application to be converted; And deploying the application to be converted based on the target deployment configuration of the target deployment environment application.
- 2. The method for unified presentation and conversion of an application according to claim 1, wherein the generating an adaptation policy of the application to be converted based on the unified application presentation and the target environmental feature matching a preset adaptation rule comprises: Constructing a field mapping relation between the unified application representation and the target environment characteristic, wherein the field mapping relation comprises a source application field and a target environment field corresponding to the source application field; comparing the source field value of the source application field with the target field value of the target environment field to obtain a comparison result; And determining the adaptation strategy based on the comparison result and the preset adaptation rule, wherein the adaptation strategy comprises an application field to be adjusted, an adjustment mode and an adjustment priority.
- 3. The unified presentation and conversion method of an application according to claim 2, wherein the preset adaptation rules include a base adaptation rule and an application specific adaptation rule; the base adaptation rules include a set of rules for processing when an application is launched; the application-specific adaptation rules include a rule set for handling after starting an application.
- 4. The method for unified presentation and conversion of an application according to claim 2, wherein said constructing a field mapping relationship between said unified application presentation and said target environmental feature comprises: And inputting the application fields in the unified application representation and the environment fields in the target environment characteristics into a machine learning model to obtain the field mapping relation.
- 5. The unified representation and conversion method of an application according to any one of claims 1 to 4, wherein the unified application representation comprises basic domain information, dependent domain information, and configuration domain information of the application to be converted; The basic domain information is used for describing basic attribute information of the application to be converted; The dependency domain information is used for describing software and hardware environment dependencies required by the running of the application to be converted; The configuration domain information is used for describing configuration information required by the application to be converted to start running.
- 6. The method for unified presentation and conversion of applications according to claim 5, wherein the application types of the applications to be converted include stand-alone applications, distributed applications and component modules related to the distributed applications, and the distributed applications include service-oriented architecture applications, micro-service applications, cloud-native applications, AI applications and function computing applications; The dependency domain information comprises dependency relationships among component modules involved in the distributed application; the application representation of each component module includes base domain information, dependent domain information, and configuration domain information for the component module.
- 7. The unified presentation and conversion method for an application according to any one of claims 1 to 4, wherein the target environmental features include target hardware features and target software features; The hardware features at least comprise CPU attributes, GPU attributes, memory attributes, network attributes and storage attributes; the software features include at least an operating system version, a software runtime version, and a middleware version.
- 8. A unified presentation and conversion device for an application, comprising: the system comprises an acquisition unit, a storage unit and a storage unit, wherein the acquisition unit acquires unified application representation of an application to be converted and target environment characteristics of a target deployment environment, and the unified application representation is used for reflecting deployment conditions supported by the application to be converted; the strategy generation unit is used for generating an adaptation strategy of the application to be converted based on the unified application representation and the target environment characteristic matching with a preset adaptation rule; The adjustment unit is used for adjusting the unified application representation based on the adaptation strategy to obtain target deployment configuration of the application to be converted; And the conversion unit is used for applying the target deployment configuration based on the target deployment environment and deploying the application to be converted.
- 9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements a unified representation and conversion method of an application according to any of claims 1 to 7 when the computer program is executed by the processor.
- 10. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements a unified representation and conversion method of an application according to any of claims 1 to 7.
Description
Unified representation and conversion method and device for application Technical Field The present invention relates to the field of application software management technologies, and in particular, to a method and an apparatus for unified representation and conversion of applications. Background With the development of information technology and digitization, enterprise application types are increasingly diversified, and the enterprise application types cover various forms of complex distributed applications such as single-machine applications, service-oriented architecture (SOA), micro-Service applications, cloud-primary applications, AI applications, function computing applications and the like, and deployment running environments of the applications show isomerization characteristics, such as public clouds, private clouds, edge nodes, terminal equipment and the like. Particularly, with the rapid development of network technologies such as 5G, optical fibers and the like, ubiquitous computing cooperation becomes an important technical trend under the computing network background, and cloud edge end cooperative application rapidly develops in scenes such as industry, traffic, internet of vehicles and the like. Currently, cross-environment deployment of various types of applications is achieved mainly through some standardized description and resource arrangement tools. However, current applications represent fragmentation and require manual modification of a large number of configurations based on current conversion methods, resulting in the problem of inefficient cross-environment adaptation. Disclosure of Invention The invention provides a unified representation and conversion method and device for application, which are used for solving the defect that the cross-environment adaptation is low-efficiency in the current conversion method in the prior art. The invention provides a unified representation and conversion method of an application, which comprises the following steps: The method comprises the steps of obtaining unified application representation of an application to be converted and target environment characteristics of a target deployment environment, wherein the unified application representation is used for reflecting deployment conditions supported by the application to be converted; generating an adaptation strategy of the application to be converted based on the unified application representation and the target environment characteristic matching preset adaptation rules; adjusting the unified application representation based on the adaptation strategy to obtain target deployment configuration of the application to be converted; And deploying the application to be converted based on the target deployment configuration of the target deployment environment application. According to the unified representation and conversion method of the application provided by the invention, the generation of the adaptation strategy of the application to be converted based on the matching of the unified application representation and the target environment characteristic with a preset adaptation rule comprises the following steps: Constructing a field mapping relation between the unified application representation and the target environment characteristic, wherein the field mapping relation comprises a source application field and a target environment field corresponding to the source application field; comparing the source field value of the source application field with the target field value of the target environment field to obtain a comparison result; And determining the adaptation strategy based on the comparison result and the preset adaptation rule, wherein the adaptation strategy comprises an application field to be adjusted, an adjustment mode and an adjustment priority. According to the unified representation and conversion method of the application, the preset adaptation rules comprise basic adaptation rules and application-specific adaptation rules; the base adaptation rules include a set of rules for processing when an application is launched; the application-specific adaptation rules include a rule set for handling after starting an application. According to the unified representation and conversion method of the application provided by the invention, the construction of the field mapping relation between the unified application representation and the target environmental characteristic comprises the following steps: And inputting the application fields in the unified application representation and the environment fields in the target environment characteristics into a machine learning model to obtain the field mapping relation. According to the unified representation and conversion method of the application, which is provided by the invention, the unified application representation comprises basic domain information, dependent domain information and configuration domain information of the app