CN114661439A - Method, device, equipment and storage medium for migrating system application configuration - Google Patents

Method, device, equipment and storage medium for migrating system application configuration Download PDF

Info

Publication number
CN114661439A
CN114661439A CN202210297838.6A CN202210297838A CN114661439A CN 114661439 A CN114661439 A CN 114661439A CN 202210297838 A CN202210297838 A CN 202210297838A CN 114661439 A CN114661439 A CN 114661439A
Authority
CN
China
Prior art keywords
resource
list
target resource
target
resource list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210297838.6A
Other languages
Chinese (zh)
Inventor
史安明
唐云
张铭超
许伟
柴睿
陈辛
侯立冬
孟宝权
王杰
杨满智
傅强
梁彧
田野
金红
陈晓光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Eversec Beijing Technology Co Ltd
Original Assignee
Eversec Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Eversec Beijing Technology Co Ltd filed Critical Eversec Beijing Technology Co Ltd
Priority to CN202210297838.6A priority Critical patent/CN114661439A/en
Publication of CN114661439A publication Critical patent/CN114661439A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for migrating system application configuration. The method comprises the following steps: determining an initial resource list of the migration task according to resource selection operation of a user, wherein the initial resource list comprises a resource identifier of a target resource to be migrated selected by the user; determining a reference resource list corresponding to the target resource, and updating the initial resource list to obtain a target resource list so that the target resource list covers the resource identifier of the reference resource in the reference resource list; and acquiring corresponding resources according to the target resource list, and generating a first data migration packet according to the acquired resources, wherein the first data migration packet is used for leading in the target resources and quoting the resources by the second equipment. The technical scheme of the embodiment of the invention realizes the automatic processing of the reference relationship among the resources in the data migration process, greatly simplifies the workload of the system application configuration migration, and improves the execution performance of the system migration task.

Description

Method, device, equipment and storage medium for migrating system application configuration
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for migrating a system application configuration.
Background
With the continuous development of the informatization technology, the situation that new and old informatization systems are changed often occurs inside an enterprise, and in order to ensure the continuity and traceability of business data, the enterprise needs to migrate the business data stored in the old system to the new system.
Currently, the data migration process typically includes: read, modify, and insert operations. Firstly, reading information of source data, modifying data extracted from the source data into a data type which can be identified by a system for receiving migration data if heterogeneous data migration exists, and directly inserting the source data into the system for receiving the migration data without modifying the source data if homogeneous data migration exists. When the existing system performs data migration between systems, a database script is usually used to perform operations at a data line level.
However, the migration method cannot be processed concurrently when faced with complex business and even system-level data migration, and meanwhile, for a data migration script with a dependency relationship, manual processing is often required, and once an error occurs in the migration process, the data migration script cannot be traced back, so that the problems of low automation degree and low efficiency exist.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for migrating system application configuration, which aim to solve the problems of low automation degree of data migration and low efficiency of analyzing dependency relationship among data.
In a first aspect, an embodiment of the present invention provides a method for migrating a system application configuration, including:
determining an initial resource list of the current migration task according to resource selection operation of a user, wherein the initial resource list comprises a resource identifier of a target resource to be migrated selected by the user;
determining a reference resource list corresponding to the target resource, and updating the initial resource list to obtain a target resource list so that the target resource list covers the resource identifier of the reference resource in the reference resource list;
and acquiring corresponding resources according to the target resource list, and generating a first data migration packet according to the acquired resources, wherein the first data migration packet is used for leading in the target resources and quoting the resources by the second equipment.
In a second aspect, an embodiment of the present invention provides an apparatus for migrating a system application configuration, including:
the initial resource determining module is used for determining an initial resource list of the migration task according to the resource selection operation of the user, wherein the initial resource list comprises a resource identifier of a target resource to be migrated selected by the user;
the target resource determining module is used for determining a reference resource list corresponding to the target resource and updating the initial resource list to obtain a target resource list so that the target resource list covers the resource identifier of the reference resource in the reference resource list;
and the first data migration packet generation module is used for acquiring corresponding resources according to the target resource list and generating a first data migration packet according to the acquired resources, wherein the first data migration packet is used for leading the second equipment into the target resources and quoting the resources.
In a third aspect, an embodiment of the present invention provides an electronic device, where the system application configuration migration device includes:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the method of system application configuration migration of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, where computer instructions are stored, and the computer instructions are configured to cause a processor to implement the method for migrating a system application configuration of the first aspect when executed.
The system application configuration migration scheme provided in the embodiment of the present invention determines an initial resource list of a current migration task according to a resource selection operation of a user, where the initial resource list includes a resource identifier of a target resource to be migrated selected by the user, determines a reference resource list corresponding to the target resource, and updates the initial resource list to obtain the target resource list, so that the target resource list covers the resource identifier of the reference resource in the reference resource list, obtains a corresponding resource according to the target resource list, and generates a first data migration packet according to the obtained resource, where the first data migration packet is used for a second device to import the target resource and the reference resource. By adopting the technical scheme, the target resource to be migrated in the migration task is determined according to the selection of the user, the initial resource list is formed, the reference resource list corresponding to the target resource is determined and the initial resource list is updated, the target resource list is obtained, and the first data migration packet is generated, so that the reference relation among the resources can be automatically processed when the system application is configured and migrated, the target resource which the user wants to migrate and the reference resource of the target resource are exported together, the workload of the system application configuration migration can be greatly simplified, and the execution performance of the system migration task is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a method for migrating a system application configuration according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating traversal of a reference relationship according to a first embodiment of the present invention;
FIG. 3 is a flowchart of a method for migrating a system application configuration according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a system application configuration migration apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device implementing the method for migrating a system application configuration according to the fourth embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," "initial," "target," and the like in the description and claims of the invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a method for providing system application configuration migration according to an embodiment of the present invention, where this embodiment is applicable to a case where system application configuration migration is performed between different devices, and the method may be executed by a system application configuration migration apparatus, where the system application configuration migration apparatus may be implemented in a form of hardware and/or software, and the system application configuration migration apparatus may be configured in an electronic device, and the electronic device may be formed by two or more physical entities or may be formed by one physical entity. In the embodiment of the present invention, the electronic device is denoted as a first device. As shown in fig. 1, the method includes:
s101, determining an initial resource list of the migration task according to resource selection operation of a user.
The initial resource list comprises resource identifications of target resources to be migrated, which are selected by a user.
In this embodiment, a user may determine, through a selection operation, a target resource of the current migration task in a resource list, and generate a corresponding initial resource list, where the initial resource list includes a resource identifier of the target resource. The selection operations that the user may perform include, for example: and selecting the data or specifying the modes according to the query conditions. The resource identification includes, for example: at least one of a resource type, a resource number, a resource size, and a resource header.
Specifically, the types of resources to be migrated include, for example: dashboards, data sets, data sources, custom components, and the like. The dashboard can be a collection of a plurality of charts, and the dashboard can be updated along with the latest available data in the data source; the data set can contain information about dimensions and measures, and the process of establishing the data set is to modify alias names, set dimensions, measures, filters and other operations of data in a data source; the data source may be a database containing information about how to connect to the data, such as database server name and server login information; the custom component may be a page display component written in a secondary development manner.
S102, determining a reference resource list corresponding to the target resource, and updating the initial resource list to obtain the target resource list so that the target resource list covers the resource identifier of the reference resource in the reference resource list.
In this embodiment, there is a reference relationship between resources, and the reference relationship may be expressed as: when entering one type of data, it is often necessary to refer to another type of data. For example, fig. 2 is a flow chart of traversal of a reference relationship in an embodiment of the present invention, in which a dictionary may be a series of key-value pairs, each key being associated with a value, and the value associated with the key being accessed through the key. As shown in fig. 2, when the system application configuration needs to be migrated, reference relationships among resources need to be traversed, for example, the reference relationships are: when the dashboard is defined, data set information needs to be referred to, when the data set is defined, data source information needs to be referred to, and when the data source is defined, a custom component needs to be referred to. And generating a corresponding reference resource list according to the obtained reference relation corresponding to the target resource, and updating the initial resource list according to the list so as to obtain the target resource list covering the reference resources in the reference resource list.
For example, the manner of obtaining the reference resource list corresponding to the target resource may include: and calling an analysis function for each target resource in the initial resource list, obtaining an analysis result and generating a corresponding reference resource list so as to obtain the target resource list. Wherein the functions of the analysis function may include: analyzing the reference dependency relationship between the resources or determining the relationship between the referenced resources, etc.
For example, when the initial resource list is updated, the resource identifier of the referenced resource in the referenced resource list may be added to the initial resource list; the referenced resource list may also be merged into the initial resource list, and the merging manner may be a union manner, and the like. Optionally, when the initial resource list is updated, reference relationship information between the resource identifier of the target resource and the resource identifier of the reference resource may be added; if the reference relationship exists between different reference resources in the reference resource list, the reference relationship information between the resource identifiers of the different reference resources can be reserved when the initial resource list is updated.
S103, acquiring corresponding resources according to the target resource list, and generating a first data migration packet according to the acquired resources.
The first data migration packet is used for the second device to import the target resource and the reference resource. The second device is typically a different device than the first device.
In this embodiment, after the target resource list is obtained, all resources required to be exported by the migration task of this time are obtained, the target resource to be migrated may be obtained according to the target resource list, and a first data migration packet may be generated, where the data packet (may also be referred to as an export packet) may be imported in the second device to which the method for configuration migration is applied in the present system. For example, the first data migration packet is transmitted to the second device through network transmission or storage medium transmission, and the second device may perform processing such as parsing on the first data migration packet, so as to achieve the importing of the target resource and the reference resource in the first device.
The method for configuring and migrating the system application provided by the embodiment of the invention determines an initial resource list of a current migration task according to resource selection operation of a user, wherein the initial resource list comprises a resource identifier of a target resource to be migrated selected by the user, determines a reference resource list corresponding to the target resource, updates the initial resource list to obtain the target resource list, so that the target resource list covers the resource identifier of the reference resource in the reference resource list, acquires the corresponding resource according to the target resource list, and generates a first data migration packet according to the acquired resource, wherein the first data migration packet is used for leading second equipment to introduce the target resource and the reference resource. According to the technical scheme of the embodiment of the invention, the target resource to be migrated in the migration task is determined according to the selection of the user, the initial resource list is formed, the reference resource list corresponding to the target resource is determined and the initial resource list is updated, the target resource list is obtained and the first data migration packet is generated, the parallel processing data migration is realized, the reference relation among the resources can be automatically processed during the configuration migration of the system application, the workload of the configuration migration of the system application can be greatly simplified, and the execution performance of the system migration task is improved.
Example two
Fig. 3 is a flowchart of a method for migrating system application configuration according to a second embodiment of the present invention, where the technical solution of the second embodiment of the present invention is further optimized based on the above optional technical solutions, and a specific determination manner of a target resource list is provided.
Specifically, for each target resource in the initial resource list, a referenced resource list corresponding to the current target resource is obtained by recursively calling the current target resource and/or a referenced resource analysis function corresponding to a referenced resource of the current target resource, and the obtained referenced resource list is merged into the initial resource list, wherein the referenced resource analysis function is defined in a resource type interface corresponding to the resource to which the referenced resource analysis function belongs, and after the referenced resource list corresponding to the last target resource is merged into the initial resource list, the target resource list is obtained. The advantage of this arrangement is that the reference relationship between the resources can be automatically inquired, and the problem of interdependence between the resources is solved.
As shown in fig. 3, the method includes:
s201, determining an initial resource list of the current migration task according to resource selection operation of a user.
The initial resource list comprises resource identifiers of target resources to be migrated, which are selected by a user;
it should be understood that the relevant content of step S201 is already explained in the first embodiment of the present invention, and will not be described herein.
S202, aiming at each target resource in the initial resource list in sequence, a reference resource list corresponding to the current target resource is obtained by recursively calling the current target resource and/or a reference resource analysis function corresponding to the reference resource of the current target resource, and the obtained reference resource list is combined into the initial resource list.
And the quote resource analysis function is defined in the resource type interface corresponding to the resource to which the quote resource analysis function belongs, and the target resource list is obtained after the quote resource list corresponding to the last target resource is combined into the initial resource list.
For example, the current target resource may be understood as any one of the target resources whose resource identifier is included in the initial resource list and which is currently required to obtain the reference resource list. Assuming that the initial resource list includes 3 target resources, which are respectively marked as a1, a2, and A3, and the current target resource is a1, a resource directly referenced by the target resource a1, that is, a referenced resource, is analyzed by calling a referenced resource analysis function defined in a resource type interface corresponding to the target resource a1, so as to simplify the implementation of the interface. For the referenced resource of the target resource a1, there may be a case of referring to other resources, and assuming that for the referenced resource B1, the referenced resource analysis function defined in the resource type interface corresponding to the referenced resource B1 may be continuously invoked to analyze the resource directly referenced by the referenced resource B1, and so on until all the referenced resources having a direct reference or indirect reference relationship with the target resource a1 are found, and a list of referenced resources corresponding to the target resource a1 is formed. And after the reference resource list corresponding to the target resource A1 is obtained, the reference resource list is merged into the initial resource list. Subsequently, the above operations are repeatedly performed with respect to the target resources a2 and A3, resulting in a final target resource list.
Optionally, the obtaining a reference resource list corresponding to the current target resource by recursively calling the current target resource and/or a reference resource analysis function corresponding to a reference resource of the current target resource includes: and inquiring whether a reference resource list corresponding to the current target resource exists in the resource reference cache, if not, obtaining the reference resource list corresponding to the current target resource by recursively calling the current target resource and/or a reference resource analysis function corresponding to the reference resource of the current target resource, and adding the reference resource list corresponding to the current target resource into the resource reference cache. After querying whether a referenced resource list corresponding to the current target resource exists in the resource reference cache, the method further includes: and if so, acquiring a reference resource list corresponding to the current target resource from the resource reference cache. The method has the advantages that when the quoted resources are analyzed, the quoted relations obtained through analysis are cached, and the analysis performance is improved.
Further, whether the resource identifier of the current resource exists in the current initial resource list or the current reference resource list or not is judged, wherein the current resource comprises the current target resource and/or the reference resource of the current target resource; and if so, forbidding calling the reference resource analysis function corresponding to the current resource. Optionally, if the reference resource analysis function does not exist, the reference resource analysis function corresponding to the current resource is allowed to be called.
Illustratively, when a current target resource and/or a referenced resource analysis function corresponding to a referenced resource of the current target resource are recursively called, a referenced resource identifier corresponding to the current target resource is added into a parent resource list, the referenced resource list corresponding to the current target resource is traversed, whether the parent resource list contains a resource identifier in the referenced resource list corresponding to the current target resource is judged, if yes, the referenced resource analysis function corresponding to the current resource is forbidden to be called, the current cycle is skipped, and the next recursive calling cycle is executed, so that dead cycle is avoided when the referenced resource relation is cyclically analyzed.
S203, acquiring corresponding resources according to the target resource list, and generating a first data migration packet according to the acquired resources.
The first data migration package is used for the second device to import the target resource and the reference resource.
Optionally, when generating the first data migration packet according to the acquired resource, the method further includes: and generating a first check file matched with the first data migration packet, wherein the first check file is used for the second equipment to check the first data migration packet before importing the target resource and the reference resource. Optionally, the first check file may include, for example, the size of the first data migration packet, information-summary algorithm information, information of the current server, and the like, and the first check file may be an encrypted file.
Illustratively, after the execution of the migration task is started, that is, after the initial resource list of the current migration task is determined, the current migration task is first divided into a plurality of stages to determine the specific process proportion of the migration task, where the plurality of stages include: at least one stage of resource reference analysis, resource validity check, resource migration, generating metadata files, packaging files, and exporting file packages. The weights of each stage are different, the total value is 100, the stages can be subdivided into small stages, but the sum of the weights of the small stages of each stage corresponds to the weight of the stage.
Further, in the execution process of the migration task, log information may be output, and the resource may output a corresponding exception stack when an exception occurs in import and export, where the output log information may include information such as execution time, a corresponding resource, a state of the task, and execution duration.
Optionally, the method may further include: and displaying the execution progress information and/or the log information, and allowing a user to acquire the execution progress information and/or the log information of the migration task according to a preset inquiry operation, asynchronously inquire the execution progress of the task and execute an output log, and know the execution state of the current task.
On the basis of the above embodiment, the method may further include: and displaying preset prompt information under the condition that the reference resources which cannot be acquired exist in the target resource list. The preset prompting information is used for prompting a user whether to continue to execute the migration task under the condition of lacking the reference resource; and responding to the preset confirmation operation of the user, and continuously executing the migration task.
For example, the user may cancel and suspend the migration task being executed, provide an option of whether to ignore the missing referenced resource, and allow for the case where a partially referenced resource is missing, thereby ensuring that the migration task can still execute normally.
The method for system application configuration migration provided by the embodiment of the invention firstly determines an initial resource list of a current migration task according to the resource selection operation of a user, then, a reference resource list corresponding to the current target resource is obtained by recursively calling the current target resource and/or a reference resource analysis function corresponding to the reference resource of the current target resource, updating the initial resource list to obtain a target resource list, finally acquiring corresponding resources according to the target resource list, and generates a first data migration package to complete the migration, automatically queries the reference relation among the resources, and processes the problem of mutual dependence among the resources, and moreover, the function of inquiring the execution progress and the log information is provided, so that the user can backtrack the migration task, an option of whether to ignore the loss of the reference resource is provided, and the method is suitable for the export requirements of different scenes.
On the basis of the above embodiment, the method may further include: acquiring a second data migration packet, wherein the second data migration packet is generated by a third device; and importing the target resource and the reference resource contained in the second data migration packet into the first device. The advantage of this arrangement is that the import and export functions can be provided in the same device. The third device is generally different from the first device.
Illustratively, when the target resource and the reference resource contained in the second data migration packet are imported into the first device, the content of the check file needs to be decrypted first to obtain the content in the check file, the size of the export file packet, the information-summary algorithm information and the server information are verified, and if the verification fails, the import is not allowed.
Optionally, the data migration packet may include configuration information and a resource file data packet, and the configuration information may include a resource type and a resource number in the current data migration packet. In the process of importing the target resource and the reference resource contained in the second data migration packet into the first device, the resource type and the resource number in the configuration information may be traversed, and the corresponding resource file may be read one by one for import.
Optionally, in the import process, whether to overlay an original application configuration in the system (multiple overlay policies may be provided), whether to cancel an executing import task, and display an execution progress and log information of the import task according to an operation input by a user.
On the basis of the above embodiment, when the first device executes the migration task, the thread pool technology may be adopted to concurrently execute the tasks of importing and exporting, so as to improve the execution performance of the system migration task.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a system application configuration migration apparatus according to a third embodiment of the present invention. As shown in fig. 4, the apparatus includes:
an initial resource determining module 301, configured to determine an initial resource list of the migration task this time according to a resource selection operation of a user, where the initial resource list includes a resource identifier of a target resource to be migrated, the resource identifier being selected by the user.
The target resource determining module 302 is configured to determine a reference resource list corresponding to the target resource, and update the initial resource list to obtain a target resource list, so that the target resource list covers the resource identifier of the reference resource in the reference resource list.
The first data migration packet generation module 303 is configured to obtain a corresponding resource according to the target resource list, and generate a first data migration packet according to the obtained resource, where the first data migration packet is used for the second device to import the target resource and refer to the resource.
The device for migrating the system application configuration, provided by the embodiment of the invention, determines the target resource to be migrated in the current migration task according to the selection of a user, forms the initial resource list, then determines the reference resource list corresponding to the target resource and updates the initial resource list, obtains the target resource list and generates the first data migration packet, realizes the migration of the system application configuration, can automatically process the reference relationship among the resources, can greatly simplify the workload of the migration of the system application configuration, and improves the execution performance of the system migration task.
Optionally, the target resource determining module 302 includes:
a reference resource list determining unit, configured to obtain, for each target resource in the initial resource list, a reference resource list corresponding to the current target resource by recursively calling the current target resource and/or a reference resource analysis function corresponding to a reference resource of the current target resource in sequence;
and the target resource list determining unit is used for merging the obtained reference resource list into the initial resource list, wherein a reference resource analysis function is defined in the resource type interface corresponding to the resource to which the reference resource analysis function belongs, and the target resource list is obtained after the reference resource list corresponding to the last target resource is merged into the initial resource list.
Optionally, the reference resource list determining unit includes:
a reference cache inquiring subunit, configured to inquire whether a reference resource list corresponding to the current target resource exists in the resource reference cache;
a quote resource list determining subunit, configured to, in a case that a quote resource list corresponding to the current target resource does not exist in the resource quote cache, obtain a quote resource list corresponding to the current target resource by recursively calling the current target resource and/or a quote resource analysis function corresponding to a quote resource of the current target resource, and add the quote resource list corresponding to the current target resource to the resource quote cache;
and the reference resource list acquiring subunit is configured to acquire the reference resource list corresponding to the current target resource from the resource reference cache when the reference resource list corresponding to the current target resource exists in the resource reference cache.
Optionally, the reference resource list determining unit further includes:
a resource identifier determining subunit, configured to determine whether a resource identifier of a current resource already exists in a current initial resource list or a current referenced resource list, where the current resource includes a current target resource and/or a referenced resource of the current target resource;
and the function call prohibition subunit is used for prohibiting calling the referenced resource analysis function corresponding to the current resource under the condition that the resource identifier of the current resource exists in the current initial resource list or the current referenced resource list.
Optionally, the apparatus further comprises:
and the first check file generation module is used for generating a first check file matched with the first data migration packet, wherein the first check file is used for the second equipment to check the first data migration packet before the target resource and the reference resource are imported.
Optionally, the apparatus further includes:
a migration task determination module: the system comprises a target resource list and a migration task execution unit, wherein the target resource list is used for displaying preset prompt information under the condition that a quote resource which cannot be acquired exists in the target resource list, and the preset prompt information is used for prompting a user whether to continue executing the migration task under the condition that the quote resource is absent; and responding to the preset confirmation operation of the user, and continuously executing the migration task.
The second data migration packet import module: the data migration device is used for acquiring a second data migration packet, wherein the second data migration packet is generated by a third device; and importing the target resource and the reference resource contained in the second data migration packet into the first device.
The device for migrating the system application configuration, provided by the embodiment of the invention, can execute the method for migrating the system application configuration, provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 5 is a schematic structural diagram of an electronic device 40 implementing an embodiment of the present invention. Electronic device 40 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 40 includes at least one processor 41, and a memory communicatively connected to the at least one processor 41, such as a Read Only Memory (ROM)42, a Random Access Memory (RAM)43, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 41 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM)42 or the computer program loaded from the storage unit 48 into the Random Access Memory (RAM) 43. In the RAM 43, various programs and data necessary for the operation of the electronic apparatus 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other via a bus 44. An input/output (I/O) interface 45 is also connected to bus 44.
A number of components in the electronic device 40 are connected to the I/O interface 45, including: an input unit 46 such as a keyboard, a mouse, etc.; an output unit 47 such as various types of displays, speakers, and the like; a storage unit 48 such as a magnetic disk, an optical disk, or the like; and a communication unit 49 such as a network card, modem, wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Processor 41 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 41 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. Processor 41 performs the various methods and processes described above, such as the method of system application configuration migration.
The charging control device provided by the embodiment of the invention can execute the charging control method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The charging control device provided by the embodiment of the invention can execute the charging control method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for migrating system application configuration, which is applied to a first device, comprises the following steps:
determining an initial resource list of the current migration task according to resource selection operation of a user, wherein the initial resource list comprises a resource identifier of a target resource to be migrated selected by the user;
determining a reference resource list corresponding to the target resource, and updating the initial resource list to obtain a target resource list so that the target resource list covers the resource identifier of the reference resource in the reference resource list;
and acquiring corresponding resources according to the target resource list, and generating a first data migration packet according to the acquired resources, wherein the first data migration packet is used for leading second equipment into the target resources and the reference resources.
2. The method according to claim 1, wherein the determining a reference resource list corresponding to the target resource and updating the initial resource list to obtain a target resource list comprises:
and sequentially aiming at each target resource in the initial resource list, obtaining a reference resource list corresponding to the current target resource by recursively calling the current target resource and/or a reference resource analysis function corresponding to the reference resource of the current target resource, and merging the obtained reference resource list into the initial resource list, wherein the reference resource analysis function is defined in a resource type interface corresponding to the resource, and the target resource list is obtained after the reference resource list corresponding to the last target resource is merged into the initial resource list.
3. The method according to claim 2, wherein the obtaining of the reference resource list corresponding to the current target resource by recursively invoking the current target resource and/or a reference resource analysis function corresponding to a reference resource of the current target resource includes:
inquiring whether a reference resource list corresponding to the current target resource exists in a resource reference cache, if not, obtaining the reference resource list corresponding to the current target resource by recursively calling the current target resource and/or a reference resource analysis function corresponding to the reference resource of the current target resource, and adding the reference resource list corresponding to the current target resource into the resource reference cache;
after the querying whether the referenced resource list corresponding to the current target resource exists in the resource reference cache or not, the method further includes:
and if so, acquiring a referenced resource list corresponding to the current target resource from the resource referenced cache.
4. The method according to claim 3, wherein in the process of obtaining the list of referenced resources corresponding to the current target resource by recursively invoking the current target resource and/or the referenced resource analysis function corresponding to the referenced resource of the current target resource, the method further comprises:
judging whether the resource identifier of the current resource exists in a current initial resource list or a current reference resource list or not, wherein the current resource comprises a current target resource and/or a reference resource of the current target resource;
and if so, forbidding to call the reference resource analysis function corresponding to the current resource.
5. The method of claim 1, further comprising, while generating the first data migration packet according to the acquired resource:
and generating a first check file matched with the first data migration packet, wherein the first check file is used for the second device to check the first data migration packet before importing the target resource and the reference resource.
6. The method of claim 1, further comprising:
displaying preset prompting information under the condition that the target resource list is detected to have the reference resources which cannot be acquired, wherein the preset prompting information is used for prompting the user whether to continue to execute the migration task under the condition that the reference resources are lacked;
and responding to the preset confirmation operation of the user, and continuously executing the migration task.
7. The method of claim 1, further comprising:
acquiring a second data migration packet, wherein the second data migration packet is generated by a third device;
and importing the target resource and the reference resource contained in the second data migration packet into the first device.
8. An apparatus for system application configuration migration, comprising:
an initial resource determining module, configured to determine an initial resource list of the current migration task according to a resource selection operation of a user, where the initial resource list includes a resource identifier of a target resource to be migrated, the resource identifier being selected by the user;
a target resource determining module, configured to determine a reference resource list corresponding to the target resource, and update the initial resource list to obtain a target resource list, so that the target resource list covers a resource identifier of a reference resource in the reference resource list;
and a first data migration packet generation module, configured to obtain a corresponding resource according to the target resource list, and generate a first data migration packet according to the obtained resource, where the first data migration packet is used for a second device to import the target resource and the reference resource.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the method of system application configuration migration of any of claims 1-7.
10. A computer-readable storage medium having stored thereon computer instructions for causing a processor to execute a method of system application configuration migration according to any one of claims 1-7.
CN202210297838.6A 2022-03-24 2022-03-24 Method, device, equipment and storage medium for migrating system application configuration Pending CN114661439A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210297838.6A CN114661439A (en) 2022-03-24 2022-03-24 Method, device, equipment and storage medium for migrating system application configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210297838.6A CN114661439A (en) 2022-03-24 2022-03-24 Method, device, equipment and storage medium for migrating system application configuration

