CN117971275A - Method, device, equipment and medium for loading flow management application of electric power Internet of things - Google Patents
Method, device, equipment and medium for loading flow management application of electric power Internet of things Download PDFInfo
- Publication number
- CN117971275A CN117971275A CN202410228829.0A CN202410228829A CN117971275A CN 117971275 A CN117971275 A CN 117971275A CN 202410228829 A CN202410228829 A CN 202410228829A CN 117971275 A CN117971275 A CN 117971275A
- Authority
- CN
- China
- Prior art keywords
- resource configuration
- power
- configuration information
- things
- page
- 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.)
- Granted
Links
- 238000011068 loading method Methods 0.000 title claims abstract description 60
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000001514 detection method Methods 0.000 claims abstract description 10
- 230000004044 response Effects 0.000 claims description 38
- 238000004590 computer program Methods 0.000 claims description 9
- 238000012545 processing Methods 0.000 claims description 7
- 238000004806 packaging method and process Methods 0.000 claims description 2
- 238000007726 management method Methods 0.000 claims 12
- 238000013468 resource allocation Methods 0.000 claims 2
- 238000004891 communication Methods 0.000 abstract description 12
- 230000008859 change Effects 0.000 description 33
- 238000012508 change request Methods 0.000 description 22
- 230000006870 function Effects 0.000 description 10
- 235000010627 Phaseolus vulgaris Nutrition 0.000 description 6
- 244000046052 Phaseolus vulgaris Species 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 239000002699 waste material Substances 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域Technical Field
本公开的实施例涉及页面管理领域,具体涉及电力物联网流量管理应用加载方法、装置、设备与介质。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 technique
电力物联网流量统计分布呈现多样性和网络状态的时变特性等因素,使电力物联网流量系统的动态和实时模型面临诸多障碍,得到的流量控制与管理算法只能局部有效。为了提升对电力物联网的控制效率,设计了电力物联网应用,以对电力物联网流量系统进行控制。目前,电力物联网应用在进行页面加载时,通常采用的方式为:首先,将各个页面的页面资源打包到电力物联网应用包中以供发布。然后,直接调用电力物联网应用包中对应的页面资源进行加载。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.
然而,当采用上述方式进行页面加载时,经常会存在如下技术问题一:电力物联网应用包中页面资源过多,使得电力物联网应用包体量较大,会占用较多通信资源,导致难以及时对页面资源进行更新。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.
该背景技术部分中所公开的以上信息仅用于增强对本发明构思的背景的理解,并因此,其可包含并不形成本国的本领域普通技术人员已知的现有技术的信息。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
本公开的内容部分用于以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。本公开的内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。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.
本公开的一些实施例提出了电力物联网流量管理应用加载方法、装置、电子设备与计算机可读介质,来解决以上背景技术部分提到的技术问题中的一项或多项。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.
第一方面,本公开的一些实施例提供了一种电力物联网流量管理应用加载方法,该方法包括:读取电力物联网应用对应的电力资源配置信息集;根据上述电力资源配置信息集,对本地电力资源配置信息集进行更新处理,得到更新电力资源配置信息集;响应于接收到电力物联网流量管理页面的页面加载请求,以及存在对应的至少一个本地电力物联网应用页面配置包,对电力更新资源配置信息组与电力实时资源配置信息组进行配置差异检测,得到配置差异信息组,其中,上述电力物联网流量管理页面为上述电力物联网应用中的流量管理页面,上述更新电力资源配置信息集包括:与上述电力物联网流量管理页面对应的电力更新资源配置信息组,上述电力实时资源配置信息组与上述电力物联网流量管理页面对应;响应于确定上述配置差异信息组中存在目标配置差异信息,从上述配置差异信息组中选取出目标配置差异信息,得到目标配置差异信息组,其中,目标配置差异信息表示更新对应的本地电力物联网应用页面配置包;对于上述目标配置差异信息组中的每个目标配置差异信息,将上述目标配置差异信息对应的电力实时资源配置信息作为待加载电力实时资源配置信息,加载上述待加载电力实时资源配置信息对应的更新页面配置包,以供上述电力物联网流量管理页面加载。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.
第二方面,本公开的一些实施例提供了一种电力物联网流量管理应用加载装置,该装置包括:读取单元,被配置成读取电力物联网应用对应的电力资源配置信息集;更新单元,被配置成根据上述电力资源配置信息集,对本地电力资源配置信息集进行更新处理,得到更新电力资源配置信息集;检测单元,被配置成响应于接收到电力物联网流量管理页面的页面加载请求,以及存在对应的至少一个本地电力物联网应用页面配置包,对电力更新资源配置信息组与电力实时资源配置信息组进行配置差异检测,得到配置差异信息组,其中,上述电力物联网流量管理页面为上述电力物联网应用中的流量管理页面,上述更新电力资源配置信息集包括:与上述电力物联网流量管理页面对应的电力更新资源配置信息组,上述电力实时资源配置信息组与上述电力物联网流量管理页面对应;选取单元,被配置成响应于确定上述配置差异信息组中存在目标配置差异信息,从上述配置差异信息组中选取出目标配置差异信息,得到目标配置差异信息组,其中,目标配置差异信息表示更新对应的本地电力物联网应用页面配置包;加载单元,被配置成对于上述目标配置差异信息组中的每个目标配置差异信息,将上述目标配置差异信息对应的电力实时资源配置信息作为待加载电力实时资源配置信息,加载上述待加载电力实时资源配置信息对应的更新页面配置包,以供上述电力物联网流量管理页面加载。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.
第三方面,本公开的一些实施例提供了一种电子设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现上述第一方面任一实现方式所描述的方法。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.
第四方面,本公开的一些实施例提供了一种计算机可读介质,其上存储有计算机程序,其中,程序被处理器执行时实现上述第一方面任一实现方式所描述的方法。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.
本公开的上述各个实施例具有如下有益效果:通过本公开的一些实施例的电力物联网流量管理应用加载方法,可以及时对页面进行更新,减少通信资源的占用。具体来说,会占用较多通信资源,导致难以及时对页面资源进行更新的原因在于:电力物联网应用包中页面资源过多,使得电力物联网应用包体量较大,会占用较多通信资源。基于此,本公开的一些实施例的电力物联网流量管理应用加载方法,首先,读取电力物联网应用对应的电力资源配置信息集。由此,可以得到各个页面资源配置包对应的配置信息,便于后续在发起资源请求时,根据对应的配置信息,下载对应的页面资源配置包以加载其中的页面资源。其次,根据上述电力资源配置信息集,对本地电力资源配置信息集进行更新处理,得到更新电力资源配置信息集。由此,可以对存储在本地的各个电力资源配置信息进行更新。接着,响应于接收到电力物联网流量管理页面的页面加载请求,以及存在对应的至少一个本地电力物联网应用页面配置包,对电力更新资源配置信息组与电力实时资源配置信息组进行配置差异检测,得到配置差异信息组。其中,上述电力物联网流量管理页面为上述电力物联网应用中的流量管理页面,上述更新电力资源配置信息集包括:与上述电力物联网流量管理页面对应的电力更新资源配置信息组,上述电力实时资源配置信息组与上述电力物联网流量管理页面对应。由此,当进入页面时,可以对本地电力物联网应用页面配置包对应的更新配置与实时配置进行再次对比,确定更新配置是否为最新配置,即确定本地电力物联网应用页面配置包是否需要更新。然后,响应于确定上述配置差异信息组中存在目标配置差异信息,从上述配置差异信息组中选取出目标配置差异信息,得到目标配置差异信息组。其中,目标配置差异信息表示更新对应的本地电力物联网应用页面配置包。由此,由此,可以确定各个待更新的本地电力物联网应用页面配置包。最后,对于上述目标配置差异信息组中的每个目标配置差异信息,将上述目标配置差异信息对应的电力实时资源配置信息作为待加载电力实时资源配置信息,加载上述待加载电力实时资源配置信息对应的更新页面配置包,以供上述电力物联网流量管理页面加载。由此,无需重新下载以及安装整个电力物联网应用包。从而,可以及时对页面进行更新,减少了通信资源的占用。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
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,元件和元素不一定按照比例绘制。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.
图1是根据本公开的电力物联网流量管理应用加载方法的一些实施例的流程图;FIG1 is a flow chart of some embodiments of a method for loading a power Internet of Things flow management application according to the present disclosure;
图2是根据本公开的电力物联网流量管理应用加载装置的一些实施例的流程图;FIG2 is a flow chart of some embodiments of a power Internet of Things flow management application loading device according to the present disclosure;
图3是适于用来实现本公开的一些实施例的电子设备的结构示意图。FIG. 3 is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例。相反,提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。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.
另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。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 may be combined with each other.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。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.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。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".
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。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.
下面将参考附图并结合实施例来详细说明本公开。The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
图1是根据本公开的电力物联网流量管理应用加载方法的一些实施例的流程图。示出了根据本公开的电力物联网流量管理应用加载方法的一些实施例的流程100。该电力物联网流量管理应用加载方法,包括以下步骤:FIG1 is a flow chart of some embodiments of the method for loading a power Internet of Things traffic management application according to the present disclosure. A flow chart 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:
步骤101,读取电力物联网应用对应的电力资源配置信息集。Step 101, read the power resource configuration information set corresponding to the power Internet of Things application.
在一些实施例中,电力物联网流量管理应用加载方法的执行主体(例如,计算设备)可以读取电力物联网应用对应的电力资源配置信息集。诸如,上述执行主体可以通过有线连接或无线连接的方式从终端设备中读取电力物联网应用对应的电力资源配置信息集。电力物联网应用可以是指进行电力物联网流量统计、对各个电力网络节点进行动态管理的应用。电力资源配置信息可以是电力项目对应的资源包的配置信息。电力项目可以是业务电力资源项目,公共电力资源项目,全局电力资源项目。业务电力资源项目可以是指某一单独业务的电力资源。公共电力资源项目可以是指公共体系的电力资源项目(政府工程电力项目)。全局电力资源项目可以是公共电力项目+所有业务电力项目。电力资源配置信息可以包括但不限于:电力项目标识、电力项目版本编号、文件版本编号、下载路径。上述电力项目标识可以是资源配置信息对应电力项目的标识。上述电力项目版本编号可以是电力项目的版本的唯一编号。上述文件版本编号可以是电力项目对应资源配置包的版本的唯一编号。上述下载路径可以是下载对应资源配置包的路径。In some embodiments, the execution subject (e.g., 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, 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.
实践中,上述执行主体可以通过以下步骤读取电力物联网应用对应的电力资源配置信息集: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:
第一步,创建上述电力物联网应用对应的业务资源配置信息集、公共资源配置信息集和全局资源配置信息集。其中,上述业务资源配置信息集中的业务资源配置信息可以是业务电力资源配置包的配置信息。上述业务资源配置信息集中的业务资源配置信息与业务电力资源项目一一对应。上述业务资源配置信息集中的业务资源配置信息可以包括但不限于电力项目标识、页面地址、生效时间。上述页面地址可以是资源配置信息对应页面的网络地址。上述生效时间可以是资源配置信息生效的时间。上述公共资源配置信息集中的公共资源配置信息可以是公共资源配置包的配置信息。上述公共资源配置信息集中的公共资源配置信息可以与公共电力资源项目一一对应。上述公共资源配置信息集中的公共资源配置信息可以包括但不限于电力项目标识、页面地址组、生效时间。上述页面地址组可以是资源配置信息对应的各个页面的网络地址。上述全局资源配置信息集中的全局资源配置信息可以是全局资源配置包的配置信息。上述全局资源配置信息集中的全局资源配置信息可以与全局电力资源项目一一对应。上述全局资源配置信息集中的全局资源配置信息可以包括但不限于电力项目标识、资源名称、下载链接。上述资源名称可以是对应页面资源的名称。上述下载链接可以是用于下载对应全局资源的链接。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.
实践中,电力物联网应用对应的页面开发人员可以在服务端通过填写项目表单,创建针对上述电力物联网应用的业务资源配置信息集、公共资源配置信息集和全局资源配置信息集。上述项目表单可以是包括资源配置信息对应的各个配置项的表单。上述各个配置项可以与待配置的资源配置包相对应。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.
第二步,对上述电力物联网应用对应的页面资源进行打包处理,得到业务资源配置包集和公共资源配置包集。其中,一个业务资源配置包对应一个业务资源配置信息,一个公共资源配置包对应一个公共资源配置信息。可以通过压缩打包的方式,对上述电力物联网应用对应的页面资源进行打包处理,得到业务资源配置包集和公共资源配置包集。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.
第三步,确定上述全局资源配置信息集对应的全局资源配置包集。可以对于全局资源包配置信息集中的每个全局资源包配置信息,将上述全局资源包配置信息包括的下载链接确定为公共资源包。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.
第四步,基于上述业务资源配置包集、上述公共资源配置包集与上述全局资源配置包集,对上述业务资源配置信息集、上述公共资源配置信息集和上述全局资源配置信息集进行更新处理,得到电力资源配置信息集。作为示例,首先,可以对于业务资源配置信息集中的每个业务资源配置信息,将预设资源配置信息、上述业务资源配置信息和对应的业务资源配置包的下载路径确定为电力资源配置信息。其中,上述预设资源配置信息可以是预先设置的、与资源使用相关的配置的信息。例如,上述预设资源配置信息可以包括但不限于以下至少一项:项目支持的最小下载版本、最大下载版本。然后,可以对于公共资源配置信息集中的每个公共资源配置信息,将上述预设资源配置信息、上述公共资源配置信息和对应的公共资源配置包的下载路径确定为电力资源配置信息。之后,可以对于全局资源配置信息集中的每个全局资源配置信息,将上述预设资源配置信息、上述全局资源配置信息和对应的全局资源配置包中的下载链接确定为电力资源配置信息。最后,将所得到的各个电力资源配置信息确定为电力资源配置信息集。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 a 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 power resource configuration information. Among them, the preset resource configuration information can be information configured in advance and related to resource use. 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 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 power resource configuration information. Finally, the obtained individual power resource configuration information is determined as a power resource configuration information set.
步骤102,根据上述电力资源配置信息集,对本地电力资源配置信息集进行更新处理,得到更新电力资源配置信息集。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.
在一些实施例中,上述执行主体可以根据上述电力资源配置信息集,对本地电力资源配置信息集进行更新处理,得到更新电力资源配置信息集。其中,上述本地电力资源配置信息集中的本地电力资源配置信息可以是本地电力物联网应用页面配置包对应的电力项目的资源配置信息。上述本地电力物联网应用页面配置包可以是存储在本地的页面资源包。上述本地电力资源配置信息集中的本地电力资源配置信息可以包括但不限于电力项目标识、电力项目版本编号、文件版本编号、下载路径。上述更新电力资源配置信息集中的更新电力资源配置信息可以是对应电力项目的最新资源配置的信息。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.
实践中,上述执行主体可以通过以下步骤对本地电力资源配置信息集进行更新处理:In practice, the above-mentioned execution subject can update the local power resource configuration information set through the following steps:
第一步,对于上述电力资源配置信息集中的每个电力资源配置信息,执行以下处理步骤: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:
第一子步骤,响应于确实上述本地电力资源配置信息集中存在目标本地电力资源配置信息,对上述电力资源配置信息和上述目标本地电力资源配置信息进行版本差异检测,以生成版本差异信息。其中,上述目标本地电力资源配置信息为与上述电力资源配置信息匹配的本地电力资源配置信息。与上述电力资源配置信息相匹配可以是:本地电力资源配置信息包括的电力项目标识与上述电力资源配置信息包括的电力项目标识相同。上述版本差异信息可以是上述目标本地电力资源配置信息中的电力项目版本编号与上述电力资源配置信息中的电力项目版本编号的信息之间差值的信息。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.
第二子步骤,响应于确定上述版本差异信息表示加载电力资源配置包,将上述电力资源配置信息和预设的加载标识合并为更新电力资源配置信息。其中,上述电力资源配置包与上述电力资源配置信息对应。上述项目资源配置包可以是上述电力资源配置信息对应的资源配置包。上述预设待加载标识可以是预先设置的、表征上述电力项目资源配置包待加载的标识。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.
第二步,响应于确定上述本地电力资源配置信息集中不存在目标本地电力资源配置信息,删除上述目标本地电力资源配置信息对应的本地电力物联网应用页面配置包。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.
步骤103,响应于接收到电力物联网流量管理页面的页面加载请求,以及存在对应的至少一个本地电力物联网应用页面配置包,对电力更新资源配置信息组与电力实时资源配置信息组进行配置差异检测,得到配置差异信息组。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.
在一些实施例中,上述执行主体可以响应于接收到电力物联网流量管理页面的页面加载请求,以及存在对应的至少一个本地电力物联网应用页面配置包,对电力更新资源配置信息组与电力实时资源配置信息组进行配置差异检测,得到配置差异信息组。其中,上述电力物联网流量管理页面为上述电力物联网应用中的流量管理页面,上述更新电力资源配置信息集包括:与上述电力物联网流量管理页面对应的电力更新资源配置信息组,上述电力实时资源配置信息组与上述电力物联网流量管理页面对应。例如,上述电力物联网流量管理页面可以是电力物联网应用启动页或者首页,还可以是入口较深的页面。上述页面加载请求可以是用于加载页面资源的网络请求。上述更新电力资源配置信息集可以包括:与上述电力物联网流量管理页面相对应的电力更新资源配置信息组。电力更新资源配置信息可以是与上述电力物联网流量管理页面相对应的电力更新资源配置信息。上述电力实时资源配置信息组中的电力实时资源配置信息可以是实时获取的、对应电力项目的版本配置的信息。电力实时资源配置信息可以包括电力项目标识、实时电力项目版本编号和实时文件版本编号。上述实时电力项目版本编号可以是电力项目对应的最新的项目版本编号。上述实时文件版本编号可以是资源配置包对应的最新的文件版本编号。上述配置差异信息组中的配置差异信息可以是:电力实时资源配置信息包括的、实时电力项目版本编号与对应的电力更新资源配置信息包括的、电力项目版本编号之间差值的信息。实践中,当配置差异信息对应的差值大于0时,上述配置差异信息可以表征更新对应的本地电力物联网应用页面配置包。当配置差异信息对应的差值等于0时,上述配置差异信息可以表征无需更新对应的本地电力物联网应用页面配置包。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 represent 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 represent that there is no need to update the corresponding local power Internet of Things application page configuration package.
步骤104,响应于确定上述配置差异信息组中存在目标配置差异信息,从上述配置差异信息组中选取出目标配置差异信息,得到目标配置差异信息组。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.
在一些实施例中,上述执行主体可以响应于确定上述配置差异信息组中存在目标配置差异信息,从上述配置差异信息组中选取出目标配置差异信息,得到目标配置差异信息组。其中,目标配置差异信息表示更新对应的本地电力物联网应用页面配置包。例如,目标配置差异信息可以是对应的差值大于0的配置差异信息。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.
步骤105,对于上述目标配置差异信息组中的每个目标配置差异信息,将上述目标配置差异信息对应的电力实时资源配置信息作为待加载电力实时资源配置信息,加载上述待加载电力实时资源配置信息对应的更新页面配置包,以供上述电力物联网流量管理页面加载。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.
在一些实施例中,上述执行主体可以对于上述目标配置差异信息组中的每个目标配置差异信息,将上述目标配置差异信息对应的电力实时资源配置信息作为待加载电力实时资源配置信息,加载上述待加载电力实时资源配置信息对应的更新页面配置包,以供上述电力物联网流量管理页面加载。其中,上述更新页面配置包可以是用于对本地电力物联网应用页面配置包进行更新的资源配置包。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.
继续的,在采用本申请的电力物联网流量管理应用加载方法进行应用页面加载处理时,往往又会伴随着如下问题:应用版本更新时,需要通过全量更新的方式更新应用。针对这些问题,常规的解决方案是:通过技术人员配置好应用包,再进行全量更新。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.
然而,上述解决方案通常存在如下技术问题二:全量更新应用,更新时间长,且容易造成网络资源的浪费。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.
针对上述技术问题二,决定采用如下解决方案。In response to the above-mentioned technical problem 2, it was decided to adopt the following solution.
实践中,上述执行主体可以通过以下步骤加载上述待加载电力实时资源配置信息对应的更新页面配置包: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:
第一步,将上述待加载电力实时资源配置信息对应的加载任务添加至预设的加载任务队列。其中,上述待加载电力实时资源配置信息包括:加载地址链接。其中,上述加载任务可以是加载上述待加载电力实时资源配置信息对应的页面资源配置包所需的信息。上述加载任务可以包括但不限于电力项目标识、电力项目版本编号。上述加载任务队列可以是用于下载页面资源配置包的、依据加入队列的先后顺序执行的任务队列。可以直接将上述待加载电力实时资源配置信息对应的加载任务添加至预设的加载任务队列。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.
第二步,基于上述待加载电力实时资源配置信息,确定更新类型信息。其中,上述更新类型信息可以是对本地电力物联网应用页面配置包进行更新的更新方式的信息。更新方式可以包括增量更新和全量更新。增量更新可以是通过下载差分包与本地电力物联网应用页面配置包合包的方式进行更新。全量更新可以是通过下载完整包直接替换本地电力物联网应用页面配置包的方式进行更新。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.
第三步,基于上述更新类型信息,加载更新页面配置包。The third step is to load the update page configuration package based on the above update type information.
其中,上述第三步,可以包括以下子步骤:The third step may include the following sub-steps:
第一子步骤,响应于确定上述更新类型信息表征增量更新,根据上述目标配置差异信息对应的电力实时资源配置信息和本地电力资源配置信息,对上述加载地址链接进行更新处理,得到增量更新加载链接。上述执行主体可以通过预设连接符,将上述加载地址链接、上述电力实时资源配置信息包括的实时文件版本编号和上述和本地电力资源配置信息包括的文件版本编号进行拼接,得到增量更新加载链接。其中,上述预设连接符可以是“_”。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 "_".
第二子步骤,基于上述增量更新加载链接,加载更新页面配置包。可以将上述增量更新加载链接对应的网络请求发送至服务端,加载更新页面配置包。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.
第三子步骤,响应于确定上述更新类型信息表征全量更新,基于上述加载地址链接,加载更新页面配置包。可以将上述加载地址链接发送至服务端,加载更新页面配置包。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.
第四步,基于上述更新页面配置包,对上述待加载电力实时资源配置信息对应的本地电力物联网应用页面配置包进行更新处理,以供上述电力物联网流量管理页面加载。首先,上述执行主体可以响应于上述更新页面配置包对应增量更新,对上述更新页面配置包和上述待加载电力实时资源配置信息对应的本地电力物联网应用页面配置包进行合包,得到更新本地电力物联网应用页面配置包,以供上述电力物联网流量管理页面加载。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.
上述相关内容作为本公开的一个发明点,解决了技术问题二“全量更新应用,更新时间长,且容易造成网络资源的浪费。”。容易造成网络资源的浪费的因素往往如下:全量更新应用,更新时间长,且容易造成网络资源的浪费。如果解决了上述因素,就能达到减少网络资源的浪费的效果。为了达到这一效果,首先,将上述待加载电力实时资源配置信息对应的加载任务添加至预设的加载任务队列。其中,上述待加载电力实时资源配置信息包括:加载地址链接。接着,基于上述待加载电力实时资源配置信息,确定更新类型信息。然后,基于上述更新类型信息,加载更新页面配置包。最后,基于上述更新页面配置包,对上述待加载电力实时资源配置信息对应的本地电力物联网应用页面配置包进行更新处理,以供上述电力物联网流量管理页面加载。由此,可以通过增量更新及时地进行资源更新、且占用较少带宽资源,通过全量更新可以较好地确保资源的完整性和一致性、且降低加载错误。可以使得页面资源可以在优先级对应的下载时机进行下载,由此,可以使得每次下载页面资源的带宽消耗较少,从而,降低页面资源下载的带宽消耗。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.
继续的,在采用本申请的电力物联网流量管理应用加载方法进行应用页面加载处理时,往往又会伴随着如下问题:应用需要调用中间件,以保证应用的正常运行。针对这些问题,常规的解决方案是:通过内置配置文件进行注册调用中间件,以保证应用的正常运行。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.
然而,上述解决方案通常存在如下技术问题三:应用运行中,如果要修改别名、超时时间等配置来满足应用需求,则需要重新修改配置文件,且重新发布新应用。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.
针对上述技术问题三,决定采用如下解决方案。In response to the above-mentioned technical problem three, it was decided to adopt the following solution.
可选地,响应于检测到表征应用中间件配置数据的变更请求,确定当前的各个配置数据中是否存在与应用配置数据相匹配的配置数据。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.
在一些实施例中,上述执行主体可以响应于检测到表征应用中间件配置数据的变更请求,确定当前的各个配置数据中是否存在与应用配置数据相匹配的配置数据。其中,上述应用配置数据为上述变更请求所指示的应用中间件的配置数据。其中,配置数据可以根据实际情况进行设置,如应用中间件的配置数据可以包括但不限于:接口标识(如接口类名)、别名、超时时间、序列化方式、重试次数、连接密钥等应用中间件注册常用参数。应用中间件可以是指上述电力物联网应用需要调用程序服务的中间件。其中,应用配置数据可以为变更请求所指示的应用中间件的配置数据。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.
实践中,上述执行主体可以通过以下步骤确定当前的各个配置数据中是否存在与应用配置数据相匹配的配置数据: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:
第一步,确定预先创建的配置数据记录中,是否存在上述应用中间件的接口标识。其中,上述配置数据记录用于存储各应用中间件的最新配置数据。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.
第二步,响应于确定不存在上述应用中间件的接口标识,或者确定上述配置数据记录中,上述应用中间件的配置数据与上述应用配置数据不同,确定已有配置数据中不存在相匹配的配置数据。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.
第三步,响应于确定上述应用中间件的配置数据变更完成,将上述应用配置数据存储至上述配置数据记录中。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.
可选地,响应于确定不存在相匹配的配置数据,创建上述应用中间件的新实例,以及获取引用上述应用中间件的依赖方信息。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.
在一些实施例中,上述执行主体可以响应于确定不存在相匹配的配置数据,创建上述应用中间件的新实例,以及获取引用上述应用中间件的依赖方信息。实践中,上述执行主体可以根据上述应用配置数据中的接口标识,获取到上述接口标识所属类的实例,以及获取到依赖该类的实例的对象列表。其中,上述对象列表中的对象信息表征引用上述应用中间件的依赖方信息。可以通过应用中间件内置的注册中心配置(RegistryConfig)和调用者配置(ConsumerConfig)泛化创建出一个新的实例对象。执行主体也可以根据应用中间件的不同,采用现有的各种实例对象创建方法,来创建其新实例。这里的新实例采用上述应用配置数据中的参数数据。也就是说,通过应用配置数据中的接口类名可以,获取到系统中该类(Class)的实例,通过Spring的能力,获取到所有依赖了此Class实例的Bean列表。具体是,通过Spring的上下文获取到IoC(Inversion of Control,控制反转)的Bean工厂。通过Bean工厂可从IoC依赖关系中,获取到依赖了某Class实例的Bean列表。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 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. The object information in the object list represents the information of the party that references the application middleware. A new instance object may 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. The list of beans that rely on a certain Class instance can be obtained from the IoC dependency relationship through the Bean factory.
可选地,将上述依赖方信息与上述应用中间件之间的对应关系,变更为上述应用中间件的新实例。Optionally, the correspondence between the relying party information and the application middleware is changed to a new instance of the application middleware.
在一些实施例中,上述执行主体可以将上述依赖方信息与上述应用中间件之间的对应关系,变更为上述应用中间件的新实例。实践中,上述执行主体可以将上述依赖方信息中表征上述应用中间件的字段数据,变更为上述应用中间件的新实例。执行主体可以循环所有依赖了当前应用中间件的Bean列表。通过Java内置能力-反射,将当前Bean中的该应用中间件依赖字段重新赋值。其中,反射(reflection)机制一般是指在程序的运行状态中,可以构造任意一个类的对象,可以了解任意一个对象所属的类,可以了解任意一个类的成员变量和方法,可以调用任意一个对象的属性和方法。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 dependency 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, an object 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.
可选地,响应于确定上述变更请求所指示的应用中间件为多个,且多个应用中间件的配置数据均变更完成,根据上述变更请求与上次变更请求的比较结果确定还原应用中间件。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, the application middleware to be restored is determined according to a comparison result between the change request and the last change request.
在一些实施例中,上述执行主体可以响应于确定上述变更请求所指示的应用中间件为多个,且多个应用中间件的配置数据均变更完成,根据上述变更请求与上次变更请求的比较结果确定还原应用中间件。其中,上述还原应用中间件为上述上次变更请求所指示的、且上述变更请求未指示的应用中间件。还原应用中间件可以为上次变更请求所指示的、且本次变更请求未指示的应用中间件。例如第一次变更配置为[JSF-1,JSF-2],第二次变更配置为[JSF-2]。那么此变更操作目的既是变更JSF-2,又是将JSF-1在第二次变更中还原为原实例。因为已经不在需要JSF-1的变更。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 the current 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.
实践中,上述执行主体可以将上述临时变更记录与预先创建的全局变更记录进行比较分析,将在上述全局变更记录中记录的、且未在上述临时变更记录中记录的应用中间件,确定为还原应用中间件。其中,上述全局变更记录用于存储最新变更的应用中间件实例。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.
可选地,将上述还原应用中间件的配置数据还原为原始配置数据。Optionally, the configuration data of the restored application middleware is restored to original configuration data.
在一些实施例中,上述执行主体可以将上述还原应用中间件的配置数据还原为原始配置数据。这里的原始配置数据通常为系统初始化启动时,其中各应用中间件的最初配置数据。作为示例,执行主体可以根据原始配置数据,来创建还原应用中间件的原始实例。In some embodiments, the execution subject may 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 may create an original instance of the restored application middleware based on the original configuration data.
实践中,上述执行主体可以通过以下步骤将上述还原应用中间件的配置数据还原为原始配置数据:In practice, the execution subject may restore the configuration data of the application middleware to the original configuration data by following the steps below:
第一步,从预先创建的原始实例记录中,获取上述还原应用中间件的原始实例。其中,上述原始实例记录用于存储系统中各应用中间件的原始实例。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.
第二步,将引用上述还原应用中间件的依赖方信息与上述还原应用中间件之间的对应关系,变更为上述还原应用中间件的原始实例。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.
可选地,将上述应用中间件的新实例存储至预先创建的临时变更记录中。Optionally, the new instance of the application middleware is stored in a pre-created temporary change record.
在一些实施例中,上述执行主体可以将上述应用中间件的新实例存储至预先创建的临时变更记录中。这样,全局变更记录中存储的就是系统中最新变更的应用中间件实例。另外,执行主体还可以清除临时变更记录中的数据,以存储下次变更新实例。或者也可以删除该临时变更记录,以在下次变更时重新创建。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.
可选地,响应于确定上述还原应用中间件还原完成,将上述全局变更记录中的数据替换成上述临时变更记录中的数据,以及清除上述临时变更记录中的数据。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.
在一些实施例中,上述执行主体可以响应于确定上述还原应用中间件还原完成,将上述全局变更记录中的数据替换成上述临时变更记录中的数据,以及清除上述临时变更记录中的数据。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.
上述相关内容作为本公开的一个发明点,解决了技术问题三“重新发布新应用。”。重新发布新应用的因素往往如下:应用运行中,如果要修改别名、超时时间等配置来满足应用需求,则需要重新修改配置文件,且重新发布新应用。如果解决了上述因素,就能达到实现中间件配置数据的无感变更,也可以保证配置变更的及时性的效果。为了达到这一效果,首先,响应于检测到表征应用中间件配置数据的变更请求,确定当前的各个配置数据中是否存在与应用配置数据相匹配的配置数据。其中,上述应用配置数据为上述变更请求所指示的应用中间件的配置数据。其次,响应于确定不存在相匹配的配置数据,创建上述应用中间件的新实例,以及获取引用上述应用中间件的依赖方信息。接着,将上述依赖方信息与上述应用中间件之间的对应关系,变更为上述应用中间件的新实例。由此,在检测到配置数据变更请求,且已有配置数据中不存在相匹配的配置数据,则可以根据应用配置数据来创建应用中间件的新实例。这样可以实现新实例的自动创建生成,而无需手动创建。这样有助于降低变更时长,减少或避免人工变更出现的错误。再接着,响应于确定上述变更请求所指示的应用中间件为多个,且多个应用中间件的配置数据均变更完成,根据上述变更请求与上次变更请求的比较结果确定还原应用中间件。其中,上述还原应用中间件为上述上次变更请求所指示的、且上述变更请求未指示的应用中间件。然后,将上述还原应用中间件的配置数据还原为原始配置数据;将上述应用中间件的新实例存储至预先创建的临时变更记录中。最后,响应于确定上述还原应用中间件还原完成,将上述全局变更记录中的数据替换成上述临时变更记录中的数据,以及清除上述临时变更记录中的数据。由此,可以将新实例替换原有引用,以做到对业务无感的中间件实例变更。因将配置置于配置中心内,可动态的、灵活的控制中间件的实例。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 re-modified 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 information of the relying party 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 the new instance can be achieved without manual creation. This helps to reduce the duration of changes and reduce or avoid errors caused by manual changes. Next, in response to determining that the above change request indicates multiple application middlewares and the configuration data of multiple application middlewares have been changed, the restored application middleware is determined based on 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 has been 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 instances of the middleware can be controlled dynamically and flexibly.
进一步参考图2,作为对上述各图所示方法的实现,本公开提供了一种电力物联网流量管理应用加载装置的一些实施例,这些电力物联网流量管理应用加载装置实施例与图1所示的那些方法实施例相对应,该电力物联网流量管理应用加载装置具体可以应用于各种电子设备中。Further referring to 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, which correspond to the method embodiments shown in Figure 1. The power Internet of Things flow management application loading device can be specifically applied to various electronic devices.
如图2所示,一些实施例的电力物联网流量管理应用加载装置200包括:读取单元201、更新单元202、检测单元203、选取单元204和加载单元205。其中,读取单元201,被配置成读取电力物联网应用对应的电力资源配置信息集;更新单元202,被配置成根据上述电力资源配置信息集,对本地电力资源配置信息集进行更新处理,得到更新电力资源配置信息集;检测单元203,被配置成响应于接收到电力物联网流量管理页面的页面加载请求,以及存在对应的至少一个本地电力物联网应用页面配置包,对电力更新资源配置信息组与电力实时资源配置信息组进行配置差异检测,得到配置差异信息组,其中,上述电力物联网流量管理页面为上述电力物联网应用中的流量管理页面,上述更新电力资源配置信息集包括:与上述电力物联网流量管理页面对应的电力更新资源配置信息组,上述电力实时资源配置信息组与上述电力物联网流量管理页面对应;选取单元204,被配置成响应于确定上述配置差异信息组中存在目标配置差异信息,从上述配置差异信息组中选取出目标配置差异信息,得到目标配置差异信息组,其中,目标配置差异信息表示更新对应的本地电力物联网应用页面配置包;加载单元205,被配置成对于上述目标配置差异信息组中的每个目标配置差异信息,将上述目标配置差异信息对应的电力实时资源配置信息作为待加载电力实时资源配置信息,加载上述待加载电力实时资源配置信息对应的更新页面配置包,以供上述电力物联网流量管理页面加载。As shown in FIG2 , the power Internet of Things traffic management application loading device 200 of some embodiments 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 power resource configuration information set to obtain an updated power resource configuration information set; the detecting unit 203 is configured to 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 loading 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 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 corresponding to the 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.
可以理解的是,该电力物联网流量管理应用加载装置200中记载的诸单元与参考图1描述的方法中的各个步骤相对应。由此,上文针对方法描述的操作、特征以及产生的有益效果同样适用于电力物联网流量管理应用加载装置200及其中包含的单元,在此不再赘述。It can be understood that the units recorded in the power Internet of Things flow management application loading device 200 correspond to the various steps in the method described with reference to 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.
下面参考图3,其示出了适于用来实现本公开的一些实施例的电子设备(例如计算设备)300的结构示意图。本公开的一些实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图3示出的电子设备仅仅是一个示例,不应对本公开的实施例的功能和使用范围带来任何限制。Referring to FIG3 below, it 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, laptop 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. The electronic device shown in FIG3 is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
如图3所示,电子设备300可以包括处理装置(例如中央处理器、图形处理器等)301,其可以根据存储在只读存储器(ROM)302中的程序或者从存储装置308加载到随机访问存储器(RAM)303中的程序而执行各种适当的动作和处理。在RAM303中,还存储有电子设备300操作所需的各种程序和数据。处理装置301、ROM302以及RAM 303通过总线304彼此相连。输入/输出(I/O)接口305也连接至总线304。As shown in FIG3 , 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.
通常,以下装置可以连接至I/O接口305:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置306;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置307;包括例如磁带、硬盘等的存储装置308;以及通信装置309。通信装置309可以允许电子设备300与其他设备进行无线或有线通信以交换数据。虽然图3示出了具有各种装置的电子设备300,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。图3中示出的每个方框可以代表一个装置,也可以根据需要代表多个装置。Typically, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, a touchpad, 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 device 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 3 shows an electronic device 300 with various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively. Each box shown in FIG. 3 may represent one device, or may represent multiple devices as needed.
特别地,根据本公开的一些实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的一些实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的一些实施例中,该计算机程序可以通过通信装置309从网络上被下载和安装,或者从存储装置308被安装,或者从ROM302被安装。在该计算机程序被处理装置301执行时,执行本公开的一些实施例的方法中限定的上述功能。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 contains 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.
需要说明的是,本公开的一些实施例中记载的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开的一些实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开的一些实施例中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。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.
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText TransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。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.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:读取电力物联网应用对应的电力资源配置信息集;根据上述电力资源配置信息集,对本地电力资源配置信息集进行更新处理,得到更新电力资源配置信息集;响应于接收到电力物联网流量管理页面的页面加载请求,以及存在对应的至少一个本地电力物联网应用页面配置包,对电力更新资源配置信息组与电力实时资源配置信息组进行配置差异检测,得到配置差异信息组,其中,上述电力物联网流量管理页面为上述电力物联网应用中的流量管理页面,上述更新电力资源配置信息集包括:与上述电力物联网流量管理页面对应的电力更新资源配置信息组,上述电力实时资源配置信息组与上述电力物联网流量管理页面对应;响应于确定上述配置差异信息组中存在目标配置差异信息,从上述配置差异信息组中选取出目标配置差异信息,得到目标配置差异信息组,其中,目标配置差异信息表示更新对应的本地电力物联网应用页面配置包;对于上述目标配置差异信息组中的每个目标配置差异信息,将上述目标配置差异信息对应的电力实时资源配置信息作为待加载电力实时资源配置信息,加载上述待加载电力实时资源配置信息对应的更新页面配置包,以供上述电力物联网流量管理页面加载。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.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的一些实施例的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)——连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。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).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。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.
描述于本公开的一些实施例中的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括:读取单元、更新单元、检测单元、选取单元和加载单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,读取单元还可以被描述为“读取电力物联网应用对应的电力资源配置信息集的单元”。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".
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。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 chip (SOCs), complex programmable logic devices (CPLDs), and the like.
以上描述仅为本公开的一些较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开的实施例中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开的实施例中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。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 technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410228829.0A CN117971275B (en) | 2024-02-29 | 2024-02-29 | Power Internet of Things flow management application loading method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410228829.0A CN117971275B (en) | 2024-02-29 | 2024-02-29 | Power Internet of Things flow management application loading method, device, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117971275A true CN117971275A (en) | 2024-05-03 |
CN117971275B CN117971275B (en) | 2025-01-28 |
Family
ID=90853175
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410228829.0A Active CN117971275B (en) | 2024-02-29 | 2024-02-29 | Power Internet of Things flow management application loading method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117971275B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107846465A (en) * | 2017-11-13 | 2018-03-27 | 北京趣拿软件科技有限公司 | Update the method and apparatus of client resource bag |
US10089108B1 (en) * | 2015-06-17 | 2018-10-02 | Amazon Technologies, Inc. | Archival format for incremental deployments and version control |
CN110058873A (en) * | 2019-03-12 | 2019-07-26 | 天津五八到家科技有限公司 | Application page update method, device, equipment and storage medium |
CN111586170A (en) * | 2020-05-07 | 2020-08-25 | 广州博冠信息科技有限公司 | Resource downloading method, device, equipment and computer readable storage medium |
CN113326059A (en) * | 2020-02-28 | 2021-08-31 | 腾讯科技(深圳)有限公司 | Resource updating method, device and storage medium |
US20220021750A1 (en) * | 2020-07-20 | 2022-01-20 | Toyota Jidosha Kabushiki Kaisha | Server, update management method, non-transitory storage medium, software update device, and system including server and software update device |
CN116561462A (en) * | 2023-04-03 | 2023-08-08 | 北京米可世界科技有限公司 | Method and device for loading page instantly, electronic equipment and storage medium |
CN116627570A (en) * | 2023-05-25 | 2023-08-22 | 中国工商银行股份有限公司 | Page refreshing method and device for front-end application, processor and electronic equipment |
CN117008936A (en) * | 2023-07-13 | 2023-11-07 | 北京车智赢科技有限公司 | Page updating method and device, computing equipment and storage medium |
-
2024
- 2024-02-29 CN CN202410228829.0A patent/CN117971275B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10089108B1 (en) * | 2015-06-17 | 2018-10-02 | Amazon Technologies, Inc. | Archival format for incremental deployments and version control |
CN107846465A (en) * | 2017-11-13 | 2018-03-27 | 北京趣拿软件科技有限公司 | Update the method and apparatus of client resource bag |
CN110058873A (en) * | 2019-03-12 | 2019-07-26 | 天津五八到家科技有限公司 | Application page update method, device, equipment and storage medium |
CN113326059A (en) * | 2020-02-28 | 2021-08-31 | 腾讯科技(深圳)有限公司 | Resource updating method, device and storage medium |
CN111586170A (en) * | 2020-05-07 | 2020-08-25 | 广州博冠信息科技有限公司 | Resource downloading method, device, equipment and computer readable storage medium |
US20220021750A1 (en) * | 2020-07-20 | 2022-01-20 | Toyota Jidosha Kabushiki Kaisha | Server, update management method, non-transitory storage medium, software update device, and system including server and software update device |
CN116561462A (en) * | 2023-04-03 | 2023-08-08 | 北京米可世界科技有限公司 | Method and device for loading page instantly, electronic equipment and storage medium |
CN116627570A (en) * | 2023-05-25 | 2023-08-22 | 中国工商银行股份有限公司 | Page refreshing method and device for front-end application, processor and electronic equipment |
CN117008936A (en) * | 2023-07-13 | 2023-11-07 | 北京车智赢科技有限公司 | Page updating method and device, computing equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN117971275B (en) | 2025-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12019652B2 (en) | Method and device for synchronizing node data | |
CN111858381B (en) | Application fault tolerance capability test method, electronic device and medium | |
CN111309304B (en) | Method, device, medium and electronic equipment for generating IDL file | |
CN116433388B (en) | Data storage resource partitioning method, device, electronic equipment and computer medium | |
CN114035879A (en) | Page theme color changing method and device, electronic equipment and computer readable medium | |
CN111857720B (en) | User interface state information generation method and device, electronic equipment and medium | |
CN110704050B (en) | Module initializing method and device, electronic equipment and computer readable storage medium | |
CN115373869A (en) | Process processing method and device based on AAR and electronic equipment | |
CN111324258B (en) | Method, device, equipment and medium for generating contents of configuration items of multilevel pull-down menu | |
WO2024212839A1 (en) | Card layout method and apparatus, medium and electronic device | |
CN111752644A (en) | Interface simulation method, device, equipment and storage medium | |
CN118012470B (en) | Updating method and device for power information management application, electronic equipment and medium | |
CN112230986B (en) | Project file generation method, device, electronic device and computer readable medium | |
CN117971275A (en) | Method, device, equipment and medium for loading flow management application of electric power Internet of things | |
CN113157365B (en) | Program running method, program running device, electronic equipment and computer readable medium | |
CN115827415B (en) | System process performance test method, device, equipment and computer medium | |
CN112688863B (en) | Gateway data processing method and device and electronic equipment | |
CN112311833B (en) | Data updating method and device | |
CN118158082B (en) | Method, device, equipment and medium for updating communication resource message of intelligent household equipment | |
CN113472565B (en) | Method, apparatus, device and computer readable medium for expanding server function | |
CN111626787B (en) | Resource issuing method, device, medium and equipment | |
CN113448550B (en) | Method and device for realizing collection management of classes, electronic equipment and computer medium | |
CN114359673B (en) | Small sample smoke detection method, device and equipment based on metric learning | |
CN111314457B (en) | Method and device for setting virtual private cloud | |
CN115842819B (en) | Automatic driving system test data downloading method, device and equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |