Power Internet of Things flow management application loading method, device, equipment and medium

Update and differential detection of the electricity resource configuration information of the Internet of Things of the Internet of Things, loading the real -time resource configuration information to update the page configuration package, solve the problem of communication resources caused by the large amount of power of the power IoT application package, and realize the page resources Update and save the saving of communication resources in a timely manner.

CN117971275BActive Publication Date: 2025-01-28TIANJIN UNIV +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410228829.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-29
Publication Date
2025-01-28
Estimated Expiration
2044-02-29

AI Technical Summary

Technical Problem

There are too many page resources in the power Internet of Things application package, which leads to a large volume of the package and occupies more communication resources, making it difficult to update the page resources in a timely manner.

Method used

By reading the electricity resource configuration information collection of the power of the Internet of Things, update the local power resource configuration information set, and the response page loaded request for configuration differential detection, loading real -time resource configuration information to update the page configuration package.

Benefits of technology

Realize the timely updating page resources, reduce the occupation of communication resources, and avoid long time and waste of network resources caused by full updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117971275B_ABST
    Figure CN117971275B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a method, device, equipment and medium for loading a flow management application of the electric power Internet of Things. A specific implementation of the method includes: updating the local electric power resource configuration information set according to the electric power resource configuration information set to obtain an updated electric power resource configuration information set; performing configuration difference detection on the electric power update resource configuration information group and the electric power real-time resource configuration information group; selecting the target configuration difference information from the configuration difference information group to obtain the target configuration difference information group; for the target configuration difference information, using the electric power real-time resource configuration information corresponding to the target configuration difference information as the electric power real-time resource configuration information to be loaded, and loading the update page configuration package corresponding to the electric power real-time resource configuration information to be loaded. This implementation can update the page in a timely manner and reduce the occupation of communication resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of page management, and specifically to a method, device, equipment and medium for loading a power Internet of Things traffic management application. Background Art

[0002] The diversity of the statistical distribution of power Internet of Things traffic and the time-varying characteristics of the network state make the dynamic and real-time models of the power Internet of Things traffic system face many obstacles, and the obtained traffic control and management algorithms are only partially effective. In order to improve the control efficiency of the power Internet of Things, a power Internet of Things application is designed to control the power Internet of Things traffic system. At present, when the power Internet of Things application is loading pages, the method usually adopted is: first, the page resources of each page are packaged into the power Internet of Things application package for release. Then, the corresponding page resources in the power Internet of Things application package are directly called for loading.

[0003] However, when the above method is used to load the page, the following technical problems often occur: there are too many page resources in the power Internet of Things application package, which makes the power Internet of Things application package large in size and occupies more communication resources, making it difficult to update the page resources in a timely manner.

[0004] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention

[0005] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0006] Some embodiments of the present disclosure propose a method, device, electronic device and computer-readable medium for loading a power Internet of Things flow management application to solve one or more of the technical problems mentioned in the above background technology section.

[0007] In a first aspect, some embodiments of the present disclosure provide a method for loading an electric power Internet of Things traffic management application, the method comprising: reading an electric power resource configuration information set corresponding to the electric power Internet of Things application; updating the local electric power resource configuration information set according to the electric power resource configuration information set to obtain an updated electric power resource configuration information set; in response to receiving a page loading request for an electric power Internet of Things traffic management page, and the existence of at least one corresponding local electric power Internet of Things application page configuration package, performing configuration difference detection on an electric power update resource configuration information group and an electric power real-time resource configuration information group to obtain a configuration difference information group, wherein the electric power Internet of Things traffic management page is a traffic management page in the electric power Internet of Things application, and the updated electric power resource configuration information set comprises: The power update resource configuration information group corresponding to the Internet of Things traffic management page, the above-mentioned power real-time resource configuration information group corresponds to the above-mentioned power Internet of Things traffic management page; in response to determining that there is target configuration difference information in the above-mentioned configuration difference information group, the target configuration difference information is selected from the above-mentioned configuration difference information group to obtain the target configuration difference information group, wherein the target configuration difference information represents the update of the corresponding local power Internet of Things application page configuration package; for each target configuration difference information in the above-mentioned target configuration difference information group, the power real-time resource configuration information corresponding to the above-mentioned target configuration difference information is used as the power real-time resource configuration information to be loaded, and the update page configuration package corresponding to the above-mentioned power real-time resource configuration information to be loaded is loaded for the above-mentioned power Internet of Things traffic management page to load.

[0008] In a second aspect, some embodiments of the present disclosure provide a device for loading an electric power Internet of Things traffic management application, the device comprising: a reading unit configured to read an electric power resource configuration information set corresponding to the electric power Internet of Things application; an updating unit configured to update the local electric power resource configuration information set according to the electric power resource configuration information set to obtain an updated electric power resource configuration information set; a detection unit configured to detect a configuration difference between an electric power update resource configuration information group and an electric power real-time resource configuration information group in response to receiving a page loading request for an electric power Internet of Things traffic management page and the existence of at least one corresponding local electric power Internet of Things application page configuration package, to obtain a configuration difference information group, wherein the electric power Internet of Things traffic management page is a traffic management page in the electric power Internet of Things application, and the updated electric power resource configuration information set comprises: The power update resource configuration information group corresponding to the above-mentioned power Internet of Things traffic management page, the above-mentioned power real-time resource configuration information group corresponds to the above-mentioned power Internet of Things traffic management page; the selection unit is configured to, in response to determining that there is target configuration difference information in the above-mentioned configuration difference information group, select the target configuration difference information from the above-mentioned configuration difference information group to obtain the target configuration difference information group, wherein the target configuration difference information represents the update of the corresponding local power Internet of Things application page configuration package; the loading unit is configured to, for each target configuration difference information in the above-mentioned target configuration difference information group, use the power real-time resource configuration information corresponding to the above-mentioned target configuration difference information as the power real-time resource configuration information to be loaded, and load the update page configuration package corresponding to the above-mentioned power real-time resource configuration information to be loaded, so that the above-mentioned power Internet of Things traffic management page can load it.

[0009] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.

[0010] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.

[0011] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the power Internet of Things traffic management application loading method of some embodiments of the present disclosure, the page can be updated in time to reduce the occupation of communication resources. Specifically, it will occupy more communication resources, resulting in the difficulty in updating the page resources in time because there are too many page resources in the power Internet of Things application package, which makes the power Internet of Things application package larger in size and occupies more communication resources. Based on this, the power Internet of Things traffic management application loading method of some embodiments of the present disclosure first reads the power resource configuration information set corresponding to the power Internet of Things application. Thus, the configuration information corresponding to each page resource configuration package can be obtained, so that when a resource request is initiated later, the corresponding page resource configuration package can be downloaded according to the corresponding configuration information to load the page resources therein. Secondly, according to the above-mentioned power resource configuration information set, the local power resource configuration information set is updated to obtain the updated power resource configuration information set. Thus, each power resource configuration information stored locally can be updated. Then, in response to receiving a page loading request for the power Internet of Things traffic management page, and the existence of at least one corresponding local power Internet of Things application page configuration package, the power update resource configuration information group and the power real-time resource configuration information group are configured differently to obtain a configuration difference information group. Among them, the above-mentioned power Internet of Things traffic management page is the traffic management page in the above-mentioned power Internet of Things application, and the above-mentioned updated power resource configuration information set includes: a power update resource configuration information group corresponding to the above-mentioned power Internet of Things traffic management page, and the above-mentioned power real-time resource configuration information group corresponds to the above-mentioned power Internet of Things traffic management page. Therefore, when entering the page, the update configuration corresponding to the local power Internet of Things application page configuration package can be compared with the real-time configuration again to determine whether the update configuration is the latest configuration, that is, to determine whether the local power Internet of Things application page configuration package needs to be updated. Then, in response to determining that there is target configuration difference information in the above-mentioned configuration difference information group, the target configuration difference information is selected from the above-mentioned configuration difference information group to obtain the target configuration difference information group. Among them, the target configuration difference information represents the update of the corresponding local power Internet of Things application page configuration package. Therefore, each local power Internet of Things application page configuration package to be updated can be determined. Finally, for each target configuration difference information in the above-mentioned target configuration difference information group, the power real-time resource configuration information corresponding to the above-mentioned target configuration difference information is used as the power real-time resource configuration information to be loaded, and the update page configuration package corresponding to the above-mentioned power real-time resource configuration information to be loaded is loaded for the above-mentioned power Internet of Things traffic management page to load. As a result, there is no need to re-download and install the entire power Internet of Things application package. As a result, the page can be updated in a timely manner, reducing the occupation of communication resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0013] Figure 1 is a flowchart of some embodiments of a method for loading a power Internet of Things flow management application according to the present disclosure;

[0014] Figure 2 It is a flowchart of some embodiments of the power Internet of Things flow management application loading device according to the present disclosure;

[0015] Figure 3 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0016] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0017] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0018] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0019] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0020] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0021] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0022] Figure 1The flowchart of some embodiments of the method for loading a power Internet of Things traffic management application according to the present disclosure is shown. The process 100 of some embodiments of the method for loading a power Internet of Things traffic management application according to the present disclosure is shown. The method for loading a power Internet of Things traffic management application comprises the following steps:

[0023] Step 101, read the power resource configuration information set corresponding to the power Internet of Things application.

[0024] In some embodiments, the execution subject (e.g., a computing device) of the method for loading the power Internet of Things traffic management application can read the power resource configuration information set corresponding to the power Internet of Things application. For example, the execution subject can read the power resource configuration information set corresponding to the power Internet of Things application from the terminal device by wired connection or wireless connection. The power Internet of Things application can refer to an application that performs power Internet of Things traffic statistics and dynamically manages each power network node. The power resource configuration information can be the configuration information of the resource package corresponding to the power project. The power project can be a business power resource project, a public power resource project, or a global power resource project. The business power resource project can refer to the power resources of a single business. The public power resource project can refer to the power resource project of the public system (government engineering power project). The global power resource project can be a public power project + all business power projects. The power resource configuration information can include but is not limited to: power project identification, power project version number, file version number, and download path. The power project identification can be the identification of the power project corresponding to the resource configuration information. The power project version number can be the unique number of the version of the power project. The file version number can be the unique number of the version of the resource configuration package corresponding to the power project. The download path can be the path for downloading the corresponding resource configuration package.

[0025] In practice, the above-mentioned execution subject can read the power resource configuration information set corresponding to the power Internet of Things application through the following steps:

[0026] The first step is to create a business resource configuration information set, a public resource configuration information set and a global resource configuration information set corresponding to the above-mentioned power Internet of Things application. Among them, the business resource configuration information in the above-mentioned business resource configuration information set may be the configuration information of the business power resource configuration package. The business resource configuration information in the above-mentioned business resource configuration information set corresponds to the business power resource project one-to-one. The business resource configuration information in the above-mentioned business resource configuration information set may include but is not limited to the power project identifier, page address, and effective time. The above-mentioned page address may be the network address of the page corresponding to the resource configuration information. The above-mentioned effective time may be the time when the resource configuration information takes effect. The public resource configuration information in the above-mentioned public resource configuration information set may be the configuration information of the public resource configuration package. The public resource configuration information in the above-mentioned public resource configuration information set may correspond to the public power resource project one-to-one. The public resource configuration information in the above-mentioned public resource configuration information set may include but is not limited to the power project identifier, page address group, and effective time. The above-mentioned page address group may be the network address of each page corresponding to the resource configuration information. The global resource configuration information in the above-mentioned global resource configuration information set may be the configuration information of the global resource configuration package. The global resource configuration information in the above-mentioned global resource configuration information set may correspond to the global power resource project one-to-one. The global resource configuration information in the above global resource configuration information set may include but is not limited to a power project identifier, a resource name, and a download link. The above resource name may be the name of the corresponding page resource. The above download link may be a link for downloading the corresponding global resource.

[0027] In practice, the page developer corresponding to the power Internet of Things application can create a business resource configuration information set, a public resource configuration information set, and a global resource configuration information set for the power Internet of Things application by filling in a project form on the server side. The project form may be a form including various configuration items corresponding to the resource configuration information. The various configuration items may correspond to the resource configuration package to be configured.

[0028] The second step is to package the page resources corresponding to the above-mentioned power Internet of Things application to obtain a business resource configuration package set and a public resource configuration package set. Among them, one business resource configuration package corresponds to one business resource configuration information, and one public resource configuration package corresponds to one public resource configuration information. The page resources corresponding to the above-mentioned power Internet of Things application can be packaged by compression and packaging to obtain a business resource configuration package set and a public resource configuration package set.

[0029] The third step is to determine the global resource configuration package set corresponding to the global resource configuration information set. For each global resource package configuration information in the global resource package configuration information set, the download link included in the global resource package configuration information can be determined as a public resource package.

[0030] In the fourth step, based on the business resource configuration package set, the public resource configuration package set and the global resource configuration package set, the business resource configuration information set, the public resource configuration information set and the global resource configuration information set are updated to obtain the power resource configuration information set. As an example, first, for each business resource configuration information in the business resource configuration information set, the preset resource configuration information, the business resource configuration information and the download path of the corresponding business resource configuration package can be determined as the power resource configuration information. Among them, the preset resource configuration information can be information of the configuration related to resource use that is pre-set. For example, the preset resource configuration information can include but is not limited to at least one of the following: the minimum download version and the maximum download version supported by the project. Then, for each public resource configuration information in the public resource configuration information set, the preset resource configuration information, the public resource configuration information and the download path of the corresponding public resource configuration package can be determined as the power resource configuration information. After that, for each global resource configuration information in the global resource configuration information set, the preset resource configuration information, the global resource configuration information and the download link in the corresponding global resource configuration package can be determined as the power resource configuration information. Finally, the obtained individual power resource configuration information is determined as a power resource configuration information set.

[0031] Step 102: update the local power resource configuration information set according to the power resource configuration information set to obtain an updated power resource configuration information set.

[0032] In some embodiments, the above-mentioned execution subject may update the local power resource configuration information set according to the above-mentioned power resource configuration information set to obtain an updated power resource configuration information set. Among them, the local power resource configuration information in the above-mentioned local power resource configuration information set may be the resource configuration information of the power project corresponding to the local power Internet of Things application page configuration package. The above-mentioned local power Internet of Things application page configuration package may be a page resource package stored locally. The local power resource configuration information in the above-mentioned local power resource configuration information set may include but is not limited to the power project identification, power project version number, file version number, and download path. The updated power resource configuration information in the above-mentioned updated power resource configuration information set may be the information of the latest resource configuration of the corresponding power project.

[0033] In practice, the above-mentioned execution subject can update the local power resource configuration information set through the following steps:

[0034] In the first step, for each piece of power resource configuration information in the above power resource configuration information set, the following processing steps are performed:

[0035] The first sub-step is, in response to the existence of the target local power resource configuration information in the above-mentioned local power resource configuration information set, performing version difference detection on the above-mentioned power resource configuration information and the above-mentioned target local power resource configuration information to generate version difference information. The above-mentioned target local power resource configuration information is the local power resource configuration information that matches the above-mentioned power resource configuration information. Matching the above-mentioned power resource configuration information may be: the power project identifier included in the local power resource configuration information is the same as the power project identifier included in the above-mentioned power resource configuration information. The above-mentioned version difference information may be the information of the difference between the power project version number in the above-mentioned target local power resource configuration information and the power project version number in the above-mentioned power resource configuration information.

[0036] In a second sub-step, in response to determining that the version difference information indicates that the power resource configuration package is to be loaded, the power resource configuration information and the preset loading identifier are combined into updated power resource configuration information. The power resource configuration package corresponds to the power resource configuration information. The project resource configuration package may be a resource configuration package corresponding to the power resource configuration information. The preset to-be-loaded identifier may be a pre-set identifier that indicates that the power project resource configuration package is to be loaded.

[0037] In the second step, in response to determining that the target local power resource configuration information does not exist in the above-mentioned local power resource configuration information set, the local power Internet of Things application page configuration package corresponding to the above-mentioned target local power resource configuration information is deleted.

[0038] Step 103, in response to receiving a page loading request for the power Internet of Things traffic management page, and the existence of at least one corresponding local power Internet of Things application page configuration package, a configuration difference detection is performed on the power update resource configuration information group and the power real-time resource configuration information group to obtain a configuration difference information group.

[0039] In some embodiments, the execution subject may detect the configuration difference between the power update resource configuration information group and the power real-time resource configuration information group in response to receiving a page load request of the power Internet of Things traffic management page and the existence of at least one corresponding local power Internet of Things application page configuration package, and obtain a configuration difference information group. Among them, the power Internet of Things traffic management page is the traffic management page in the power Internet of Things application, and the updated power resource configuration information set includes: the power update resource configuration information group corresponding to the power Internet of Things traffic management page, and the power real-time resource configuration information group corresponds to the power Internet of Things traffic management page. For example, the power Internet of Things traffic management page may be the startup page or homepage of the power Internet of Things application, or a page with a deeper entrance. The page load request may be a network request for loading page resources. The updated power resource configuration information set may include: the power update resource configuration information group corresponding to the power Internet of Things traffic management page. The power update resource configuration information may be the power update resource configuration information corresponding to the power Internet of Things traffic management page. The power real-time resource configuration information in the power real-time resource configuration information group may be information obtained in real time and corresponding to the version configuration of the power project. The power real-time resource configuration information may include a power project identifier, a real-time power project version number, and a real-time file version number. The above-mentioned real-time power project version number may be the latest project version number corresponding to the power project. The above-mentioned real-time file version number may be the latest file version number corresponding to the resource configuration package. The configuration difference information in the above-mentioned configuration difference information group may be: information on the difference between the real-time power project version number included in the power real-time resource configuration information and the power project version number included in the corresponding power update resource configuration information. In practice, when the difference corresponding to the configuration difference information is greater than 0, the above-mentioned configuration difference information may indicate an update to the corresponding local power Internet of Things application page configuration package. When the difference corresponding to the configuration difference information is equal to 0, the above-mentioned configuration difference information may indicate that there is no need to update the corresponding local power Internet of Things application page configuration package.

[0040] Step 104 , in response to determining that the target configuration difference information exists in the configuration difference information group, select the target configuration difference information from the configuration difference information group to obtain the target configuration difference information group.

[0041] In some embodiments, the execution subject may select the target configuration difference information from the configuration difference information group in response to determining that there is target configuration difference information in the configuration difference information group, and obtain the target configuration difference information group. The target configuration difference information indicates updating the corresponding local power Internet of Things application page configuration package. For example, the target configuration difference information may be configuration difference information whose corresponding difference value is greater than 0.

[0042] Step 105, for each target configuration difference information in the above-mentioned target configuration difference information group, the electric power real-time resource configuration information corresponding to the above-mentioned target configuration difference information is used as the electric power real-time resource configuration information to be loaded, and the update page configuration package corresponding to the above-mentioned electric power real-time resource configuration information to be loaded is loaded for the above-mentioned electric power Internet of Things traffic management page to load.

[0043] In some embodiments, the execution subject may, for each target configuration difference information in the target configuration difference information group, use the electric power real-time resource configuration information corresponding to the target configuration difference information as the electric power real-time resource configuration information to be loaded, and load the update page configuration package corresponding to the electric power real-time resource configuration information to be loaded, so as to be loaded by the electric power Internet of Things traffic management page. The update page configuration package may be a resource configuration package for updating the local electric power Internet of Things application page configuration package.

[0044] Continuing, when the power Internet of Things flow management application loading method of this application is used to load the application page, the following problems often occur: when the application version is updated, the application needs to be updated by a full update. For these problems, the conventional solution is: the technical staff configures the application package and then performs a full update.

[0045] However, the above solutions usually have the following technical problem: the full update of the application takes a long time and easily causes a waste of network resources.

[0046] In response to the above-mentioned technical problem 2, it was decided to adopt the following solution.

[0047] In practice, the execution subject may load the update page configuration package corresponding to the real-time power resource configuration information to be loaded through the following steps:

[0048] The first step is to add the loading task corresponding to the above-mentioned real-time power resource configuration information to be loaded to the preset loading task queue. The above-mentioned real-time power resource configuration information to be loaded includes: a loading address link. The above-mentioned loading task may be the information required to load the page resource configuration package corresponding to the above-mentioned real-time power resource configuration information to be loaded. The above-mentioned loading task may include but is not limited to the power project identification and the power project version number. The above-mentioned loading task queue may be a task queue for downloading the page resource configuration package, which is executed according to the order of joining the queue. The loading task corresponding to the above-mentioned real-time power resource configuration information to be loaded can be directly added to the preset loading task queue.

[0049] The second step is to determine the update type information based on the above-mentioned power real-time resource configuration information to be loaded. Among them, the above-mentioned update type information can be information on the update method for updating the local power Internet of Things application page configuration package. The update method can include incremental update and full update. Incremental update can be updated by downloading a differential package and a local power Internet of Things application page configuration package. Full update can be updated by downloading a complete package to directly replace the local power Internet of Things application page configuration package.

[0050] The third step is to load the update page configuration package based on the above update type information.

[0051] The third step may include the following sub-steps:

[0052] In the first sub-step, in response to determining that the update type information represents an incremental update, the load address link is updated according to the real-time power resource configuration information and the local power resource configuration information corresponding to the target configuration difference information to obtain an incremental update load link. The execution subject can concatenate the load address link, the real-time file version number included in the real-time power resource configuration information, and the file version number included in the local power resource configuration information through a preset connector to obtain an incremental update load link. The preset connector can be "_".

[0053] The second sub-step is to load the update page configuration package based on the incremental update loading link. The network request corresponding to the incremental update loading link can be sent to the server to load the update page configuration package.

[0054] In a third sub-step, in response to determining that the update type information indicates a full update, based on the loading address link, the update page configuration package is loaded. The loading address link may be sent to the server to load the update page configuration package.

[0055] The fourth step is to update the local power Internet of Things application page configuration package corresponding to the above-mentioned power real-time resource configuration information to be loaded based on the above-mentioned update page configuration package, so as to provide the above-mentioned power Internet of Things traffic management page with an update process. First, the above-mentioned execution subject can respond to the incremental update corresponding to the above-mentioned update page configuration package, and combine the above-mentioned update page configuration package and the local power Internet of Things application page configuration package corresponding to the above-mentioned power real-time resource configuration information to be loaded, so as to obtain an updated local power Internet of Things application page configuration package for the above-mentioned power Internet of Things traffic management page to load.

[0056] The above-mentioned related contents, as an inventive point of the present disclosure, solve the second technical problem "Full update application, long update time, and easy to cause waste of network resources.". Factors that easily cause waste of network resources are often as follows: Full update application, long update time, and easy to cause waste of network resources. If the above factors are solved, the effect of reducing waste of network resources can be achieved. In order to achieve this effect, first, the loading task corresponding to the above-mentioned real-time power resource configuration information to be loaded is added to the preset loading task queue. Among them, the above-mentioned real-time power resource configuration information to be loaded includes: loading address link. Then, based on the above-mentioned real-time power resource configuration information to be loaded, the update type information is determined. Then, based on the above-mentioned update type information, the update page configuration package is loaded. Finally, based on the above-mentioned update page configuration package, the local power Internet of Things application page configuration package corresponding to the above-mentioned real-time power resource configuration information to be loaded is updated for the above-mentioned power Internet of Things traffic management page to load. As a result, resources can be updated in a timely manner through incremental updates, and less bandwidth resources are occupied. Through full updates, the integrity and consistency of resources can be better ensured, and loading errors can be reduced. The page resource can be downloaded at a downloading time corresponding to the priority, thereby reducing the bandwidth consumption of each download of the page resource, thereby reducing the bandwidth consumption of the page resource download.

[0057] Continuing, when the power Internet of Things traffic management application loading method of this application is used to load the application page, the following problems often occur: the application needs to call the middleware to ensure the normal operation of the application. For these problems, the conventional solution is to register and call the middleware through the built-in configuration file to ensure the normal operation of the application.

[0058] However, the above solutions usually have the following technical problem three: during application operation, if you need to modify the alias, timeout period and other configurations to meet application requirements, you need to modify the configuration file again and re-publish a new application.

[0059] In response to the above technical problem three, it was decided to adopt the following solution.

[0060] Optionally, in response to detecting a change request representing the application middleware configuration data, it is determined whether there is configuration data matching the application configuration data in the current configuration data.

[0061] In some embodiments, the execution subject may determine whether there is configuration data matching the application configuration data in the current configuration data in response to detecting a change request representing the application middleware configuration data. The application configuration data is the configuration data of the application middleware indicated by the change request. The configuration data may be set according to actual conditions, such as the configuration data of the application middleware may include but is not limited to: interface identifier (such as interface class name), alias, timeout, serialization method, number of retries, connection key and other common parameters for application middleware registration. The application middleware may refer to the middleware that the power Internet of Things application needs to call program services. The application configuration data may be the configuration data of the application middleware indicated by the change request.

[0062] In practice, the execution subject may determine whether there is configuration data matching the application configuration data in the current configuration data by the following steps:

[0063] The first step is to determine whether the interface identifier of the application middleware exists in the pre-created configuration data record, wherein the configuration data record is used to store the latest configuration data of each application middleware.

[0064] In the second step, in response to determining that the interface identifier of the application middleware does not exist, or determining that the configuration data of the application middleware is different from the application configuration data in the configuration data record, determining that there is no matching configuration data in the existing configuration data.

[0065] In a third step, in response to determining that the configuration data change of the application middleware is completed, the application configuration data is stored in the configuration data record.

[0066] Optionally, in response to determining that no matching configuration data exists, a new instance of the application middleware is created, and information of a relying party that references the application middleware is obtained.

[0067] In some embodiments, the execution subject may create a new instance of the application middleware in response to determining that there is no matching configuration data, and obtain the information of the relying party that references the application middleware. In practice, the execution subject may obtain the instance of the class to which the interface identifier belongs and the list of objects that rely on the instance of the class according to the interface identifier in the application configuration data. Among them, the object information in the object list represents the relying party information that references the application middleware. A new instance object can be created by generalizing the registry configuration (RegistryConfig) and caller configuration (ConsumerConfig) built into the application middleware. The execution subject may also use various existing instance object creation methods to create a new instance according to the different application middleware. The new instance here uses the parameter data in the application configuration data. That is, the instance of the class (Class) in the system can be obtained through the interface class name in the application configuration data, and the list of all beans that rely on this Class instance can be obtained through the ability of Spring. Specifically, the Bean factory of IoC (Inversion of Control) is obtained through the context of Spring. Through the Bean factory, you can get the list of beans that depend on a certain Class instance from the IoC dependency relationship.

[0068] Optionally, the correspondence between the relying party information and the application middleware is changed to a new instance of the application middleware.

[0069] In some embodiments, the execution subject may change the correspondence between the above-mentioned relying party information and the above-mentioned application middleware to a new instance of the above-mentioned application middleware. In practice, the execution subject may change the field data representing the above-mentioned application middleware in the above-mentioned relying party information to a new instance of the above-mentioned application middleware. The execution subject may loop through the list of all beans that depend on the current application middleware. Through the Java built-in capability-reflection, the application middleware dependent field in the current bean is reassigned. Among them, the reflection mechanism generally refers to the fact that in the running state of the program, objects of any class can be constructed, the class to which any object belongs can be understood, the member variables and methods of any class can be understood, and the properties and methods of any object can be called.

[0070] Optionally, in response to determining that there are multiple application middlewares indicated by the change request and configuration data of the multiple application middlewares have been changed, restoring the application middleware is determined according to a comparison result between the change request and the last change request.

[0071] In some embodiments, the execution subject may determine the restored application middleware in response to determining that the change request indicates multiple application middlewares and that the configuration data of multiple application middlewares have been changed, based on the comparison result between the change request and the last change request. The restored application middleware is the application middleware indicated by the last change request and not indicated by the change request. The restored application middleware may be the application middleware indicated by the last change request and not indicated by this change request. For example, the first configuration change is [JSF-1, JSF-2], and the second configuration change is [JSF-2]. Then the purpose of this change operation is to change JSF-2 and to restore JSF-1 to the original instance in the second change. Because the change of JSF-1 is no longer needed.

[0072] In practice, the execution entity may compare and analyze the temporary change record with the pre-created global change record, and determine the application middleware recorded in the global change record but not in the temporary change record as the restored application middleware. The global change record is used to store the latest changed application middleware instance.

[0073] Optionally, the configuration data of the restored application middleware is restored to original configuration data.

[0074] In some embodiments, the execution subject can restore the configuration data of the restored application middleware to the original configuration data. The original configuration data here is usually the initial configuration data of each application middleware when the system is initialized and started. As an example, the execution subject can create an original instance of the restored application middleware based on the original configuration data.

[0075] In practice, the execution subject may restore the configuration data of the application middleware to the original configuration data by following the steps below:

[0076] The first step is to obtain the original instance of the restored application middleware from the pre-created original instance record, wherein the original instance record is used to store the original instance of each application middleware in the system.

[0077] In the second step, the corresponding relationship between the relying party information that references the above-mentioned restoration application middleware and the above-mentioned restoration application middleware is changed to the original instance of the above-mentioned restoration application middleware.

[0078] Optionally, the new instance of the application middleware is stored in a pre-created temporary change record.

[0079] In some embodiments, the execution subject may store the new instance of the application middleware in a pre-created temporary change record. In this way, the global change record stores the latest changed application middleware instance in the system. In addition, the execution subject may also clear the data in the temporary change record to store the next updated instance. Alternatively, the temporary change record may be deleted to be recreated at the next change.

[0080] Optionally, in response to determining that the restoration of the restoration application middleware is complete, the data in the global change record is replaced with the data in the temporary change record, and the data in the temporary change record is cleared.

[0081] In some embodiments, the execution subject may replace the data in the global change record with the data in the temporary change record, and clear the data in the temporary change record in response to determining that the restoration of the restoration application middleware is complete.

[0082] The above-mentioned related contents, as an inventive point of the present disclosure, solve the technical problem three "re-publishing new applications." The factors for re-publishing new applications are often as follows: during the operation of the application, if the configurations such as the alias and timeout period need to be modified to meet the application requirements, the configuration file needs to be modified again and the new application needs to be re-published. If the above-mentioned factors are solved, the effect of realizing the senseless change of the middleware configuration data can be achieved, and the timeliness of the configuration change can also be guaranteed. In order to achieve this effect, first, in response to detecting a change request representing the application middleware configuration data, it is determined whether there is configuration data matching the application configuration data in the current configuration data. Among them, the above-mentioned application configuration data is the configuration data of the application middleware indicated by the above-mentioned change request. Secondly, in response to determining that there is no matching configuration data, a new instance of the above-mentioned application middleware is created, and the relying party information that references the above-mentioned application middleware is obtained. Then, the corresponding relationship between the above-mentioned relying party information and the above-mentioned application middleware is changed to the new instance of the above-mentioned application middleware. Therefore, when a configuration data change request is detected and there is no matching configuration data in the existing configuration data, a new instance of the application middleware can be created according to the application configuration data. In this way, the automatic creation and generation of new instances can be achieved without manual creation. This helps to reduce the change time and reduce or avoid errors caused by manual changes. Next, in response to determining that the application middleware indicated by the above change request is multiple and the configuration data of multiple application middlewares have been changed, the restored application middleware is determined according to the comparison result of the above change request and the last change request. Among them, the above restored application middleware is the application middleware indicated by the above last change request and not indicated by the above change request. Then, the configuration data of the above restored application middleware is restored to the original configuration data; and the new instance of the above application middleware is stored in the pre-created temporary change record. Finally, in response to determining that the above restored application middleware is restored, the data in the above global change record is replaced with the data in the above temporary change record, and the data in the above temporary change record is cleared. In this way, the new instance can replace the original reference to achieve a business-insensitive middleware instance change. Because the configuration is placed in the configuration center, the instance of the middleware can be dynamically and flexibly controlled.

[0083] Further references Figure 2 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a power Internet of Things flow management application loading device. These power Internet of Things flow management application loading device embodiments are similar to Figure 1 Corresponding to the method embodiments shown, the power Internet of Things flow management application loading device can be specifically applied to various electronic devices.

[0084] like Figure 2As shown, in some embodiments, the power Internet of Things traffic management application loading device 200 includes: a reading unit 201, an updating unit 202, a detecting unit 203, a selecting unit 204 and a loading unit 205. The reading unit 201 is configured to read the power resource configuration information set corresponding to the power Internet of Things application; the updating unit 202 is configured to update the local power resource configuration information set according to the above power resource configuration information set to obtain an updated power resource configuration information set; the detecting unit 203 is configured to respond to the page loading request received for the power Internet of Things traffic management page and the existence of at least one corresponding local power Internet of Things application page configuration package, perform configuration difference detection on the power update resource configuration information group and the power real-time resource configuration information group to obtain a configuration difference information group, wherein the above power Internet of Things traffic management page is the traffic management page in the above power Internet of Things application, and the above updated power resource configuration information set includes: the power corresponding to the above power Internet of Things traffic management page The power real-time resource configuration information group is updated, and the above-mentioned power real-time resource configuration information group corresponds to the above-mentioned power Internet of Things traffic management page; the selection unit 204 is configured to respond to determining that there is target configuration difference information in the above-mentioned configuration difference information group, select the target configuration difference information from the above-mentioned configuration difference information group, and obtain the target configuration difference information group, wherein the target configuration difference information represents the update of the corresponding local power Internet of Things application page configuration package; the loading unit 205 is configured to, for each target configuration difference information in the above-mentioned target configuration difference information group, use the power real-time resource configuration information corresponding to the above-mentioned target configuration difference information as the power real-time resource configuration information to be loaded, and load the update page configuration package corresponding to the above-mentioned power real-time resource configuration information to be loaded, so that the above-mentioned power Internet of Things traffic management page can load it.

[0085] It can be understood that the units recorded in the power Internet of Things flow management application loading device 200 are similar to the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the power Internet of Things flow management application loading device 200 and the units contained therein, and will not be repeated here.

[0086] Reference below Figure 3 , which shows a schematic diagram of the structure of an electronic device (e.g., a computing device) 300 suitable for implementing some embodiments of the present disclosure. The electronic devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0087] like Figure 3 As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0088] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0089] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0090] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0091] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0092] The computer-readable medium may be included in the electronic device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: reads the power resource configuration information set corresponding to the power Internet of Things application; updates the local power resource configuration information set according to the power resource configuration information set to obtain an updated power resource configuration information set; in response to receiving a page loading request for the power Internet of Things traffic management page and the existence of at least one corresponding local power Internet of Things application page configuration package, performs configuration difference detection on the power update resource configuration information group and the power real-time resource configuration information group to obtain a configuration difference information group, wherein the power Internet of Things traffic management page is the traffic management page in the power Internet of Things application, and the updated power resource configuration information set includes: The power update resource configuration information group corresponding to the above-mentioned power Internet of Things traffic management page, the above-mentioned power real-time resource configuration information group corresponds to the above-mentioned power Internet of Things traffic management page; in response to determining that there is target configuration difference information in the above-mentioned configuration difference information group, the target configuration difference information is selected from the above-mentioned configuration difference information group to obtain the target configuration difference information group, wherein the target configuration difference information represents the update of the corresponding local power Internet of Things application page configuration package; for each target configuration difference information in the above-mentioned target configuration difference information group, the power real-time resource configuration information corresponding to the above-mentioned target configuration difference information is used as the power real-time resource configuration information to be loaded, and the update page configuration package corresponding to the above-mentioned power real-time resource configuration information to be loaded is loaded for the above-mentioned power Internet of Things traffic management page to load.

[0093] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0094] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0095] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor comprising: a reading unit, an updating unit, a detecting unit, a selecting unit and a loading unit. The names of these units do not constitute limitations on the units themselves in certain circumstances, for example, the reading unit may also be described as a "unit for reading a set of power resource configuration information corresponding to a power Internet of Things application".

[0096] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0097] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. A method for loading a power Internet of Things traffic management application, comprising: Read the power resource configuration information set corresponding to the power Internet of Things application; According to the electric power resource configuration information set, updating the local electric power resource configuration information set is performed to obtain an updated electric power resource configuration information set; In response to receiving a page load request for a power Internet of Things traffic management page, and the existence of at least one corresponding local power Internet of Things application page configuration package, a configuration difference detection is performed on a power update resource configuration information group and a power real-time resource configuration information group to obtain a configuration difference information group, wherein the power Internet of Things traffic management page is a traffic management page in the power Internet of Things application, and the updated power resource configuration information set includes: a power update resource configuration information group corresponding to the power Internet of Things traffic management page, and the power real-time resource configuration information group corresponds to the power Internet of Things traffic management page; In response to determining that there is target configuration difference information in the configuration difference information group, selecting the target configuration difference information from the configuration difference information group to obtain a target configuration difference information group, wherein the target configuration difference information indicates updating a corresponding local power Internet of Things application page configuration package; For each target configuration difference information in the target configuration difference information group, use the electric power real-time resource configuration information corresponding to the target configuration difference information as the electric power real-time resource configuration information to be loaded, and load the update page configuration package corresponding to the electric power real-time resource configuration information to be loaded, so as to be loaded by the electric power Internet of Things traffic management page; In response to detecting a change request representing application middleware configuration data, determining whether there is configuration data matching the application configuration data among the current configuration data, wherein the application configuration data is configuration data of the application middleware indicated by the change request; In response to determining that there is no matching configuration data, creating a new instance of the application middleware, and obtaining relying party information that references the application middleware; Changing the correspondence between the relying party information and the application middleware to a new instance of the application middleware; In response to determining that there are multiple application middlewares indicated by the change request and that configuration data of the multiple application middlewares have all been changed, determining a restoration application middleware according to a comparison result between the change request and a previous change request, wherein the restoration application middleware is the application middleware indicated by the previous change request and not indicated by the change request; Restoring the configuration data of the restored application middleware to the original configuration data; Storing the new instance of the application middleware in a pre-created temporary change record; In response to determining that the restoration of the restoration application middleware is complete, replacing the data in the global change record with the data in the temporary change record, and clearing the data in the temporary change record; The step of determining the restoration application middleware according to the comparison result between the change request and the last change request includes: Compare and analyze the temporary change record with the pre-created global change record, and determine the application middleware recorded in the global change record and not recorded in the temporary change record as the restored application middleware, wherein the global change record is used to store the latest changed application middleware instance; The step of restoring the configuration data of the restored application middleware to the original configuration data includes: Acquire the original instance of the restored application middleware from a pre-created original instance record, wherein the original instance record is used to store the original instance of each application middleware in the system; Changing the correspondence between the relying party information that references the restoration application middleware and the restoration application middleware to the original instance of the restoration application middleware; The updating process of the local power resource configuration information set according to the power resource configuration information set to obtain the updated power resource configuration information set includes: For each piece of power resource configuration information in the power resource configuration information set, the following processing steps are performed: In response to determining that the target local power resource configuration information exists in the local power resource configuration information set, performing version difference detection on the power resource configuration information and the target local power resource configuration information to generate version difference information, wherein the target local power resource configuration information is local power resource configuration information that matches the power resource configuration information; In response to determining that the version difference information indicates loading of a power resource configuration package, merging the power resource configuration information and a preset loading identifier into updated power resource configuration information, wherein the power resource configuration package corresponds to the power resource configuration information; In response to determining that the target local power resource configuration information does not exist in the local power resource configuration information set, deleting the local power Internet of Things application page configuration package corresponding to the target local power resource configuration information; The step of loading the update page configuration package corresponding to the real-time power resource configuration information to be loaded, so as to load the power Internet of Things traffic management page, includes: Adding the loading task corresponding to the real-time power resource configuration information to be loaded to a preset loading task queue, wherein the real-time power resource configuration information to be loaded includes: a loading address link; Determining update type information based on the real-time power resource configuration information to be loaded; Based on the update type information, loading an update page configuration package; Based on the update page configuration package, the local power Internet of Things application page configuration package corresponding to the power real-time resource configuration information to be loaded is updated for loading by the power Internet of Things traffic management page; The step of loading the update page configuration package based on the update type information includes: In response to determining that the update type information represents an incremental update, updating the load address link according to the real-time power resource configuration information and the local power resource configuration information corresponding to the target configuration difference information to obtain an incremental update load link; Based on the incremental update loading link, load the update page configuration package; In response to determining that the update type information represents a full update, an update page configuration package is loaded based on the loading address link.

2. The method according to claim 1, wherein: The reading of the electric power resource configuration information set corresponding to the electric power Internet of Things application includes: Create a business resource configuration information set, a public resource configuration information set and a global resource configuration information set corresponding to the power Internet of Things application; Packaging the page resources corresponding to the electric power Internet of Things application to obtain a business resource configuration package set and a public resource configuration package set, wherein one business resource configuration package corresponds to one business resource configuration information, and one public resource configuration package corresponds to one public resource configuration information; Determine a global resource configuration package set corresponding to the global resource configuration information set; Based on the business resource configuration package set, the public resource configuration package set and the global resource configuration package set, the business resource configuration information set, the public resource configuration information set and the global resource configuration information set are updated to obtain a power resource configuration information set.

3. A power Internet of Things flow management application loading device, applied to the method according to claim 1, comprising: A reading unit, configured to read a set of power resource configuration information corresponding to a power Internet of Things application; an updating unit, configured to update the local power resource configuration information set according to the power resource configuration information set to obtain an updated power resource configuration information set; The detection unit is configured to, in response to receiving a page loading request for a power Internet of Things traffic management page and the existence of at least one corresponding local power Internet of Things application page configuration package, perform configuration difference detection on a power update resource configuration information group and a power real-time resource configuration information group to obtain a configuration difference information group, wherein the power Internet of Things traffic management page is a traffic management page in the power Internet of Things application, and the updated power resource configuration information set includes: a power update resource configuration information group corresponding to the power Internet of Things traffic management page, and the power real-time resource configuration information group corresponds to the power Internet of Things traffic management page; A selection unit is configured to select target configuration difference information from the configuration difference information group in response to determining that there is target configuration difference information in the configuration difference information group, to obtain a target configuration difference information group, wherein the target configuration difference information indicates updating a corresponding local power Internet of Things application page configuration package; The loading unit is configured to, for each target configuration difference information in the target configuration difference information group, take the electric power real-time resource configuration information corresponding to the target configuration difference information as the electric power real-time resource configuration information to be loaded, and load the update page configuration package corresponding to the electric power real-time resource configuration information to be loaded, so that the electric power Internet of Things traffic management page can be loaded.

4. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-2.

5. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.

Citation Information

Patent Citations

  • Method and device for updating client resource bundle

    CN107846465A

  • Resource downloading method, device and equipment and computer readable storage medium

    CN111586170A