Publications (1)

Publication Number Publication Date
CN114661439A true CN114661439A (en) 2022-06-24

Family

ID=82032089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210297838.6A Pending CN114661439A (en) 2022-03-24 2022-03-24 Method, device, equipment and storage medium for migrating system application configuration

Country Status (1)

Country Link
CN (1) CN114661439A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281461A (en) * 2007-04-04 2008-10-08 国际商业机器公司 Method and device for transfer applying dependent system environment
CN102831211A (en) * 2012-08-14 2012-12-19 中山大学 Data sheet migration method based on sheet relation analysis
US20180232174A1 (en) * 2017-02-15 2018-08-16 Beijing Baidu Netcom Science And Technology Co., Ltd. Data Migration Between Cloud Storage Systems
US10476809B1 (en) * 2014-03-12 2019-11-12 Amazon Technologies, Inc. Moving virtual machines using migration profiles
CN112181857A (en) * 2020-11-06 2021-01-05 无锡江南计算技术研究所 Cross-processor Linux software to be migrated positioning and evaluating method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281461A (en) * 2007-04-04 2008-10-08 国际商业机器公司 Method and device for transfer applying dependent system environment
CN102831211A (en) * 2012-08-14 2012-12-19 中山大学 Data sheet migration method based on sheet relation analysis
US10476809B1 (en) * 2014-03-12 2019-11-12 Amazon Technologies, Inc. Moving virtual machines using migration profiles
US20180232174A1 (en) * 2017-02-15 2018-08-16 Beijing Baidu Netcom Science And Technology Co., Ltd. Data Migration Between Cloud Storage Systems
CN112181857A (en) * 2020-11-06 2021-01-05 无锡江南计算技术研究所 Cross-processor Linux software to be migrated positioning and evaluating method

