System upgrade method, device and storage medium
By comparing the initial data attributes and target data attributes of the data middle platform system and selecting the appropriate data processor for data conversion, the compatibility problem in the data middle platform system upgrade is solved, and an efficient and compatible system upgrade is achieved.
Patent Information
- Application Number
- CN202411759052.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-12-03
AI Technical Summary
During the upgrade of the data middle platform system, the compatibility problem between the product data packets exported by the old version system and the new version system affects the successful upgrade of the system.
By comparing the initial data attributes of the initial data with the target data attributes required for the data system to be upgraded, select the target processor in the preset data processor set, and build a processor link for data conversion to ensure that the target data is compatible with the data system to be upgraded.
It realizes adaptive upgrade of the data middle platform system, improves the efficiency and compatibility of system upgrades, and reduces the workload of code development.
Smart Images

Figure CN119225770B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a system upgrade method, device and storage medium. Background Art
[0002] In the field of computer technology, data compatibility has always been one of the issues that need to be focused on in system upgrade scenarios.
[0003] For example, for a data middle-office system, when the data middle-office system is upgraded, the product data package is usually exported from the existing old version of the data middle-office, and then the product data package is imported into the new version of the data middle-office to upgrade the data middle-office system.
[0004] Therefore, whether the product data package exported from the old version of the data middle-office system is compatible with the new version of the data middle-office system becomes the key to whether the data middle-office system can be successfully upgraded. Summary of the invention
[0005] The present application at least provides a system upgrade method, apparatus, device and computer-readable storage medium.
[0006] The first aspect of the present application provides a system upgrade method, comprising: in response to a received system upgrade instruction, obtaining initial data of a data system to be migrated corresponding to the system upgrade instruction; selecting at least two target processors from a preset data processor set according to a comparison result between initial data attributes of the initial data and target data attributes required by the data system to be upgraded, wherein the preset data processors in the preset data processor set correspond to the data system to be migrated and / or the data system to be upgraded; performing link establishment processing based on the at least two target processors to obtain a processor link; inputting the initial data into the processor link for data conversion processing to obtain target data; and deploying the target data in the data system to be upgraded to obtain a target system.
[0007] In one embodiment, data attributes include version information and field information, and selecting at least two target processors from a preset data processor set based on a comparison result between the initial data attributes of the initial data and the target data attributes required by the data system to be upgraded includes: in response to the comparison result indicating that an initial version of the initial data and the target version required by the data system to be upgraded are the same, and there is a newly added mandatory field between the initial field information of the initial data and the target field information required by the data system to be upgraded, selecting the data processor corresponding to the data system to be migrated and the data processor of the data system to be upgraded as the target processor.
[0008] In one embodiment, the data processor includes a full parser, an incremental parser and an installer, and the selecting the data processor corresponding to the data system to be migrated and the data processor of the data system to be upgraded as the target processor includes: selecting the full parser corresponding to the data system to be migrated, the incremental parser between the data system to be migrated and the data system to be upgraded, and the installer of the data system to be upgraded as the target processor.
[0009] In one embodiment, after selecting the full parser corresponding to the data system to be migrated, the incremental parser between the data system to be migrated and the data system to be upgraded, and the installer of the data system to be upgraded as the target processor, the method includes: inputting the initial data into the processor link, performing data parsing processing on the initial data according to the full parser corresponding to the data system to be migrated in the processor link to obtain parsed data; inputting the parsed data into the incremental parser between the data system to be migrated and the data system to be upgraded to perform data assignment processing to obtain the target data; and deploying the target data in the data system to be upgraded according to the installer of the data system to be upgraded to obtain the target system.
[0010] In one embodiment, the data attributes include version information and field information, the data processor includes a full parser, an incremental parser and an installer, and according to the comparison result between the initial data attributes of the initial data and the target data attributes required by the data system to be upgraded, at least two target processors are selected from a preset data processor set, including: in response to the comparison result indicating that the initial version of the initial data and the target version required by the data system to be upgraded are different, selecting the full parser corresponding to the data system to be upgraded, the incremental parser between the data system to be migrated and the data system to be upgraded, and the installer of the data system to be upgraded as the target processors.
[0011] In one embodiment, after selecting the full parser corresponding to the data system to be upgraded, the incremental parser between the data system to be migrated and the data system to be upgraded, and the installer of the data system to be upgraded as the target processor, the method includes: inputting the initial data into the processor link, performing data parsing processing on the initial data according to the full parser corresponding to the data system to be upgraded in the processor link to obtain parsed data; inputting the parsed data into the incremental parser between the data system to be migrated and the data system to be upgraded to perform data conversion processing to obtain the target data; and deploying the target data in the data system to be upgraded according to the installer of the data system to be upgraded to obtain the target system.
[0012] In one embodiment, the link establishment process based on the at least two target processors to obtain the processor link includes: obtaining priority information of each target processor; and sorting and linking each target processor according to the priority information to obtain the processor link.
[0013] In one embodiment, before obtaining the priority information of each target processor, the method further includes: obtaining processor version information and processor type information of each target processor; and determining the priority information of each target processor according to the processor version information and the processor type information.
[0014] The second aspect of the present application provides a system upgrade device, including: a data acquisition module, used to respond to a received system upgrade instruction and acquire the initial data of the data system to be migrated corresponding to the system upgrade instruction; a comparison and selection module, used to select at least two target processors from a preset data processor set according to a comparison result between the initial data attributes of the initial data and the target data attributes required by the data system to be upgraded, wherein the preset data processors in the preset data processor set correspond to the data system to be migrated and / or the data system to be upgraded; a link establishment module, used to perform link establishment processing based on the at least two target processors to obtain a processor link; a data conversion module, used to input the initial data into the processor link for data conversion processing to obtain target data; and a data deployment module, used to deploy the target data in the data system to be upgraded to obtain a target system.
[0015] A third aspect of the present application provides an electronic device, including a memory and a processor, wherein the processor is used to execute program instructions stored in the memory to implement the above-mentioned system upgrade method.
[0016] A fourth aspect of the present application provides a computer-readable storage medium having program instructions stored thereon, which implement the above-mentioned system upgrade method when the program instructions are executed by a processor.
[0017] The above scheme, in response to the received system upgrade instruction, obtains the initial data of the data system to be migrated corresponding to the system upgrade instruction; obtains the comparison result by comparing the initial data attributes of the initial data with the target data attributes required by the data system to be upgraded, thereby characterizing the data processing process required to migrate the initial data to the data system to be upgraded; selects at least two target processors from a preset data processor set according to the comparison result between the initial data attributes and the target data attributes; performs link formation processing based on the at least two target processors to obtain a processor link; inputs the initial data into the processor link for data conversion processing to obtain target data compatible with the data system to be upgraded; and deploys the target data in the data system to be upgraded to obtain a target system. In this way, according to the data difference information between the initial data and the target data, the data processor used for system upgrade can be adaptively selected to convert the initial data and deploy it in the data system to be upgraded, thereby realizing data upgrade and system upgrade, and improving the efficiency of system upgrade.
[0018] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0020] Figure 1 is an exemplary data processing flow chart in the system upgrade method of the present application;
[0021] Figure 2 is a flowchart of an exemplary embodiment of the system upgrade method of the present application;
[0022] Figure 3 This is a flow chart of the installation of version v1 data by the version v1 system in the system upgrade method of the present application;
[0023] Figure 4 This is a flow chart of the installation of v1 version data by the v2 version system in the system upgrade method of the present application;
[0024] Figure 5 It is a structural diagram of the link-type installation of the data middle platform system in the system upgrade method of the present application;
[0025] Figure 6 It is a schematic diagram of a processor selection process in a system upgrade method of the present application along with system iteration upgrade;
[0026] Figure 7is a block diagram of a system upgrade device shown in an exemplary embodiment of the present application;
[0027] Figure 8 It is a structural schematic diagram of an embodiment of the electronic device of the present application;
[0028] Fig. 9 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION
[0029] The scheme of the embodiment of the present application is described in detail below in conjunction with the drawings of the specification.
[0030] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.
[0031] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the objects associated before and after are in an "or" relationship. In addition, "many" in this article means two or more than two. In addition, the term "at least one" in this article means any combination of at least two of any one or more of a plurality of, for example, including at least one of A, B, and C, can mean including any one or more elements selected from the set consisting of A, B, and C.
[0032] For ease of understanding and explanation, one of the applicable scenarios of this application is now exemplified. In the system upgrade application scenario, especially in the deployment or upgrade scenario of the data middle platform system, the product data package is usually exported from the existing old version of the data middle platform, and then the product data package is imported into the new version of the data middle platform for deployment, so as to upgrade the data middle platform system and enable the new version of the data middle platform to continue to use the data in the old version of the data middle platform.
[0033] For reference Figure 1 , Figure 1 This is an exemplary data processing flow chart in the system upgrade method of the present application. In the data middle platform system, the main process of installing and deploying the product data package can be summarized as parsing the product data package and converting it into a business object, and saving the business object to a database such as MySQL. The "parsing" and "installation" processes can be executed by multiple data processors of the data middle platform. For example, some data processors (parsers) can be used to execute data parsing logic, and other data processors (installers) can be used to execute data installation logic, etc.
[0034] See also Figure 2 , Figure 2This is a flowchart of an exemplary embodiment of the system upgrade method of the present application. The system upgrade method of the present application can be applied to a data system to be migrated, or to a data system to be upgraded, or to other data systems with certain data capabilities, which is not limited here. The following text mainly uses the application in the data system to be upgraded as an example for explanation. Specifically, it can include the following steps:
[0035] Step S110 , in response to the received system upgrade instruction, obtaining initial data of the data system to be migrated corresponding to the system upgrade instruction.
[0036] A system upgrade instruction refers to an instruction to upgrade from an old version system to a new version system. The old version system is equivalent to the data system to be migrated in this application, and the new version system is equivalent to the data system to be upgraded in this application. After receiving the system upgrade instruction, it is necessary to migrate part or all of the data in the old version system to the new version system (wherein the old version system can retain or delete the data selected for migration, which is not limited here). In addition, in addition to system upgrade instructions, it can also be instructions such as data migration instructions for controlling the migration of data from one system to another, which will not be elaborated here.
[0037] For example, after receiving the system upgrade instruction, the data system to be migrated and the data system to be upgraded corresponding to the system upgrade instruction can be learned from the system upgrade instruction, and the initial data in the data system to be migrated can be obtained. These initial data are the data specified by the system upgrade instruction to be migrated to the data system to be upgraded. This application does not limit whether the initial data is part of the data or all of the data in the data system to be migrated.
[0038] Step S120, selecting at least two target processors from a preset data processor set based on a comparison result between initial data attributes of the initial data and target data attributes required by the data system to be upgraded, wherein the preset data processors in the preset data processor set correspond to the data system to be migrated and / or the data system to be upgraded.
[0039] Data attributes refer to attribute information of data, such as version information of data, content information of data, time-related information of data, storage path information of data, etc., which are not limited here.
[0040] The data obtained from the data system to be migrated can be called initial data, and the data required to be deployed in the data system to be upgraded can be called target data. Both data have corresponding attribute information, and the attribute information of the two can be completely the same, partially the same, or completely different, which is not limited here.
[0041] It is understandable that although the initial data has not yet been deployed in the data system to be upgraded, the preset data requirement information in the data system to be upgraded can be obtained during the specific implementation process, that is, the target data attributes of the target data required by the data system to be upgraded; and / or the target data attributes of the target data required by the data system to be upgraded can be obtained from the deployed data of the data system to be upgraded, which is not limited here.
[0042] For example, if the data system to be migrated is a v1 version data center, the initial data attributes of the initial data in the data system to be migrated may include but are not limited to: v1 version and other information. For ease of explanation, the initial data can be recorded as v1 version data. Similarly, if the data system to be upgraded is a v2 version data center, the data system to be upgraded may require v2 version data, that is, the target data attributes include but are not limited to: v2 version and other information.
[0043] Therefore, by comparing the initial data attributes of the initial data with the target data attributes required by the data system to be upgraded, a comparison result between the initial data attributes and the target data attributes can be obtained, that is, the difference between the data required by different systems can be characterized by the data comparison result. Therefore, at least two target processors can be selected from the preset data processor set according to the comparison result to be responsible for parsing data and installing data.
[0044] Among them, it should be noted that before this step, the developer can pre-set multiple data processors for processing data during the system upgrade process according to the system upgrade requirements, thereby obtaining a preset data processor set. For example, different data processors are pre-developed for different systems, and different data processors can be applicable to different systems, and different systems can correspond to the same or different data processors, which is not limited here. For example, a system of version v1 can correspond to a data processor of version v1, and a system of version v2 can correspond to a data processor of version v2. That is, the preset data processors in the preset data processor set can correspond to the data system to be migrated and / or the data system to be upgraded. Specifically, it can include but is not limited to setting a data processor according to the data system to be migrated, or setting a data processor according to the data system to be upgraded, or setting a data processor according to the data system to be migrated and the data system to be upgraded, etc., which is not limited here.
[0045] For another example, in the scenario targeted by the system upgrade method of the present application, the chain of responsibility mode can be set starting from the initial v1 version system, and the full data parsing processor and data installation processor corresponding to the v1 version system need to be pre-set to install the v1 version product data package in the v1 version system.
[0046] Therefore, according to the difference between the initial data attributes and the target data attributes, a data processor is selected from a preset data processor set as a target processor, and the initial data can be processed by the target processor to obtain target data that can be deployed in the data system to be upgraded.
[0047] Step S130: performing link establishment processing based on at least two target processors to obtain a processor link.
[0048] Combined with the above examples, the target processor in this application includes a data processor for data parsing and a data processor for data installation and deployment. According to the system upgrade process in the above example, it is known that in the system upgrade process, it is usually necessary to first parse the initial data exported from the old version system, and then install and deploy the parsed data in the new version system. Therefore, according to the system upgrade process of this application, it can be seen that the timing of the data parsing process of this application should be before the timing of the data installation process.
[0049] Therefore, based on the system flow of the present application, at least two determined target processors can be processed for link building to obtain a processor link, and the processor link is used to perform data conversion processing on the initial data. For example, the version information of the initial data exported from the data system to be migrated is version v1, and the target data required by the data system to be upgraded is also version v1. The version information of the two data is the same, and the initial data structure of the initial data in the data system to be migrated is the same as the target data structure of the target data required by the data system to be upgraded. Then, the data processor used by the data system to be migrated can be selected from the preset data processor set to form a processor link. As a result, the data system to be upgraded can also process the received initial data according to the processor link.
[0050] Step S140, inputting the initial data into the processor link for data conversion processing to obtain target data.
[0051] In conjunction with the above example, the processor link includes at least a data processor for parsing data and a data processor for installing data. For ease of explanation, in the example description of this application, the data processor for parsing data is referred to as a parser, and the data processor for installing data is referred to as an installer.
[0052] Specifically, the processor link is composed of at least a parser and an installer. When the initial data is input into the processor link, the parser in the processor link can perform data conversion processing and / or data assignment processing on the initial data to obtain target data and install and deploy the target data into the data system to be migrated according to the installer.
[0053] The data parser can parse the structure of the product data package, read the data content and convert it into a business object that meets the installation conditions and / or assign values to the business object, etc. Each business module in the data center system has its own corresponding data parser. For example, if the file type in the product data package is Excel, that is, the file suffix is .xlsx, then the data parser of the data access module will read the file content as a WorkBook object, and then convert the WorkBook object into a DataCollection object; and the physical model module will convert the WorkBook object into a Table, Partiton, and Column object.
[0054] It should be noted that the implementation logic of the data parser can be determined by the module version number, and the module version number can be recorded in the version information of the product data package. If the module version number changes, it is necessary to develop a corresponding parser.
[0055] The installer is responsible for executing the data installation logic, such as saving business objects to a MySQL database. The implementation logic of the installer can be determined by the platform version number, with the goal of installing and deploying the current version of the product data package.
[0056] Step S150, deploying the target data in the data system to be upgraded to obtain the target system.
[0057] With reference to the above example, after obtaining the target data, the target data can be installed and deployed in the data system to be migrated, so that the data in the old version system can be migrated to the new version system, the system upgrade can be realized, and the target system can be obtained.
[0058] It can be seen that in the present application, in response to the received system upgrade instruction, the initial data of the data system to be migrated corresponding to the system upgrade instruction is obtained; by comparing the initial data attributes of the initial data with the target data attributes required by the data system to be upgraded, a comparison result is obtained, thereby characterizing the data processing process required to migrate the initial data to the data system to be upgraded; according to the comparison result between the initial data attributes and the target data attributes, at least two target processors are selected from the preset data processor set; based on the at least two target processors, a link formation process is performed to obtain a processor link; the initial data is input into the processor link for data conversion processing to obtain target data compatible with the data system to be upgraded; and the target data is deployed in the data system to be upgraded to obtain a target system. In this way, according to the data difference information between the initial data and the target data, a data processor for system upgrade can be adaptively selected to convert the initial data and deploy it in the data system to be upgraded, thereby realizing data upgrade and system upgrade, and improving the efficiency of system upgrade.
[0059] In summary, according to the difference between the initial data and the target data, the corresponding data processor is selected to build the processor chain, and the data parsing and installation process is implemented according to the processor chain. When compatible installation of different versions of product data packages, the adapted data processor can be selected as needed for data processing. The basic implementation does not require modification of the code logic in the old version system, and some data processors can be reused when installing different versions of product data packages, reducing the subsequent code development workload and improving system upgrade efficiency.
[0060] Based on the above embodiment, the embodiment of the present application describes the steps of selecting at least two target processors from a preset data processor set according to the comparison result between the initial data attributes of the initial data and the target data attributes required by the data system to be upgraded. The data attributes include version information and field information. Specifically, the method of this embodiment includes the following steps:
[0061] In response to the comparison result indicating that the initial version of the initial data and the target version required by the data system to be upgraded are the same, and that there are newly added mandatory fields between the initial field information of the initial data and the target field information required by the data system to be upgraded, the data processor corresponding to the data system to be migrated and the data processor of the data system to be upgraded are selected as the target processor.
[0062] The data attributes of the initial data and the target data may include but are not limited to data version information and data field information, etc. In the computer field, a field may represent the characteristics or attributes of data, which is particularly common in the data table of a database and will not be described in detail here.
[0063] It should be noted that different system upgrade scenarios have different upgrade requirements. For example, in some scenarios, the new version of the system can directly reuse the data processor in the old version of the system for data parsing and deployment and installation; however, in some scenarios, due to changes in the data requirements or data format in the new version of the system, it is necessary to convert the initial data exported from the old version of the system before deployment and installation.
[0064] Therefore, in this application, the data processing method in the current system upgrade scenario is determined by analyzing the difference between the initial data attributes and the target data attributes. Specifically, the data processing method can be determined by analyzing the difference in version information and data field in the initial data attributes and the target data attributes.
[0065] In this embodiment, if the comparison result indicates that the initial data attributes of the initial data are exactly the same as the target data attributes required by the data system to be upgraded (for example, the initial data in the data system to be migrated is version v1, and the field contents include A, B, and C; the target data required by the data system to be upgraded is also version v1, and the field contents also include A, B, and C), then the data requirements of the data system to be upgraded and the data system to be migrated are consistent, so the data system to be upgraded can use the data processor used when the initial data is installed and deployed in the data system to be migrated for processing. For example, the full data parsing processor and data installation processor of version v1 are used for processing.
[0066] If the comparison result indicates that the version information of the initial data is the same as the version information required by the data system to be upgraded, but the field information of the initial data is different from the field information required by the data system to be upgraded (for example, the initial data in the data system to be migrated is version v1, and the field content includes A, B, and C; the target data required by the data system to be upgraded is also version v1, and the field content includes A, B, C, and D), then it is necessary to obtain the field attribute of field D to determine whether field D is a required field. If the field information required by the data system to be upgraded has a new required field D compared to the field information of the initial data, it indicates that the processor using the old version of the system cannot completely successfully convert the initial data into the target data. Therefore, according to the system attribute information of the data system to be migrated and the data system to be upgraded (such as system version information, system identification information, etc., which are not limited here), a processor that can parse the initial data in the data system to be migrated and a processor that can install the target data in the data system to be upgraded can be selected from the preset data processor set.
[0067] Based on the above embodiment, the embodiment of the present application describes the steps of selecting the data processor corresponding to the data system to be migrated and the data processor of the data system to be upgraded as the target processor. The data processor includes a full parser, an incremental parser and an installer. Specifically, the method of this embodiment includes the following steps:
[0068] The full parser corresponding to the data system to be migrated, the incremental parser between the data system to be migrated and the data system to be upgraded, and the installer of the data system to be upgraded are selected as target processors.
[0069] In conjunction with the above-mentioned embodiment, the full parser refers to a processor that can fully parse the received data. Figure 3 , Figure 3 This is a flow chart of the installation of v1 version data by the v1 version system in the system upgrade method of the present application, taking the installation of the product data package of the physical model module as an example. Figure 3The processor link in includes the full parsing processor of the v1 version system and the installation processor of the v1 version system. After the installation program decompresses the product data package file, it can call the processor link to parse and install the data. Combined with the above-mentioned embodiment, it can be seen that when installing and deploying data, the v1 version system needs to use the full data parser (full parser) to parse all the received data, and then use the data installer (installer) of the v1 version system to install and deploy the data, so that the data can be successfully imported into the v1 version system.
[0070] Normally, developers need to develop corresponding parsers, installers, etc. for each version of the system to parse and install the received data. However, this is not necessary in this application. Developers can pre-develop incremental parsers between different version systems. Incremental parsers can be used to parse the data differences between the new and old version systems to achieve data conversion between different version systems. The pre-developed full parsers, incremental parsers, and installers can be combined into a preset data processor set, so that in the application scenario of automated system updates, the corresponding data processor can be selected from the preset data processor set according to the data differences between the new and old version systems.
[0071] For example, if the comparison result indicates that the version information of the initial data is the same as the version information required by the data system to be upgraded, but the field information of the initial data is different from the field information required by the data system to be upgraded (for example, the initial data in the data system to be migrated is version v1, and the field content includes A, B, and C; the target data required by the data system to be upgraded is also version v1, and the field content includes A, B, C, and D), and there is a newly added mandatory field D between the initial field information of the initial data and the target field information required by the data system to be upgraded, then you can refer to the following example. Figure 4 As shown, Figure 4 This is a flow chart of the installation of v1 version data by the v2 version system in the system upgrade method of this application. Figure 4 The processor link is Figure 3 An incremental parser is added on the basis of the processor link to handle the scenario where there are newly added mandatory fields in the business object. Its internal processing logic can be coded and implemented accordingly according to the actual situation of the business object changes, which will not be elaborated here. In this example, the full parser corresponding to the data system to be migrated is reused to parse the initial data, and then the incremental parser between the data system to be migrated and the data system to be upgraded is used to process the data objects output by the full parser, and then the installer corresponding to the data system to be upgraded is used to install and deploy the data. The installer corresponding to the data system to be upgraded can be the one obtained by the developer rewriting the code logic according to the installer corresponding to the data system to be migrated.
[0072] For example, in the v2 version of the data middle platform system, the physical model of the data warehouse tool HIVE supports users to configure whether to enable the data compression function in business terms. A compressionFlag field can be added to the metadata of the physical model to indicate whether the data compression function is enabled. However, the product data package exported in the v1 version of the data middle platform system does not have this field. Therefore, when installing v1 version data in the v2 version system, it is necessary to add an incremental parser in the processor link, which is mainly used to assign a default value to the compressionFlag field, so that the new version system is compatible with the installation of lower version data.
[0073] In another exemplary embodiment, if the comparison result indicates that the version information of the initial data is the same as the version information required by the data system to be upgraded, and the newly added field between the initial data and the target data is a non-mandatory field, then the newly added field is non-mandatory. Figure 3 The provided data processing flow is executed.
[0074] Based on the above embodiment, the embodiment of the present application describes the steps after selecting the full parser corresponding to the data system to be migrated, the incremental parser between the data system to be migrated and the data system to be upgraded, and the installer of the data system to be upgraded as the target processor. Specifically, the method of this embodiment includes the following steps:
[0075] The initial data is input into the processor link, and the initial data is parsed according to the full parser corresponding to the data system to be migrated in the processor link to obtain parsed data; the parsed data is input into the incremental parser between the data system to be migrated and the data system to be upgraded to perform data assignment processing to obtain target data; the target data is deployed in the data system to be upgraded according to the installer of the data system to be upgraded to obtain the target system.
[0076] In combination with the above-mentioned embodiment, in the process of processing the initial data by the processor link of this embodiment, the same reference can still be made to the embodiment of the present application. Figure 4 And in the above embodiments Figure 4 Description.
[0077] For example, if the v1 version system (data system to be migrated) needs to be upgraded to the v2 version system (data system to be upgraded) in the current system upgrade scenario, it is detected that the module version number of the product data package in the v1 version system and the v2 version system remains unchanged, and the business objects in the target data required by the v2 version system have new mandatory fields compared to the business objects in the initial data of the v1 version system. Therefore, when installing the initial data in the v1 version system into the v2 version system, the full parsing processor of the v1 version system can be selected, and the incremental parser between the v1 version system and the v2 version system and the installer of the v2 version system form a processor chain. The initial data of the v1 version is input into the processor chain, and the full parsing processor in the processor chain parses the initial data. After that, the mandatory fields in the parsed data (such as java class business objects) output by the full parsing processor are assigned default values through the incremental parser, and then the installation processor is used to install the data.
[0078] Based on the above embodiment, the embodiment of the present application describes the steps of selecting at least two target processors from a preset data processor set according to the comparison results between the initial data attributes of the initial data and the target data attributes required by the data system to be upgraded. The data attributes include version information and field information, and the data processor includes a full parser, an incremental parser, and an installer. Specifically, the method of this embodiment includes the following steps:
[0079] In response to the comparison result indicating that the initial version of the initial data and the target version required by the data system to be upgraded are different, the full parser corresponding to the data system to be upgraded, the incremental parser between the data system to be migrated and the data system to be upgraded, and the installer of the data system to be upgraded are selected as target processors.
[0080] The description is given in conjunction with the aforementioned embodiments. The aforementioned embodiments respectively illustrate a method for selecting a target processor from a preset data processor set to form a processor chain for data processing based on whether there is a new mandatory field between the initial data and the target data when the initial version of the initial data and the target version required by the data system to be upgraded are the same.
[0081] This embodiment mainly describes a method for selecting a target processor from a preset data processor set to form a processor chain for data processing when an initial version of initial data and a target version required by a data system to be upgraded are different.
[0082] It should be noted that if the initial version of the initial data is different from the target version required by the data system to be upgraded, that is, the module version number of the initial data is different from the module version number of the target data, then the internal organizational structure of the business object will change (which will lead to the module version number of the product data package changing). Therefore, not only can the installer used to install the data not reuse the installer of the previous old version system, but the full data parser also needs to use a parser adapted to the new version.
[0083] For example, when the initial data of version v1 is imported from the data system to be migrated into the data system to be upgraded that requires the target data of version v2, since the version information of the initial data of version v1 and the target data of version v2 has changed, it is necessary to select the full parser of version v2 corresponding to the data system to be upgraded, the incremental parser between the data system to be migrated and the data system to be upgraded, and the installer of version v2 corresponding to the data system to be upgraded to form a processor link. Among them, the incremental parser of this embodiment and the incremental parser in the aforementioned embodiment can be the same or different. According to the implementation requirements of the specific application scenario, one or more incremental parsers can be selectively preset between the data system to be migrated and the data system to be upgraded, which is not limited here.
[0084] Based on the above embodiment, the embodiment of the present application describes the steps after selecting the full parser corresponding to the data system to be upgraded, the incremental parser between the data system to be migrated and the data system to be upgraded, and the installer of the data system to be upgraded as the target processor. Specifically, the method of this embodiment includes the following steps:
[0085] The initial data is input into the processor link, and the initial data is parsed according to the full parser corresponding to the data system to be upgraded in the processor link to obtain parsed data; the parsed data is input into the incremental parser between the data system to be migrated and the data system to be upgraded to perform data conversion processing to obtain target data; the target data is deployed in the data system to be upgraded according to the installer of the data system to be upgraded to obtain the target system.
[0086] With reference to the foregoing embodiments, in the processor link of this embodiment, after the initial data is input into the processor link, the full parser corresponding to the data system to be upgraded in the processor link performs data parsing on the initial data to obtain parsed data; then, data conversion is performed in the incremental parser between the data system to be migrated and the data system to be upgraded to convert the parsed data into target data (the data business objects output by the full parser are converted into business objects required by the v2 version system, for example, the initial data was originally Excel data, and the target data after data conversion processing is JSON data, etc.), and then the installer corresponding to the data system to be upgraded (the installer of the v2 version system) is used to install and deploy the target data to obtain the target system.
[0087] Based on the above embodiments, the embodiment of the present application describes the steps of performing link establishment processing based on at least two target processors to obtain a processor link. Specifically, the method of this embodiment includes the following steps:
[0088] Obtain priority information of each target processor; sort and link each target processor according to the priority information to obtain a processor link.
[0089] As described in conjunction with the above-mentioned embodiment, in the process of forming a processor link according to target processors, each target processor should comply with a certain execution order.
[0090] In this embodiment, the execution order of each target processor can be determined by obtaining the priority information of each target processor; and each target processor is sorted and linked according to the priority information to obtain a processor link.
[0091] The priority information of the present application is a pre-set fixed serial number, or the priority information of the processor is determined by other information of the processor.
[0092] For example, the parsing and installation process of the product data package in the aforementioned embodiment can be regarded as a processor chain including multiple processors, and the implementation logic of the parsing and installation of the product data package can be split into these processors for implementation. Among them, the developer can pre-set a fixed serial number for each processor according to the iteration order of the version information (such as v1, v2, v3, etc.), so that multiple processors can be sorted and linked according to the serial number to form a processor chain (for example, it can be assumed that the processor with a smaller serial number is ranked higher, that is, the processor is executed first), and the product data package will be successfully installed in the system to be upgraded after being processed by all processors in this processor chain.
[0093] In summary, when implementing the installation logic of the product data package according to the link mode of this application, there must be a full-data parsing processor and an installation processor in the processor link, and there may be 0 to N incremental data parsing processors.
[0094] Based on the above embodiment, the embodiment of the present application describes the steps before obtaining the priority information of each target processor. Specifically, the method of this embodiment includes the following steps:
[0095] The processor version information and processor type information of each target processor are obtained; and the priority information of each target processor is determined according to the processor version information and the processor type information.
[0096] In conjunction with the above-mentioned embodiment, in addition to determining the priority information of each processor according to a preset serial number, the priority information of each processor can also be determined by the version information and type information of each processor. For example, in the link mode of the present application, the execution order of the old version processor should be before the execution order of the new version processor, the execution order of the full parser should be before the execution order of the incremental parser, and the execution order of the incremental parser should be before the execution order of the installer.
[0097] Therefore, the priority information of each target processor can be determined according to the processor version information and processor type information of each target processor, so that a processor link can be correctly established according to the priority information of each target processor.
[0098] Exemplarily, for a certain system upgrade scenario, the initial data in the v1 version system needs to be installed and deployed in the v3 version system, and there is also an iteratively upgraded v2 version system between the v3 version system and the v1 version system. To illustrate with the above example, if the module version numbers of the initial data of the v1 version system and the target data required by the v3 version system are the same, and the target data has new required fields compared to the initial data, then the full parser corresponding to the v1 version system, the first incremental parser between the v1 version system and the v2 version system, the second incremental parser between the v2 version system and the v3 version system, and the installer corresponding to the v3 version system can be selected in sequence according to the priority information to form a processor chain. The initial data exported from the v1 version system is then input into the processor chain for data processing, and installed and deployed in the v3 version system.
[0099] Based on the above embodiments, the present application embodiment illustrates the link-type data installation structure of the present application. Figure 5 As shown, Figure 5 This is a structural diagram of the link-type installation of the data middle platform system in the system upgrade method of this application, which mainly includes three components:
[0100] 1. Product package installation client (Package Install Client), which is equivalent to the interface called by the receiving management center for installing the product package for each business service, and can have the following functions:
[0101] 1. You can download the product data package to the local disk and decompress it according to the product data package download address of the interface parameters.
[0102] 2. Build a management tool for the product data package installation handler chain (Package Install HandlerMapping) and call its product data package installation method to parse and install the product data package.
[0103] 3. Return the product data package installation results to the management center service.
[0104] (ii) Product data package processor link management tool (Package Install HandlerMapping), which can have the following functions:
[0105] 1. Organize the processors registered in this service into processor links according to the platform version number of the product data package to be installed.
[0106] 2. Provide an entry for calling the processor link to install the product data package.
[0107] (III) The processor chain of the product data packet contains several processors. The processing logic and execution order of each processor can be implemented by the developers of each business module. Each processor can support the processing logic of pre-processing and post-processing. Pre-processing: the code from the method entry to the call of the downstream processor processing logic execution. Post-processing: the code that executes the related logic after the downstream processor has completed all processing.
[0108] For example, the pseudo code of the processor including only the pre-processing logic may be as follows:
[0109] public Result handle(Context context, PackageInstallHandlerChainchain){
[0110] / / Pre-processing logic
[0111] return chain.handle(context); / / Processing completed, call downstream processor for processing
[0112] }
[0113] The pseudo code for a processor that includes pre- and post-processing logic may look like this:
[0114] public Result handle(Context context, PackageInstallHandlerChainchain){
[0115] / / Traverse the list of installed files
[0116] / / Pre-processing logic
[0117] Result result = chain.handle(context); / / Call the downstream processor for processing
[0118] / / Post-processing logic
[0119] return result;
[0120] }
[0121] Furthermore, for the construction and calling design of the processor chain of the present application, there may be multiple processors in the processor chain. If the processor is manually instantiated and added to the processor chain each time the product data package is installed, a large amount of hard-coded code will be generated. Each time a new processor is developed, it needs to be manually added, which is not conducive to code maintenance. Therefore, one or more general tools can be set in advance to organize multiple adapted processors into a processor chain when each module service installs the product data package.
[0122] You can define a PackageInstallHandlerMapping object, and load the corresponding version information processor according to the platform version number (system version number) in the product data package in the constructor, and form them into a List as a processor link. The install method inside it implements the call of the filter link as the entry point for installing the product data package.
[0123] The PackageInstallHandlerMapping object builds an installation handler chain based on the version information in the product data package to be installed (such as the system platform version number and the module version number). An installation handler chain generally contains a full parser, several incremental data parsers, and an installer. Each handler must be declared as a Spring framework Bean object. The process of building an installation handler chain is the process of selecting a suitable handler from the IOC container. The selection logic for each type of handler can be combined with the following example description and the present application. Figure 6 To understand, Figure 6 This is a schematic diagram of the processor selection process in the system upgrade method of this application along with the system iteration upgrade:
[0124] 1) Full-scale parsing processor
[0125] For example, if the data system to be migrated starts from the computing platform version 2.2.0 and the first full parser is developed, then its internal module version number can be 1.0 and the platform version number can be 2.2.0. If the subsequent product data package structure remains the same, then this version of the full parser can parse all subsequent versions of the product data package files.
[0126] When the computing platform version 2.3.2 is used, the product data package structure changes, and the module version number becomes 2.0. At this time, the corresponding full parser is obtained, and its internal platform version number is 2.3.2.0 and the module version is 2.0. When installing the 2.2.0~2.3.1 version product data package, the full parser with the internal version number 2.2.0 will be selected; when installing the 2.3.2 version and later product data packages, the full parser with the internal version number 2.3.2 will be selected.
[0127] In summary: when building a processor chain for a product data package, if there is only one full parser, you can select the only full parser; if there are multiple full parsers, select the full parser with the same version number as the one specified by the user when building the PackageInstallHandlerMapping object.
[0128] 2) Incremental parsing processor
[0129] The incremental data parser is a supplement to the full parser in terms of function. It can supplement and support the missing parts of the full parser output object, and perform relevant incremental processing on the object output by the full parser processor to obtain the current version of the object. Therefore, when developing an incremental parser, it is not necessary to set the module version number, but to set it according to the platform version number. Therefore, when selecting an incremental parser, you can choose an incremental data parser whose platform version number is greater than the platform version number of the currently installed product data package.
[0130] 3) Install the processor
[0131] If there is only one installer in a module, you can search for the installer based on the processor type and add it to the processor link.
[0132] In summary, by building a processor link to implement the product data package installation process, when compatible with the installation of different versions of product data packages, there is basically no need to modify the code logic of the previous version (except for the installation logic). Instead, the compatibility of the installation is ensured by developing new processor logic, which complies with the open-closed principle of software design that is open to extensions and closed to modifications. Some installation processors can be reused when installing different versions of product data packages, reducing the workload of later code development.
[0133] This application uses a link mode to install the product data package of the data middle platform system, splitting the installation logic into different data processors. And it can automatically build the installation processor link. Taking advantage of the characteristics of the Springboot framework, each data processor is declared as a Bean of the Spring framework during code development. When the program is running, the appropriate processor link is automatically built for installation according to the platform version number of the installed product data package.
[0134] This can achieve continuous upgrade compatibility of the data middle-office system. As the data middle-office system continues to evolve, the product data packages exported by the historical version system can be installed all the time, so that the data middle-office system can be quickly deployed or upgraded from a certain version. It can also greatly improve the reusability of the product data package installation program code of the data middle-office system, and various processors can be used in combination when installing different versions of product data packages. It greatly improves the scalability and maintainability of the product data package installation program of the data middle-office system. As the version of the data middle-office system evolves, when installing historical packages, if the product data package is compatible, the original installation program can be reused. If it is not compatible, it is only necessary to develop a new full-scale parsing processor or incremental parsing processor without modifying the original program code.
[0135] It should be further explained that the execution subject of the system upgrade method may be a system upgrade device, for example, the system upgrade method may be executed by a terminal device or a server or other processing device, wherein the terminal device may be a user equipment (UE), a computer, a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the system upgrade method may be implemented by a processor calling a computer-readable instruction stored in a memory.
[0136] Figure 7 FIG. 1 is a block diagram of a system upgrade device shown in an exemplary embodiment of the present application. Figure 7As shown, the exemplary system upgrade device 700 includes: a data acquisition module 710, a comparison and selection module 720, a link building module 730, a data conversion module 740 and a data deployment module 750. Specifically:
[0137] The data acquisition module 710 is used to acquire the initial data of the to-be-migrated data system corresponding to the system upgrade instruction in response to the received system upgrade instruction.
[0138] The comparison and selection module 720 is used to select at least two target processors from a preset data processor set based on a comparison result between the initial data attributes of the initial data and the target data attributes required by the data system to be upgraded, wherein the preset data processors in the preset data processor set correspond to the data system to be migrated and / or the data system to be upgraded.
[0139] The link building module 730 is used to perform link building processing based on at least two target processors to obtain a processor link.
[0140] The data conversion module 740 is used to input the initial data into the processor link for data conversion processing to obtain target data.
[0141] The data deployment module 750 is used to deploy the target data in the data system to be upgraded to obtain the target system.
[0142] In this exemplary system upgrade device, in response to a received system upgrade instruction, the initial data of the data system to be migrated corresponding to the system upgrade instruction is obtained; by comparing the initial data attributes of the initial data with the target data attributes required by the data system to be upgraded, a comparison result is obtained, thereby characterizing the data processing process required to migrate the initial data to the data system to be upgraded; according to the comparison result between the initial data attributes and the target data attributes, at least two target processors are selected from a preset data processor set; based on the at least two target processors, a link formation process is performed to obtain a processor link; the initial data is input into the processor link for data conversion processing to obtain target data compatible with the data system to be upgraded; and the target data is deployed in the data system to be upgraded to obtain a target system. In this way, according to the data difference information between the initial data and the target data, a data processor for system upgrade can be adaptively selected to convert the initial data and deploy it in the data system to be upgraded, thereby realizing data upgrade and system upgrade, and improving the efficiency of system upgrade.
[0143] It should be noted that the device provided in the above embodiment and the method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In practical applications, the device provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0144] Among them, the functions of each module can be found in the system upgrade method embodiment, which will not be repeated here.
[0145] See also Figure 8 , Figure 8 1 is a schematic diagram of the structure of an embodiment of an electronic device of the present application. The electronic device 100 includes a memory 101 and a processor 102, and the processor 102 is used to execute program instructions stored in the memory 101 to implement the steps in any of the above system upgrade method embodiments. In a specific implementation scenario, the electronic device 100 may include but is not limited to: a microcomputer, a server, and in addition, the electronic device 100 may also include a mobile device such as a laptop computer and a tablet computer, which is not limited here.
[0146] Specifically, the processor 102 is used to control itself and the memory 101 to implement the steps in any of the above-mentioned system upgrade method embodiments. The processor 102 can also be called a CPU (Central Processing Unit). The processor 102 may be an integrated circuit chip with signal processing capabilities. The processor 102 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 102 can be implemented by an integrated circuit chip.
[0147] In this exemplary electronic device, in response to a received system upgrade instruction, the initial data of the data system to be migrated corresponding to the system upgrade instruction is obtained; by comparing the initial data attributes of the initial data with the target data attributes required by the data system to be upgraded, a comparison result is obtained, thereby characterizing the data processing process required to migrate the initial data to the data system to be upgraded; according to the comparison result between the initial data attributes and the target data attributes, at least two target processors are selected from a preset data processor set; based on the at least two target processors, a link formation process is performed to obtain a processor link; the initial data is input into the processor link for data conversion processing to obtain target data compatible with the data system to be upgraded; and the target data is deployed in the data system to be upgraded to obtain a target system. In this way, according to the data difference information between the initial data and the target data, a data processor for system upgrade can be adaptively selected to convert the initial data and deploy it in the data system to be upgraded, thereby realizing data upgrade and system upgrade, and improving the efficiency of system upgrade.
[0148] See also Fig. 9 , Fig. 9 The computer-readable storage medium 110 stores program instructions 111 that can be executed by a processor, and the program instructions 111 are used to implement the steps in any of the above system upgrade method embodiments.
[0149] In this exemplary storage medium, by running the program instructions in the storage medium, in response to the received system upgrade instruction, the initial data of the data system to be migrated corresponding to the system upgrade instruction is obtained; by comparing the initial data attributes of the initial data with the target data attributes required by the data system to be upgraded, a comparison result is obtained, thereby characterizing the data processing process required to migrate the initial data to the data system to be upgraded; according to the comparison result between the initial data attributes and the target data attributes, at least two target processors are selected from a preset data processor set; based on the at least two target processors, a link formation process is performed to obtain a processor link; the initial data is input into the processor link for data conversion processing to obtain target data compatible with the data system to be upgraded; and the target data is deployed in the data system to be upgraded to obtain a target system. In this way, according to the data difference information between the initial data and the target data, a data processor for system upgrade can be adaptively selected to convert the initial data and deploy it in the data system to be upgraded, thereby realizing data upgrade and system upgrade, and improving the efficiency of system upgrade.
[0150] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0151] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
[0152] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0153] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
Claims
1. A system upgrade method, characterized in that: The method comprises: In response to the received system upgrade instruction, acquiring initial data of the data system to be migrated corresponding to the system upgrade instruction; According to the comparison result between the initial data attributes of the initial data and the target data attributes required by the data system to be upgraded, at least two target processors are selected from a preset data processor set, wherein the preset data processors in the preset data processor set correspond to the data system to be migrated and / or the data system to be upgraded; the preset data processors include a full parser, an incremental parser and an installer; The step of selecting at least two target processors from a preset data processor set according to a comparison result between the initial data attributes of the initial data and the target data attributes required by the data system to be upgraded comprises: in response to the comparison result indicating that the initial data attributes and the target data attributes are the same, selecting a full parser and an installer corresponding to the data system to be migrated as the target processors; the data attributes include version information and field information; in response to the comparison result indicating that the version information of the initial data attributes and the target data attributes are the same and there is a newly added mandatory field in the field information of the target data attributes, selecting a full parser corresponding to the data system to be migrated, an incremental parser between the data system to be migrated and the data system to be upgraded, and an installer of the data system to be upgraded as the target processors; Performing link building processing based on the at least two target processors to obtain a processor link; Inputting the initial data into the processor link for data conversion processing to obtain target data; The target data is deployed in the data system to be upgraded to obtain a target system.
2. The method according to claim 1, characterized in that After selecting the full parser corresponding to the data system to be migrated, the incremental parser between the data system to be migrated and the data system to be upgraded, and the installer of the data system to be upgraded as the target processor, the method includes: Inputting the initial data into the processor link, and performing data parsing processing on the initial data according to the full parser corresponding to the data system to be migrated in the processor link to obtain parsed data; Inputting the parsed data into an incremental parser between the data system to be migrated and the data system to be upgraded to perform data assignment processing to obtain the target data; The target data is deployed in the data system to be upgraded according to the installer of the data system to be upgraded to obtain the target system.
3. The method according to claim 1, characterized in that The selecting at least two target processors from a preset data processor set according to a comparison result between the initial data attributes of the initial data and the target data attributes required by the data system to be upgraded comprises: In response to the comparison result indicating that the initial version of the initial data and the target version required by the data system to be upgraded are different, a full parser corresponding to the data system to be upgraded, an incremental parser between the data system to be migrated and the data system to be upgraded, and an installer of the data system to be upgraded are selected as the target processor.
4. The method according to claim 3, characterized in that After selecting the full parser corresponding to the data system to be upgraded, the incremental parser between the data system to be migrated and the data system to be upgraded, and the installer of the data system to be upgraded as the target processor, the method includes: Inputting the initial data into the processor link, and performing data parsing processing on the initial data according to the full parser corresponding to the data system to be upgraded in the processor link to obtain parsed data; Inputting the parsed data into an incremental parser between the data system to be migrated and the data system to be upgraded to perform data assignment processing to obtain the target data; The target data is deployed in the data system to be upgraded according to the installer of the data system to be upgraded to obtain the target system.
5. The method according to claim 1, characterized in that The link establishment process is performed based on the at least two target processors to obtain a processor link, including: Get the priority information of each target processor; The target processors are sorted and linked according to the priority information to obtain the processor link.
6. The method according to claim 5, characterized in that Before obtaining the priority information of each target processor, the method further includes: Obtain processor version information and processor type information of each target processor; The priority information of each target processor is determined according to the processor version information and the processor type information.
7. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the processor is used to execute program instructions stored in the memory to implement the method according to any one of claims 1 to 6.
8. A computer-readable storage medium having program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Cross-platform API migration method and device, medium and equipment
CN116382776A
Restoring data in a hierarchical storage management system
US20150363271A1