Application migration method and related equipment
By obtaining the application model copy and repository in the application store and configuring and generating migration combination units, the problems of large storage space and coupling dependencies after application combination are solved, and convenient migration and isolation of applications in different environments are achieved.
Patent Information
- Application Number
- CN202510666225.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2025-09-02
AI Technical Summary
When developing multiple independent applications in combination, it leads to large storage space and coupled dependencies, making it difficult to effectively migrate the combination.
By sending resource request messages in the application store to obtain the model copy and warehouse of the application, and generating migration combination units based on the target resource configuration, ensuring that the reference relationship between the application and the warehouse remains consistent, achieving logical loose coupling, and supporting the migration of the application in different environments.
It improves the utilization rate of application development results, ensures the convenience of application migration in different environments, and maintains isolation and loose coupling relationships between applications.
Smart Images

Figure CN120578419A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of software technology, and in particular to an application migration method and related equipment. Background Art
[0002] An application (APP), also known as an app, is a computer program designed to perform one or more specific tasks. It can run in user mode, interact with users, and have a visual user interface. To meet industry demands, application functionality is becoming increasingly rich, and the development process is becoming increasingly complex.
[0003] Currently, as apps gain more and more functionality, developers often migrate and combine multiple independent apps based on their file directories when re-developing them. This results in a larger storage space for the newly combined app and creates coupling dependencies between apps, hindering app re-migration and re-combination.
[0004] In view of this, it is necessary to propose a new application migration method and related equipment to solve the above problems. Summary of the Invention
[0005] The present application provides an application migration method and related equipment, which can solve the problem of application migration in different environments.
[0006] The technical solution of this application is as follows:
[0007] In a first aspect, the present application provides an application migration method, applied to an application development platform, the method comprising:
[0008] A resource request message is sent to an application store, where the resource request message is used to instruct the acquisition of a model copy of a first application in the application store, where the model copy of the first application has a reference relationship with a first warehouse stored in the application store; the model copy of the first application and the first warehouse are received from the application store; a migration assembly unit of a second application is obtained by performing configuration based on target resources, where the target resources include: the model copy of the first application and the first warehouse; wherein, after the migration assembly unit of the second application is deployed, the second application can control the operation of the first application.
[0009] In some implementations, the above-mentioned method of "configuring based on the target resources to obtain the migration assembly unit of the second application" may include: constructing a model copy of the second application, the configuration information of the model copy of the second application including the unique identification information of the second warehouse; configuring the second warehouse based on the model copy of the first application; wherein the configuration information of the model copy of the first application includes the unique identification information of the first warehouse, and the unique identification information of the first warehouse is used to reference the first warehouse to the model copy of the first application; establishing a reference relationship between the model copy of the second application and the second warehouse based on the unique identification information of the second warehouse; and generating the migration assembly unit of the second application based on the model copy of the second application, the second warehouse and the reference relationship.
[0010] In some implementations, the above-mentioned method of “configuring the second warehouse based on the model copy of the first application” may include: adding the model copy of the first application to the second warehouse.
[0011] In some implementations, the above-mentioned method of "configuring the second warehouse" may also include: building a model copy of the data; adding the model copy of the data to the second warehouse, wherein after the model copy of the second application is deployed, the second application can load the data.
[0012] In some implementations, the configuration information of the model copy of the data and the model copy of the first application includes unique identification information of the second warehouse, and the unique identification information of the warehouse includes a globally unique identifier of the warehouse.
[0013] In some implementations, the unique identification information of the warehouse also includes the name of the warehouse and the current environment identifier of the warehouse.
[0014] In some implementations, the configuration information of the model copy includes at least one of a name of the model copy, a globally unique identifier of the model copy, a current environment identifier of the model copy, a storage location identifier of the model copy, and member information of the model copy.
[0015] In some implementations, after obtaining the migration assembly unit of the second application, the method further includes: sending the migration assembly unit of the second application to the application store.
[0016] In a second aspect, the present application provides an application migration method, which is applied to an application store, wherein the application store stores a model copy of a first application and a first warehouse, and the method includes:
[0017] Receive a resource request message from an application development platform, where the resource request message is used to instruct the acquisition of a model copy of the first application, and there is a reference relationship between the model copy of the first application and the first warehouse; in response to the resource request message, send the model copy of the first application and the first warehouse to the application development platform.
[0018] In some implementations, the migration assembly unit of the second application is constructed based on the model copy of the second application, the second warehouse, and the reference relationship between the model copy of the second application and the second warehouse. The second warehouse is configured based on the model copy of the first application; wherein the configuration information of the model copy of the first application includes the unique identification information of the first warehouse, and the unique identification information of the first warehouse is used to reference the first warehouse to the model copy of the first application. The configuration information of the model copy of the second application includes the unique identification information of the second warehouse, and the reference relationship between the model copy of the second application and the second warehouse is constructed based on the unique identification information of the second warehouse.
[0019] In some implementations, the second repository is configured by adding a copy of the model of the first application to the second repository.
[0020] In some implementations, the second warehouse is further configured by constructing a model copy of the data and adding the model copy of the data to the second warehouse, wherein the second application is able to load the data after the model copy of the second application is deployed.
[0021] In some implementations, the configuration information of the model copy of the data and the model copy of the first application includes unique identification information of the second warehouse, and the unique identification information of the warehouse includes a globally unique identifier of the warehouse.
[0022] In some implementations, the unique identification information of the warehouse also includes the name of the warehouse and the current environment identifier of the warehouse.
[0023] In some implementations, the configuration information of the model copy includes the name of the model copy, the globally unique identifier of the model copy, the current environment identifier of the model copy, the storage location identifier of the model copy, and member information of the model copy.
[0024] In some implementations, the method further includes: receiving a migration assembly unit of the second application from the application development platform, wherein the migration assembly unit of the second application is configured based on target resources, and the target resources include: a model copy of the first application and the first warehouse; after the migration assembly unit of the second application is deployed, the second application can control the operation of the first application; and storing the migration assembly unit of the second application.
[0025] In a third aspect, the present application provides an application migration device, which is applied to an application development platform, and the device includes a sending module and a processing module. The sending module is used to send a resource request message to an application store, and the resource request message is used to indicate the acquisition of a model copy of a first application in the application store, and there is a reference relationship between the model copy of the first application and the first warehouse stored in the application store. The receiving module is used to receive the model copy of the first application and the first warehouse from the application store. The processing module is used to configure based on target resources to obtain a migration combination unit of the second application, and the target resources include: a model copy of the first application and the first warehouse; wherein, after the migration combination unit of the second application is deployed, the second application can control the operation of the first application.
[0026] In some implementations, the processing module is specifically used to build a model copy of the second application, and the configuration information of the model copy of the second application includes the unique identification information of the second warehouse; based on the model copy of the first application, the second warehouse is configured; wherein, the configuration information of the model copy of the first application includes the unique identification information of the first warehouse, and the unique identification information of the first warehouse is used to reference the first warehouse to the model copy of the first application; based on the unique identification information of the second warehouse, a reference relationship is established between the model copy of the second application and the second warehouse; based on the model copy of the second application, the second warehouse and the reference relationship, a migration combination unit of the second application is generated.
[0027] In some implementations, the processing module is further configured to add a copy of the model of the first application to the second warehouse.
[0028] In some implementations, the processing module is further configured to construct a model copy of the data; and add the model copy of the data to the second warehouse, wherein after the model copy of the second application is deployed, the second application can load the data.
[0029] In some implementations, the configuration information of the model copy of the data and the model copy of the first application includes unique identification information of the second warehouse, and the unique identification information of the warehouse includes a globally unique identifier of the warehouse.
[0030] In some implementations, the unique identification information of the warehouse also includes the name of the warehouse and the current environment identifier of the warehouse.
[0031] In some implementations, the configuration information of the model copy includes at least one of a name of the model copy, a globally unique identifier of the model copy, a current environment identifier of the model copy, a storage location identifier of the model copy, and member information of the model copy.
[0032] In some implementations, the processing module is further configured to send the migration assembly unit of the second application to the application store.
[0033] In a fourth aspect, the present application provides an application migration device, which is applied to an application store, wherein the application store stores a model copy of a first application and a first warehouse, and the device includes a receiving module and a sending module. The receiving module is used to receive a resource request message from an application development platform, wherein the resource request message is used to instruct the acquisition of a model copy of the first application, and there is a reference relationship between the model copy of the first application and the first warehouse. The sending module is used to send the model copy of the first application and the first warehouse to the application development platform in response to the resource request message.
[0034] In some implementations, the migration assembly unit of the second application is constructed based on the model copy of the second application, the second warehouse, and the reference relationship between the model copy of the second application and the second warehouse. The second warehouse is configured based on the model copy of the first application; wherein the configuration information of the model copy of the first application includes the unique identification information of the first warehouse, and the unique identification information of the first warehouse is used to reference the first warehouse to the model copy of the first application. The configuration information of the model copy of the second application includes the unique identification information of the second warehouse, and the reference relationship between the model copy of the second application and the second warehouse is constructed based on the unique identification information of the second warehouse.
[0035] In some implementations, the second repository is configured by adding a copy of the model of the first application to the second repository.
[0036] In some implementations, the second warehouse is further configured by constructing a model copy of the data and adding the model copy of the data to the second warehouse, wherein the second application is able to load the data after the model copy of the second application is deployed.
[0037] In some implementations, the configuration information of the model copy of the data and the model copy of the first application includes unique identification information of the second warehouse, and the unique identification information of the warehouse includes a globally unique identifier of the warehouse.
[0038] In some implementations, the unique identification information of the warehouse also includes the name of the warehouse and the current environment identifier of the warehouse.
[0039] In some implementations, the configuration information of the model copy includes the name of the model copy, the globally unique identifier of the model copy, the current environment identifier of the model copy, the storage location identifier of the model copy, and member information of the model copy.
[0040] In some implementations, the apparatus further includes a storage module. The receiving module is further configured to receive a migration assembly unit for the second application from the application development platform, wherein the migration assembly unit for the second application is configured based on target resources, the target resources including: a model copy of the first application and the first repository; after the migration assembly unit for the second application is deployed, the second application can control the operation of the first application. The storage module is configured to store the migration assembly unit for the second application.
[0041] In a fifth aspect, the present application provides a computer-readable storage medium having computer program instructions stored thereon; when the computer program instructions are executed by an electronic device, the electronic device implements the method described in any possible implementation method of the first aspect.
[0042] Based on any of the first to fifth aspects above, the present application has at least the following beneficial effects:
[0043] In this application, the application store can receive a resource request message from an application development platform and, in response to the resource request message, send a model copy of the first application and the first warehouse to the application development platform. In other words, the application store can store copies of models developed and uploaded by other application development platforms and share these copies with the application development platform developing the application to be developed, thereby improving the utilization rate of development results from different application development platforms.
[0044] Furthermore, a reference relationship exists between the model copy and the first repository stored in the app store. This reference relationship ensures that the relationship between the model copy and the repository remains unchanged in any environment. The model copy and the repository function as a single entity, facilitating application migration across different environments. Furthermore, after application combination, the applications only have an operational control relationship, not a business access relationship. The model copy of the first application and the migration combination unit of the second application are logically loosely coupled, maintaining isolation between the applications.
[0045] It should 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
[0046] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.
[0047] Figure 1 A schematic diagram of a communication system provided in an embodiment of the present application;
[0048] Figure 2 A schematic diagram of a process flow of an application migration method provided in an embodiment of the present application;
[0049] Figure 3 A flowchart of another application migration method provided in an embodiment of the present application;
[0050] Figure 4 A schematic diagram of the model copy and warehouse reference of the application provided in the embodiment of the present application;
[0051] Figure 5 A schematic diagram of the relationship between application operations provided in the embodiment of the present application;
[0052] Figure 6 A flowchart of another application migration method provided in an embodiment of the present application;
[0053] Figure 7 A schematic diagram of the composition of the industrial Internet platform provided in an embodiment of the present application;
[0054] Figure 8 A flowchart of another application migration method provided in an embodiment of the present application;
[0055] Figure 9 A flowchart of another application migration method provided in an embodiment of the present application;
[0056] Figure 10 A schematic diagram of the structure of a migration device used in an embodiment of the present application;
[0057] Figure 11 A schematic structural diagram of a migration device according to another embodiment of the present application;
[0058] Figure 12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] In order to enable ordinary people in the art to better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
[0060] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. Thus, features defined as "first" or "second" may explicitly or implicitly include one or more of such features. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0061] It will also be understood that the term “comprising” indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements and / or components.
[0062] The term "or" is used to describe a relationship between related objects, indicating that two possible relationships exist. For example, "A or B" can represent either A or B. The character " / " generally indicates that the related objects are in an "or" relationship.
[0063] The term “exemplary” means “serving as an example, example, or illustration.” Any embodiment described as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0064] The term "at least one" means one or more, and "plurality" means two or more; the term "at least one" means one or more, and "plurality" means two or more.
[0065] The following is a brief introduction to the design concept of the embodiments of this application.
[0066] An application, also known as an application, is a computer program that is used to complete one or more specific tasks. It can run in user mode and interact with the user and can have a visual user interface.
[0067] As applications become increasingly versatile, developers often migrate and combine independent applications based on file directories. Traditionally, there are several methods for migrating applications and their data files to maintain a consistent relationship:
[0068] Relative path method: Applications and data files are typically located within the same directory, and a relative path relationship is established based on the directory. When the program is deployed to a specific environment, the environment relies on the relative path to establish a relationship between the program and the data file. The application then uses the fixed relative path to find the data file.
[0069] Specify the path: The application and data files are not necessarily in the same file directory. The user can specify the directory of the data file in the configuration file, and the application will find the data file according to the specified directory.
[0070] However, most applications developed on industrial internet platforms are deployed based on containers. Each application is a container, and applications are independent. Applications are rarely combined to form new application containers. Application granularity is process-based, which is not conducive to modular combination. Development on personal computers is mostly based on combining file directories (combination at the code level). Combined applications are becoming increasingly large in storage, requiring significant storage space when available in stores. Consequently, newly combined applications require significant storage space and are coupled and dependent on each other, making them difficult to migrate and combine.
[0071] In view of this, an embodiment of the present application provides an application migration method and related equipment, which relate to the field of information technology, especially to computer information systems, industrial cloud, Internet of Things and other fields, and are used to solve the problem of application migration in different environments.
[0072] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application can be combined with each other if there is no conflict.
[0073] The implementation environment of the embodiments of the present application is introduced below.
[0074] like Figure 1 As shown, Figure 1 A schematic diagram of a communication system provided in an embodiment of the present application. The communication system may include: an application development platform 101 and an application store 102. The application development platform 101 is any one of a plurality of application development platforms, and the application development platform 101 can communicate with the application store 102 via wired or wireless communication.
[0075] Specifically, the application development platform 101 can implement operations such as application development, maintenance, and upgrades, and can send applications to the application store 102. The application store 102 can store the received applications and share them with other application development platforms or user devices. The other application development platforms are any development platform among the multiple application development platforms except the application development platform 101 that sent the application.
[0076] It should be noted that in industrial-related scenarios, an Industrial Internet platform can be built based on electronic devices such as terminals, servers, and computers. This Industrial Internet platform can include an application development platform and an app store. Application developers can upload applications developed on the application development platform to the app store on the Industrial Internet platform, and users who need to use the applications can download and use them from the app store on the Industrial Internet platform.
[0077] Among them, the terminal can be a device with transceiver functions. The terminal can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; it can also be deployed on the water surface (such as ships, etc.); it can also be deployed in the air (for example, on airplanes, balloons and satellites, etc.). The terminal includes a handheld device, vehicle-mounted device, wearable device or computing device with wireless communication function. Exemplarily, the terminal can be a mobile phone, a tablet computer or a computer with wireless transceiver function. The terminal device can also be a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in unmanned driving, a wireless terminal in telemedicine, a wireless terminal in smart grid, a wireless terminal in smart city, a wireless terminal in smart home, etc.
[0078] The server may be a single server, or a server cluster composed of multiple servers. In some implementations, the server cluster may also be a distributed cluster.
[0079] This application does not limit the specific implementation of the electronic devices corresponding to the application development platform (such as application development platform 101) and the application store (such as application store 102).
[0080] It should be noted that the application development platform implementation steps involved in the embodiments of this application can all be implemented by the electronic device corresponding to the application development platform. The application store implementation steps involved in the embodiments of this application can all be implemented by the electronic device corresponding to the application store. The application development platform and the application store can be deployed on the same electronic device. Alternatively, the application development platform and the application store can be deployed on different electronic devices.
[0081] The following describes the application migration method provided in the embodiment of the present application by taking the application development platform and application store deployed on the same electronic device as an example.
[0082] After introducing the application scenario and implementation environment of the embodiment of the present application, the application migration method provided by the embodiment of the present application is introduced in detail in combination with the above-mentioned implementation environment.
[0083] The methods in the following embodiments can all be implemented in the above-mentioned electronic device. The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0084] like Figure 2 As shown, Figure 2 A flowchart of an application migration method provided in an embodiment of the present application is provided. The migration method may include: steps S201 to S205.
[0085] Step S201: The application development platform sends a resource request message to the application store.
[0086] The resource request message is used to instruct the user to obtain a model copy of the first application in the application store. Applications can be used to implement processing and computing logic, and applications can be composed of functional functions. The model copy of an application is configured based on the base model of the application. Each model copy of an application is assigned a specific repository, which can also be called a private repository.
[0087] Exemplarily, a warehouse can be a storage unit for various objects. For example, a warehouse can include: model copies of applications, model copies of data, etc. Alternatively, a warehouse can also include a warehouse.
[0088] Optionally, the resource request message may include: an identifier of the model copy of the first application.
[0089] It should be noted that the embodiments of the present application do not limit the identifier of the model copy of the first application. For example, the identifier of the model copy of the first application can be the name of the first application. For another example, the identifier of the model copy of the first application can be a globally unique identifier (GUID). For another example, the identifier of the model copy of the first application can be the name and GUID of the first application.
[0090] Illustratively, the identifier of the model copy of the first application is D1m0 (ie, the name of the model copy of the first application)+136EA987-8B63-9683F38435A8 (ie, the GUID).
[0091] In one possible implementation, the application development platform may determine the target resources for the second application to be developed. The target resources may include: a model copy of the first application, which the second application can control after deployment, and a first warehouse storing the first application's configuration data. The application development platform may then obtain an identifier for the model copy of the first application and, based on the identifier, generate a resource request message. The application development platform may then send the resource request message to the application store.
[0092] Optionally, the target resource may also include: a reference relationship between the model copy of the first application and the first warehouse. The reference relationship refers to the relationship between the model copy of the first application and the reference of the first warehouse. The model copy of the first application can reference the first warehouse, or the first warehouse can also reference the model copy of the first application.
[0093] Illustratively, after the application development platform determines the target resources of the second application to be developed, the application development platform may reference the first warehouse to the model copy of the first application based on the above reference relationship in response to an association instruction input by the user.
[0094] In the embodiment of the present application, the model copy of the first application is a model copy developed by other application development platforms and uploaded to the application store.
[0095] Step S202: The application store receives a resource request message from the application development platform.
[0096] Step S203: The application store sends a model copy of the first application and the first warehouse to the application development platform in response to the resource request message.
[0097] In one possible implementation, the application store stores a model copy of the first application and the first repository. Based on the identifier of the model copy of the first application, the application store can retrieve the model copy of the first application and the first repository, which has a reference relationship with the model copy of the first application, from the application store and send the model copy of the first application and the first repository to the application development platform. In other words, the model copy of the first application and the first repository are sent as a whole, facilitating application migration across different environments.
[0098] Step S204: The application development platform receives the model copy and the first warehouse of the first application from the application store.
[0099] Step S205: The application development platform is configured based on the target resources to obtain a migration combination unit of the second application.
[0100] After the second application's migration assembly unit is deployed, the second application can control the operation of the first application. For example, the second application can start or stop the first application. In other words, the relationship between the second application (i.e., the parent application) and the first application (i.e., the child application) it combines is a start-stop relationship, not an access relationship. This creates a logically loose coupling between the child application's model copy and its parent application's migration assembly unit, maintaining isolation between the applications.
[0101] In this embodiment, the application store can receive a resource request message from the application development platform, and in response to the resource request message, send a model copy and a first warehouse of the first application to the application development platform. That is to say, the application store can store model copies developed and uploaded by other application development platforms, and share model copies from other application development platforms with the application development platform that is developing the application to be developed, which can improve the utilization rate of development results of different application development platforms. In addition, there is a reference relationship between the model copy and the first warehouse stored in the application store. Based on the reference relationship, it can be ensured that the relationship between the model copy and the warehouse remains unchanged in any environment, and the model copy and the warehouse can be used as a whole to facilitate the migration of applications in different environments.
[0102] In the embodiments of this application, Figure 3 As shown, Figure 3 A flowchart of another application migration method provided in an embodiment of the present application is provided. In the application migration method, step S205 may include: steps S301 to S304.
[0103] Step S301: The application development platform builds a model copy of the second application.
[0104] The configuration information for the second application's model copy includes the unique identification information of the second warehouse. The unique identification information of the second warehouse is used to reference the second warehouse to the second application's model copy. In other words, a reference relationship between the second application's model copy and the second warehouse can be established based on the unique identification information of the second warehouse.
[0105] Optionally, the unique identification information of the second warehouse includes the globally unique identifier GUID of the second warehouse. Since the globally unique identifier GUID is a 128-bit data code, it is usually represented by a 32-byte string, which is used to ensure that the data code generated anywhere and at any time is unique and theoretically impossible to repeat. Therefore, the globally unique identifier GUID can uniquely identify the second warehouse globally, ensure that the relationship between the warehouse and the application remains unchanged in any environment, and ensure that the identity of the warehouse is unique when it is migrated in any environment, which facilitates the migration of applications in different environments. During the migration process, the model copy of the application and the referenced warehouse are treated as a whole. For example, the application and the referenced warehouse are put on the app store together, or when the application is downloaded from the app store, the warehouse associated with the application reference is downloaded together.
[0106] Of course, in some possible situations, the unique identification information of the second warehouse may also include a globally unique identifier NCGI, a globally unique identifier UUID, or other identifiers that can uniquely identify the second warehouse globally.
[0107] Optionally, the unique identification information of the second warehouse may also include: the current environment identification ID of the second warehouse. The current environment identification ID is a 64-bit digital code with a certain linear rule. These digital codes are usually unique within a specific range. The current environment identification ID of the second warehouse is a current environment identification ID generated for the second warehouse based on the cloud platform environment where the second warehouse is currently located. The current environment identification ID of the second warehouse is used to access the data information stored in the second warehouse. In other words, the current environment identification of the second warehouse is related to the cloud platform environment where it is located. If the second warehouse is migrated from one cloud platform environment to another cloud platform environment, the current environment identification of the second warehouse is regenerated according to the newly migrated cloud platform environment.
[0108] Optionally, the unique identification information of the second warehouse may also include: the name of the second warehouse, for example, warehouse A, warehouse B, etc.
[0109] For example, Figure 4 As shown, Figure 4 Schematic diagram of the model copy and repository reference of the application provided in the embodiment of the present application. The configuration information of the model copy of the second application includes: the unique identification information of the second warehouse, Private repositor C2, and the unique identification information of the second warehouse, Private repositor C2, including the global unique identifier of the second warehouse, GUIDR2, the current environment identifier of the second warehouse, IDR2, and the name of the second warehouse, NameR2. The identification of the model copy uses the globally unique identifier GUID, and the identity identifier of the model copy is unique in any environment it is migrated to.
[0110] In one possible implementation, the configuration information of the model copy of the second application also includes: a name of the model copy of the second application, a globally unique identifier of the model copy of the second application, a current environment identifier of the model copy of the second application, a storage location identifier of the model copy, and member information of the model copy. Of course, the configuration information of the model copy of the second application may also include any one, two, three, or a combination of four of the above information.
[0111] The name of the model copy of the second application can be customized according to the application's function, development scenario, etc., to meet the developer's personalized needs, for example, FU Model Copy1, FU Model Copy2, etc.
[0112] Optionally, the globally unique identifier of the model copy of the second application is a GUID, or the globally unique identifier of the second application may also be other identifiers such as NCGI, UUID, etc. that can uniquely identify the second application globally.
[0113] Optionally, the current environment ID of the model copy of the second application is generated for the second application based on the cloud platform environment in which the second application currently resides. The current environment ID of the second application is used to identify the cloud platform environment in which the second application resides. In other words, the current environment ID of the second application is related to the cloud platform environment in which it resides. If the second application is migrated from one cloud platform environment to another, the current environment ID of the second application is regenerated based on the newly migrated cloud platform environment.
[0114] Optionally, the storage location identifier of the model copy of the second application is Position repository, and the storage location identifier Position repository records the location of the storage warehouse of the model copy of the second application.
[0115] Optionally, the member information of the model copy of the second application is used to describe user-defined data. Specifically, the member information may include multiple members. A member is a data structure that stores information about the differentiated attributes of all applications and is saved in the data structure corresponding to the application.
[0116] Optionally, a member includes different member information such as member ID, member name, member data type, and member value. Through this structured data information, users can add corresponding member information for different applications.
[0117] For example, Figure 4As shown, the configuration information of the model copy of the second application also includes: the name NameC2 of the model copy of the second application, the global unique identifier GUIDC2 of the model copy of the second application, the current environment identifier IDC2 of the model copy of the second application, the storage location identifier Positionion repositoryC2 of the model copy and the member information C2 of the model copy.
[0118] In one possible implementation, the target resources may also include: a base model (or structural model) of the second application. After the application development platform determines the target resources of the second application, the application development platform may respond to a first operation instruction input by the user to create a model copy of the second application, respond to the first operation instruction, and generate a model copy of the second application based on the base model of the second application.
[0119] Step S302: The application development platform configures the second warehouse based on the model copy of the first application.
[0120] The configuration information of the model copy of the first application includes the unique identification information of the first warehouse, and the unique identification information of the first warehouse is used to reference the first warehouse to the model copy of the first application.
[0121] Optionally, the unique identification information of the first warehouse includes the global unique identifier of the first warehouse, the name of the first warehouse, and the current environment identifier of the first warehouse.
[0122] It should be noted that the unique identification information of the first warehouse is similar to the unique identification information of the second warehouse. Please refer to the description of the unique identification information of the second warehouse in the previous article, and the repeated parts will not be repeated.
[0123] In a possible implementation, the model copy of the first application is added to the second repository, so as to establish an association relationship between the model copy of the first application and the model copy of the second application.
[0124] Optionally, the configuration information of the model copy of the first application may also include the unique identification information of the second warehouse, the name of the model copy of the first application, the global unique identifier of the model copy of the first application, the current environment identifier of the model copy of the first application, the storage location identifier of the model copy of the first application, and at least one of the member information of the model copy of the first application.
[0125] It should be noted that the unique identification information of the second warehouse has been described in detail in the aforementioned method embodiment and will not be repeated here.
[0126] It should also be noted that the name, global unique identifier, current environment identifier, storage location identifier and member information of the model copy of the first application are similar to those of the second application. Please refer to the description of the relevant information of the second application in the previous article, and the repetitions will not be repeated.
[0127] For example, Figure 4 As shown, the configuration information of the model copy of the first application includes: the name of the model copy of the first application NameC1, the global unique identifier of the model copy of the first application GUIDC1, the current environment identifier of the model copy of the first application IDC1, the storage location identifier of the model copy of the first application Position repositoryC1, the member information C1 of the model copy of the first application, and the unique identification information of the first repository Private repositorC1. Although not shown in the figure, the unique identification information of the first repository Private repositoriesC1 includes the global unique identifier of the first repository GUIDR1, the current environment identifier of the first repository IDR1, and the name of the first repository NameR1.
[0128] Optionally, the first application and the second application may have a parent-child relationship. This parent-child relationship may include: a parent-child relationship between the configuration information of the first application and the configuration information of the second application; or a parent-child relationship between a model copy of the first application and the model copy of the second application. Alternatively, the first application and the second application may have a reference relationship.
[0129] In one possible design, the parent-child relationship between two applications can be represented by a tree data structure.
[0130] Optionally, after the model copy of the second application is deployed, the second application can manage the first application, for example, the first application controls the operation of the second application.
[0131] For example, the second application can control the startup (i.e., start running) of the first application. For another example, the second application can control the shutdown (i.e., stop running) of the first application.
[0132] It can be understood that after establishing the parent-child relationship between the model copy of the first application and the model copy of the second application, the model copy of the first application and the model copy of the second application are logically loosely coupled, and the applications can be isolated.
[0133] In yet another possible implementation, a model copy of the data is constructed; and the model copy of the data is added to the second warehouse.
[0134] Optionally, the target resources may also include: a base model (or structural model) of the data. After the application development platform determines the target resources of the second application, the application development platform may respond to a second operation instruction input by the user to create a model copy of the data, respond to the second operation instruction, and generate a model copy of the data based on the base model of the data.
[0135] Optionally, after the model copy of the second application is deployed, the second application can load the data in the configuration information of the second warehouse. In this case, both the first application and the second application can access the data in the configuration information of the first warehouse.
[0136] For example, if the data in the first warehouse is data generated by application A, application B (ie, the first application or the second application) can load the data in the first warehouse.
[0137] It's understandable that both the first and second applications can access the configuration data in the first repository, allowing them to access configuration data solely through the repository. For example, if the configuration data includes a model copy of the application, the application's model copy will be launched; if the configuration data includes a model copy of data, the data's model copy will be launched. This allows applications to access data without invoking other applications. This not only ensures inter-application interoperability but also achieves isolation between applications.
[0138] In one possible implementation, the configuration information of the model copy of the data may include the unique identification information of the second warehouse, the name of the model copy of the data, the global unique identifier of the model copy of the data, the current environment identifier of the model copy of the data, the storage location identifier of the model copy of the data, and at least one of the member information of the model copy of the data.
[0139] It should be noted that the unique identification information of the second warehouse has been described in detail in the aforementioned method embodiment and will not be repeated here.
[0140] It should also be noted that the name, global unique identifier, current environment identifier, storage location identifier and member information of the model copy of the data are similar to those of the second application. Please refer to the description of the relevant information of the second application in the previous article, and the repetitions will not be repeated.
[0141] For example, Figure 4 As shown, the configuration information of the data model copy includes: the name NameS of the data model copy, the global unique identifier GUIDS of the data model copy, the current environment identifier IDS of the data model copy, the storage location identifier PositionrepositoryS of the data model copy and the member information data of the data model copy.
[0142] Step S303: The application development platform establishes a reference relationship between the model copy of the second application and the second warehouse based on the unique identification information of the second warehouse.
[0143] Optionally, the reference relationship refers to the relationship between the model copy of the second application and the reference of the second warehouse. The model copy of the second application can reference the first warehouse, or the second warehouse can also reference the model copy of the second application.
[0144] Illustratively, after the application development platform determines the target resources of the second application to be developed, the application development platform may reference the second warehouse to the model copy of the second application based on the above reference relationship in response to an association instruction input by the user.
[0145] Step S304: The application development platform generates a migration assembly unit of the second application based on the model copy of the second application, the second repository, and the reference relationship.
[0146] In one possible implementation, the application development platform can determine the name, globally unique identifier, and current environment identifier of the second warehouse, and add the name, globally unique identifier, and current environment identifier of the second warehouse to the configuration information of the model copy of the second application. This establishes a reference relationship between the model copy of the second application and the second warehouse, thereby obtaining a migration assembly unit for the second application. After the migration assembly unit of the second application is deployed, the second application can control the operation of the first application.
[0147] That is to say, the second application can point to the second warehouse through the configuration information copied by the model of the second application, such as the name of the second warehouse, the global unique identifier and the current environment identifier, and load the data stored in the warehouse, and start the first application (i.e., the sub-application) stored in the warehouse.
[0148] For example, Figure 5 As shown, Figure 5 A schematic diagram of the relationship between application operations provided in an embodiment of the present application. The model copy of the first application is associated with the first warehouse reference, the model copy of the second application is associated with the second warehouse reference, and the model copy of the first application and the copy model of the data are stored in the second warehouse. When the second application starts running, a running object of the second application is created, and the running object of the second application points to the second warehouse based on the unique identification information of the second warehouse, and loads the data information in the second warehouse and starts the model copy of the first application, and creates a running object of the first application, that is, the running object of the second application can control the running of the running object of the first application, for example, the running object of the second application can control the startup of the running object of the first application through the second warehouse; for another example, the running object of the second application can directly control the shutdown of the running object of the first application.
[0149] In this case, the parent application and its sub-applications only have a startup control relationship, not an access relationship. The parent application's data comes from the associated repository, resulting in a loosely coupled logic relationship between the parent application and its sub-applications. There's no necessary connection between the repositories associated with the parent application and its sub-applications, ensuring effective isolation between applications.
[0150] It can be understood that the application development platform downloads a model copy of the first application and the first warehouse from the app store, configures the second warehouse based on this, builds a model copy of the second application, and establishes a reference relationship between the model copy of the second application and the second warehouse, thereby obtaining the migration assembly unit of the second application. In other words, the application development platform can develop the application to be developed by downloading the development results of other application development platforms with smaller sharing granularity from the app store. In this way, by refining the sharing granularity of the application development platform's development results, the utilization rate of the application development platform's development results can be improved, and the efficiency of application development can be improved.
[0151] In some embodiments, as Figure 6 As shown, Figure 6 This is a flow chart of another application migration method provided in an embodiment of the present application. After step S205, the application migration method may further include: steps S601 to S603.
[0152] Step S601: The application development platform sends a migration assembly unit of the second application to an application store.
[0153] Step S602: The application store receives the migration assembly unit of the second application from the application development platform.
[0154] Step S603: The application store stores the migration assembly unit of the second application.
[0155] It is understandable that the application development platform can upload the migration combination unit constructed for the second application to the application store, so that the application store can share the migration combination unit with other application development platforms, thereby providing other application development platforms with valuable reference when developing applications and improving the utilization rate of the development results of the application development platform.
[0156] The migration method of this embodiment is applicable to development collaboration on the industrial Internet platform, based on the application development model of the cloud operating system, with the cloud operating system as the operating base. Different cloud operating systems can build multiple development clouds and enterprise clouds for an individual, and form an ecosystem application development of multi-cloud collaborative development and transactions around the application store. When data is migrated in multiple cloud environments, its identity is marked with global uniqueness through global unique identification information. This migration method does not care about specific file directories, and performs relationship positioning through global unique identification, which belongs to the development, assembly, and migration at the application level. The present invention solves the problems of componentization and isolation of application development, and is easy to form an ecosystem.
[0157] The following describes the application development method provided in the embodiments of the present application with reference to specific examples.
[0158] like Figure 7 As shown, Figure 7 Schematic diagram of the composition of the Industrial Internet platform provided in the embodiment of this application. The Industrial Internet platform may include: at least one application development platform (such as Development Cloud Platform A and Development Cloud Platform B), at least one application store, and at least one enterprise cloud platform.
[0159] In other words, the industrial Internet platform provides APP data storage, compilation, execution and other capabilities, and shields the operations of the underlying operating system, network and storage.
[0160] Development cloud platform A and development cloud platform B each include at least one development workspace and at least one private repository (e.g., development cloud platform A includes: a first development workspace and private repository A, and development cloud platform B includes: a second development workspace and private repository B). The development workspace refers to the system where developers create models and predefined functions. The development workspace is the developer's private system. Functional unit models, application script logic models, and data models can be generated within the development workspace. Functional unit predefinitions, application script logic predefinitions, and data predefinitions can also be generated within the development workspace. The development results of the development workspace are associated with a designated private repository in the application development platform. Development cloud platform A then lists the application development platform's (e.g., development cloud platform A) private repository (e.g., private repository A) and its referenced development results (e.g., a copy of the application script logic model, a copy of the data model, etc.) as products on the application store. Products in the application store can also be downloaded by other application development platforms (e.g., development cloud platform B) to their private repositories (e.g., private repository B), shared with developers within the application development platform, and reused and assembled into new applications, thereby enabling the sharing of development results with other developers. That is to say, the application repository in the application development platform includes both the development results developed by developers in the development workspace and the development results downloaded from the application store.
[0161] Specifically, the first development workspace can associate the development result A with the private warehouse A. Then, the development cloud platform A puts the private warehouse A of the development cloud platform A and its referenced development result A (such as the FU model CopyA of application A, etc.) on the application store as product A (i.e., application A). Similarly, the development cloud platform B puts the private warehouse B of the application development platform B and its referenced development results (such as the FU model CopyB of application B, etc.) on the application store as product B (i.e., application B). Afterwards, the enterprise cloud platform can download product A and product B from the application store to the enterprise development workspace of the enterprise cloud platform, and after downloading, it can directly deploy and run application A and application B. Taking the deployment and running of application A as an example, the FU model CopyA of application A is deployed to the runtime environment for execution, and the private warehouse AGUID identification attribute of the FU model CopyA of application A points to the private warehouse A, loads the data information in the private warehouse A, and starts the sub-application of application A.
[0162] In addition, after Application A and Application B are downloaded to the enterprise development workspace, they can also be combined into other applications as sub-applications.
[0163] For example, the enterprise development workspace performs combined development based on the development results A and private warehouse A included in product A, and the development results B and private warehouse B included in product B, to generate a new composite application C. Composite application C includes FU model CopyC and private warehouse C referenced and associated with FU model CopyC. Private warehouse C stores FU model CopyAX for application AX and FU model CopyBX for application BX. Application AX is copied from application A, FU model CopyAX is copied from FU model CopyA, application BX is copied from application B, and FU model CopyBX is copied from FU model CopyB. Furthermore, private warehouse AX and private warehouse BX are stored in a location other than private warehouse C within composite application C. Private warehouse AX is copied from private warehouse A, and private warehouse BX is copied from private warehouse B. Alternatively, private warehouse AX and / or private warehouse BX may be stored in private warehouse C, and this embodiment does not impose any restrictions on this.
[0164] The following describes the application migration method provided in the embodiment of the present application, taking the deployment of an application development platform and an application store on different electronic devices as an example.
[0165] In the following embodiments, the application development platform is used as the execution body, and the embodiments of the present application are specifically described in conjunction with the drawings in the specification.
[0166] like Figure 8 As shown, Figure 8A flowchart of another application migration method provided in an embodiment of the present application. The application migration method may include: steps S801 to S803.
[0167] Step S801: The application open platform sends a resource request message to the application store.
[0168] It should be noted that, for the process of the application development platform sending a resource request message to the application store, reference may be made to the description of step S201 in the above embodiment, which will not be described in detail here.
[0169] Step S802: The application development platform receives a model copy of the first application and a first warehouse from the application store.
[0170] Step S803: The application development platform is configured based on the target resources to obtain a migration combination unit of the second application.
[0171] It should be noted that, for the process of the application development platform configuring the target resources to obtain the migration assembly unit of the second application, reference may be made to the description of step S205 in the above embodiment, which will not be described in detail here.
[0172] In this embodiment, the application development platform sends a resource request message to the application store, and receives the model copy and the first warehouse of the first application from the application store. That is to say, the application development platform that is developing the application to be developed (i.e., the second application) can receive the model copy developed by other application development platforms and uploaded to the application store, which can improve the utilization rate of the development results of different application development platforms. In addition, there is a reference relationship between the model copy and the first warehouse stored in the application store. Based on the reference relationship, it can be ensured that the relationship between the model copy and the warehouse remains unchanged in any environment, and the model copy and the warehouse can be used as a whole to facilitate the migration of applications in different environments.
[0173] In the following embodiments, the application store is used as the execution entity, and the embodiments of the present application are described in detail in conjunction with the drawings in the specification.
[0174] like Figure 9 As shown, Figure 9 A flowchart of another application migration method provided in an embodiment of the present application. The application development method may include: Step S901 - Step S902.
[0175] Step S901: The application store receives a resource request message from the application development platform.
[0176] Step S902: The application store sends a model copy of the first application and the first warehouse to the application development platform in response to the resource request message.
[0177] It should be noted that, for the process in which the application store sends the model copy and the first warehouse of the first application to the target application development platform in response to the resource request message, reference may be made to the description of step S203 in the above embodiment, which will not be repeated here.
[0178] In this embodiment, the application store can receive a resource request message from the application development platform, and in response to the resource request message, send a model copy and a first warehouse of the first application to the application development platform. That is to say, the application store can store model copies developed and uploaded by other application development platforms, and share model copies from other application development platforms with the application development platform that is developing the application to be developed, which can improve the utilization rate of development results of different application development platforms. In addition, there is a reference relationship between the model copy and the first warehouse stored in the application store. Based on the reference relationship, it can be ensured that the relationship between the model copy and the warehouse remains unchanged in any environment, and the model copy and the warehouse can be used as a whole to facilitate the migration of applications in different environments.
[0179] It is understandable that, in actual implementation, the application store, application development platform, local terminal, etc. described in the embodiments of the present application may include one or more hardware structures and / or software modules for implementing the migration method of the aforementioned corresponding application, and these execution hardware structures and / or software modules may constitute an electronic device. Those skilled in the art should easily appreciate that, in combination with the algorithm steps of each example described in the embodiments applied for herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0180] Based on this understanding, taking the hardware structure and / or software modules contained in the application store as an example, the embodiment of the present application also provides a corresponding application migration device, which can be applied to the above-mentioned electronic devices (such as electronic devices that deploy development platforms, electronic devices that deploy application warehouses, or electronic devices that deploy application stores).
[0181] like Figure 10 As shown, Figure 10 A schematic diagram of the structure of an application migration device provided in an embodiment of the present application. The application development device is used to execute Figure 2 、 Figure 3 、 Figure 6 or Figure 8 The application development platform performs the steps of the method shown in the application development method. The application migration device 1000 may include: a sending module 1001, a receiving module 1002 and a processing module 1003.
[0182] The sending module 1001 is used to send a resource request message to the application store, where the resource request message is used to instruct to obtain a model copy of the first application in the application store, and there is a reference relationship between the model copy of the first application and the first warehouse stored in the application store.
[0183] The receiving module 1002 is configured to receive a model copy of a first application and a first warehouse from an application store.
[0184] The processing module 1003 is used to configure based on the target resources to obtain the migration assembly unit of the second application, where the target resources include: a model copy of the first application and the first warehouse; wherein, after the migration assembly unit of the second application is deployed, the second application can control the operation of the first application.
[0185] In some implementations, the processing module 1003 is specifically used to build a model copy of the second application, and the configuration information of the model copy of the second application includes the unique identification information of the second warehouse; based on the model copy of the first application, the second warehouse is configured; wherein, the configuration information of the model copy of the first application includes the unique identification information of the first warehouse, and the unique identification information of the first warehouse is used to reference the first warehouse to the model copy of the first application; based on the unique identification information of the second warehouse, a reference relationship is established between the model copy of the second application and the second warehouse; based on the model copy of the second application, the second warehouse and the reference relationship, a migration combination unit of the second application is generated.
[0186] In some implementations, the processing module 1003 is further configured to add a copy of the model of the first application to the second repository.
[0187] In some implementations, the processing module 1003 is further configured to construct a model copy of the data; and add the model copy of the data to the second warehouse, wherein after the model copy of the second application is deployed, the second application can load the data.
[0188] In some implementations, the model copy of the data and the configuration information of the model copy of the first application include unique identification information of the second warehouse, and the unique identification information of the warehouse includes a globally unique identifier of the warehouse.
[0189] In some implementations, the unique identification information of the warehouse also includes the name of the warehouse and the current environment identifier of the warehouse.
[0190] In some implementations, the configuration information of the model copy includes at least one of a name of the model copy, a globally unique identifier of the model copy, a current environment identifier of the model copy, a storage location identifier of the model copy, and member information of the model copy.
[0191] In some implementations, the processing module 1003 is further configured to send the migration assembly unit of the second application to the application store.
[0192] like Figure 11 As shown, Figure 11 A schematic diagram of the structure of another application migration device provided in an embodiment of the present application. The application development device is used to execute Figure 2 、 Figure 3 、 Figure 6 or Figure 9 The application store performs the steps in the application development method shown in FIG. The application migration device 1100 includes a receiving module 1101 and a sending module 1102 .
[0193] The receiving module 1101 is used to receive a resource request message from the application development platform, where the resource request message is used to instruct to obtain a model copy of the first application, and there is a reference relationship between the model copy of the first application and the first warehouse.
[0194] The sending module 1102 is configured to send a model copy of the first application and a first warehouse to the application development platform in response to the resource request message.
[0195] In some implementations, the migration assembly unit of the second application is constructed based on the model copy of the second application, the second warehouse, and the reference relationship between the model copy of the second application and the second warehouse. The second warehouse is configured based on the model copy of the first application; wherein the configuration information of the model copy of the first application includes unique identification information of the first warehouse, and the unique identification information of the first warehouse is used to reference the first warehouse to the model copy of the first application. The configuration information of the model copy of the second application includes unique identification information of the second warehouse, and the reference relationship between the model copy of the second application and the second warehouse is constructed based on the unique identification information of the second warehouse.
[0196] In some implementations, the second repository is configured by adding a copy of the model of the first application to the second repository.
[0197] In some implementations, the second warehouse is further configured by constructing a model copy of the data and adding the model copy of the data to the second warehouse, wherein the second application is able to load the data after the model copy of the second application is deployed.
[0198] In some implementations, the model copy of the data and the configuration information of the model copy of the first application include unique identification information of the second warehouse, and the unique identification information of the warehouse includes a globally unique identifier of the warehouse.
[0199] In some implementations, the unique identification information of the warehouse also includes the name of the warehouse and the current environment identifier of the warehouse.
[0200] In some implementations, the configuration information of the model copy includes the name of the model copy, the globally unique identifier of the model copy, the current environment identifier of the model copy, the storage location identifier of the model copy, and member information of the model copy.
[0201] In some implementations, the apparatus further includes a storage module. The receiving module 1101 is further configured to receive a migration assembly unit of a second application from the application development platform. The migration assembly unit of the second application is configured based on target resources, including a model copy of the first application and a first repository. After the migration assembly unit of the second application is deployed, the second application can control the operation of the first application. The storage module is configured to store the migration assembly unit of the second application.
[0202] Based on the same inventive concept as the above method embodiment, an electronic device is also provided in the embodiment of the present application. In one embodiment, the electronic device may be a server or a terminal device. In this embodiment, Figure 12 As shown, Figure 12 The electronic device 1200 includes a processor 1201 , a communication interface 1202 , a memory 1203 and a bus 1204 .
[0203] The processor 1201 is used to control and manage the actions of the device, for example, to execute the various steps in the method flow shown in the above method embodiment, and / or to execute other processes of the technology described herein.
[0204] Processor 1201 can implement or execute the various exemplary logic blocks, units, and circuits described in conjunction with the present disclosure. The processor can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It can implement or execute the various exemplary logic blocks, units, and circuits described in conjunction with the present disclosure. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0205] The communication interface 1202 is used to support communication between the device and other network entities, for example, to support information exchange between the electronic device 1200 and other devices. The communication interface 1202, the processor 1201, and the memory 1203 can be coupled to each other, for example, via a bus 1204.
[0206] The memory 1203 is used to store program codes and data of the device, and is controlled and executed by the processor 1201 .
[0207] The memory 1203 may be a read-only memory (ROM) or other static storage device that can store static information and instructions, a random access memory (RAM) or other dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, an optical disc storage (including a compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1203 may exist independently and be connected to the processor 1201 via the bus 1204. The memory 1203 may also be integrated with the processor 1201.
[0208] The bus 1204 may be an Extended Industry Standard Architecture (EISA) bus, etc. The bus 1204 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 12 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0209] It should be pointed out that Figure 12 The device structure shown in the figure does not constitute a limitation on the electronic device 1200. Figure 12 In addition to the components shown, the electronic device 1200 may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0210] In actual implementation, the functions implemented by the processing unit can be Figure 12 The processor 1201 shown calls the program code in the memory 1203 to implement it.
[0211] Through the description of the above embodiments, those skilled in the art will clearly understand that for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0212] As described above, the embodiment of the present application can divide the various execution entities involved in the method for changing the data structure into functional modules according to the above method example. Among them, the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. In addition, it should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module.
[0213] In an exemplary embodiment, the embodiment of the present application further provides a computer-readable storage medium having computer program instructions stored thereon; when the computer program instructions are executed by an electronic device, the electronic device implements the method as described in the aforementioned embodiment.
[0214] Optionally, the above-mentioned computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0215] In an exemplary embodiment, the present application also provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code. When the computer-readable code runs in an electronic device, the processor in the electronic device implements the method described in the above embodiment.
[0216] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the inventions claimed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of this application and include common knowledge or customary techniques in the art not claimed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0217] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for migrating an application, characterized in that: Applied to an application development platform, the method includes: Sending a resource request message to an application store, wherein the resource request message is used to instruct to obtain a model copy of a first application in the application store, where the model copy of the first application has a reference relationship with a first repository stored in the application store; receiving a model copy of the first application and the first warehouse from the application store; Performing configuration based on target resources to obtain a migration assembly unit of the second application, wherein the target resources include: a model copy of the first application and the first warehouse; After the migration combination unit of the second application is deployed, the second application can control the operation of the first application.
2. The method according to claim 1, characterized in that The configuration based on the target resource to obtain the migration combination unit of the second application includes: Building a model copy of the second application, where configuration information of the model copy of the second application includes unique identification information of the second warehouse; configuring the second warehouse based on the model copy of the first application; wherein the configuration information of the model copy of the first application includes unique identification information of the first warehouse, and the unique identification information of the first warehouse is used to reference the first warehouse to the model copy of the first application; Establishing a reference relationship between the model copy of the second application and the second warehouse based on the unique identification information of the second warehouse; A migration assembly unit of the second application is generated based on the model copy of the second application, the second repository, and the reference relationship.
3. The method according to claim 2, characterized in that The configuring the second warehouse based on the model copy of the first application includes: Adding a copy of the model of the first application to the second repository.
4. The method according to claim 3, characterized in that The configuring of the second warehouse further includes: Build a model copy of the data; A model copy of the data is added to the second repository, wherein the second application is able to load the data after the model copy of the second application is deployed.
5. The method according to claim 4, characterized in that The configuration information of the model copy of the data and the model copy of the first application includes the unique identification information of the second warehouse, and the unique identification information of the warehouse includes the globally unique identifier of the warehouse.
6. The method according to claim 5, characterized in that The unique identification information of the warehouse also includes the name of the warehouse and the current environment identifier of the warehouse.
7. The method according to any one of claims 1 to 4, characterized in that The configuration information of the model copy includes at least one of the name of the model copy, the global unique identifier of the model copy, the current environment identifier of the model copy, the storage location identifier of the model copy, and member information of the model copy.
8. The method according to claim 1, characterized in that After obtaining the migration combination unit of the second application, the method further includes: Sending the migration assembly unit of the second application to the application store.
9. A method for migrating an application, characterized in that: Applied to an application store, the application store storing a model copy of a first application and a first warehouse, the method comprising: receiving a resource request message from an application development platform, the resource request message being used to instruct acquisition of a model copy of the first application, the model copy of the first application having a reference relationship with the first repository; In response to the resource request message, a model copy of the first application and the first warehouse are sent to the application development platform.
10. The method according to claim 9, characterized in that The migration assembly unit of the second application is constructed based on the model copy of the second application, the second warehouse, and the reference relationship between the model copy of the second application and the second warehouse; The second warehouse is configured based on the model copy of the first application; wherein the configuration information of the model copy of the first application includes unique identification information of the first warehouse, and the unique identification information of the first warehouse is used to reference the first warehouse to the model copy of the first application; The configuration information of the model copy of the second application includes the unique identification information of the second warehouse, and the reference relationship between the model copy of the second application and the second warehouse is established based on the unique identification information of the second warehouse.
11. The method according to claim 10, characterized in that The second warehouse is configured by adding a copy of the model of the first application to the second warehouse.
12. The method according to claim 11, characterized in that The second warehouse is further configured by constructing a model copy of the data and adding the model copy of the data to the second warehouse, wherein the second application is able to load the data after the model copy of the second application is deployed.
13. The method according to claim 12, characterized in that The configuration information of the model copy of the data and the model copy of the first application includes the unique identification information of the second warehouse, and the unique identification information of the warehouse includes the globally unique identifier of the warehouse.
14. The method according to claim 13, characterized in that The unique identification information of the warehouse also includes the name of the warehouse and the current environment identifier of the warehouse.
15. The method according to any one of claims 9 to 12, characterized in that The configuration information of the model copy includes the name of the model copy, the globally unique identifier of the model copy, the current environment identifier of the model copy, the storage location identifier of the model copy, and member information of the model copy.
16. The method according to claim 10, characterized in that The method further comprises: receiving a migration assembly unit of the second application from the application development platform, wherein the migration assembly unit of the second application is configured based on target resources, the target resources including: a model copy of the first application and the first warehouse; after the migration assembly unit of the second application is deployed, the second application can control the operation of the first application; The migration assembly unit of the second application is stored.
17. An application migration device, characterized in that: Applied to an application development platform, the device includes: a sending module, configured to send a resource request message to an application store, wherein the resource request message is used to instruct to obtain a model copy of a first application in the application store, where the model copy of the first application has a reference relationship with a first repository stored in the application store; a receiving module, configured to receive a model copy of the first application and the first warehouse from the application store; a processing module configured to obtain a migration assembly unit of the second application by performing configuration based on target resources, wherein the target resources include: a model copy of the first application and the first warehouse; After the migration combination unit of the second application is deployed, the second application can control the operation of the first application.
18. An application migration device, characterized in that: Applied to an application store, the application store storing a model copy of a first application and a first warehouse, the device comprising: a receiving module, configured to receive a resource request message from an application development platform, wherein the resource request message is used to instruct acquisition of a model copy of the first application, wherein the model copy of the first application has a reference relationship with the first repository; A sending module is used to send a model copy of the first application and the first warehouse to the application development platform in response to the resource request message.
19. A computer-readable storage medium comprising a computer program, characterized in that: When the computer program is executed on an electronic device, the electronic device is enabled to implement the method according to any one of claims 1 to 16.