Similar Documents

Publication Publication Date Title
CN108415998B (en) Application dependency relationship updating method, terminal, device and storage medium
CN110765187A (en) Data source route management method and device
CN108959294B (en) Method and device for accessing search engine
CN113626223A (en) Interface calling method and device
CN111125064A (en) Method and device for generating database mode definition statement
CN111221869A (en) Method and device for tracking database transaction time and analyzing database lock
CN113419789A (en) Method and device for generating data model script
CN108845864B (en) Spring frame-based JVM garbage recycling method and device
CN110334103A (en) The update method of recommendation service provides device, access mechanism and recommender system
KR102583532B1 (en) Scheduling method and apparatus, device and storage medium
CN113495723A (en) Method and device for calling functional component and storage medium
CN116775613A (en) Data migration method, device, electronic equipment and computer readable medium
CN116483345A (en) Form generation method and device, electronic equipment and storage medium
CN116737535A (en) Interface test method, device, computer equipment and storage medium
CN112052152A (en) Simulation test method and device
CN116028946A (en) Method, device and equipment for reinforcing server baseline
CN113282489B (en) Interface testing method and device
CN115543428A (en) Simulated data generation method and device based on strategy template
CN113076343B (en) Data query method, device, equipment and storage medium
CN114661439A (en) Method, device, equipment and storage medium for migrating system application configuration
CN114880020A (en) Software development kit management method, related device and computer program product
CN113656295A (en) Automatic generation method and device of test data, electronic equipment and storage medium
CN113779945A (en) Method and device for generating file
CN113312053A (en) Data processing method and device
CN111796878A (en) Resource splitting and loading method and device applied to single-page application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination