[go: up one dir, main page]

CN110266526A - A kind of loading method and equipment of device tree - Google Patents

A kind of loading method and equipment of device tree Download PDF

Info

Publication number
CN110266526A
CN110266526A CN201910498056.7A CN201910498056A CN110266526A CN 110266526 A CN110266526 A CN 110266526A CN 201910498056 A CN201910498056 A CN 201910498056A CN 110266526 A CN110266526 A CN 110266526A
Authority
CN
China
Prior art keywords
equipment
data
details data
tree
loading method
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
Application number
CN201910498056.7A
Other languages
Chinese (zh)
Other versions
CN110266526B (en
Inventor
陈鸿强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201910498056.7A priority Critical patent/CN110266526B/en
Publication of CN110266526A publication Critical patent/CN110266526A/en
Application granted granted Critical
Publication of CN110266526B publication Critical patent/CN110266526B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0266Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application discloses a kind of loading method of device tree and equipment, the method includes remote loading device tree files, wherein the equipment tree directory of device tree file and equipment details data separately load, and equipment tree directory is loaded prior to equipment details data, it include device coding data under facility inventory, device coding is unique mark of equipment;Show equipment tree directory at least partly.By the above-mentioned means, the application can be improved the response speed at device tree interface and the loading efficiency of device tree file.

Description

A kind of loading method and equipment of device tree
Technical field
This application involves network technique fields, more particularly to the loading method and equipment of a kind of device tree.
Background technique
When carrying out bulk management to multiple equipment, device tree is an essential module, and device tree module is main It is for showing the equipment in management platform and carrying out the catalogue of delineation of activities to equipment, user can be quickly found out by device tree Desired equipment, and equipment is operated.
Present inventor has found the equipment amount accessed with management platform increasingly in long-term R&D process Greatly, equipment tree directory level is deeper and deeper, and device tree data volume is more and more huger, it is desirable to quickly from management platform loading equipemtn Tree quickly shows more and more difficult on the client.
Summary of the invention
The application can be improved equipment mainly solving the technical problems that provide the loading method and equipment of a kind of device tree Set the response speed at interface and the loading efficiency of device tree file.
In order to solve the above technical problems, the technical solution that the application uses is: providing a kind of load side of device tree Method, the method includes remote loading device tree files, and wherein the equipment tree directory of device tree file and equipment details data are divided Load is opened, and equipment tree directory is loaded prior to equipment details data, include device coding data under facility inventory, device coding is Unique mark of equipment;Show equipment tree directory at least partly.
In order to solve the above technical problems, another technical solution that the application uses is: a kind of electronic equipment is provided, it is described Electronic equipment includes processor, memory, telecommunication circuit and display, and processor couples memory, telecommunication circuit and display, Memory is for storing program, and processor is for executing the loading method that described program realizes above-mentioned device tree.
In order to solve the above technical problems, another technical solution that the application uses is: providing a kind of load of device tree Method, the method includes receiving the request for obtaining device tree file, device tree file includes equipment tree directory and equipment details Data;Separately send equipment tree directory and equipment details data, and equipment tree directory is sent prior to equipment details data, equipment mesh It includes device coding data that record is lower, and device coding is unique mark of equipment.
In order to solve the above technical problems, another technical solution that the application uses is: providing a kind of server, the clothes Business device includes processor, memory and telecommunication circuit, and processor couples memory and telecommunication circuit, and memory is for storing journey Sequence, processor is for executing the loading method that described program realizes above-mentioned device tree.
In order to solve the above technical problems, another technical solution that the application uses is: providing a kind of with store function Device, described device is stored with program, and described program is performed the loading method that can be realized above-mentioned device tree.
The beneficial effect of the application is: being in contrast to the prior art, the application is by by the equipment of device tree file Tree directory and equipment details data separately load, and the relatively small equipment tree directory of data volume can be made to load completion faster, It shows in time, improves the response speed at device tree interface, reduce period of reservation of number, use device tree circle with high-frequency Face.Data are separated into load simultaneously, additionally it is possible to improve data loading efficiency, faster load all devices tree data.
Detailed description of the invention
Fig. 1 is the flow diagram of the loading method first embodiment of the application device tree;
Fig. 2 is the flow diagram of the loading method second embodiment of the application device tree;
Fig. 3 is the flow diagram of the loading method third embodiment of the application device tree;
Fig. 4 is the structural schematic diagram of the application electronic equipment first embodiment;
Fig. 5 is the structural schematic diagram of the application server first embodiment;
Fig. 6 is the structural schematic diagram for the device first embodiment that the application has store function.
Specific embodiment
It is right as follows in conjunction with drawings and embodiments to keep the purpose, technical solution and effect of the application clearer, clear The application is further described.
The application provides a kind of loading method of device tree, at least adds for client device from management platform server end Carry device tree file.Referring to Fig. 1, Fig. 1 is the flow diagram of the loading method first embodiment of the application device tree.? In the embodiment, the loading method of device tree includes the following steps:
S101: remote loading device tree file, wherein the equipment tree directory of device tree file and equipment details data separate Load, and equipment tree directory is loaded prior to equipment details data.
Wherein, remote loading refers to that loading equipemtn needs to obtain data from server end or from other equipment end, with difference Local load.It include device coding data under equipment tree directory, device coding is unique mark of equipment, can be in management platform On uniquely determine an equipment.Equipment details data refer to be described to believe comprising equipment such as device name, device coding, device types The data acquisition system and device channels detail information of breath, unit detail information etc..
S102: display equipment tree directory is at least partly.
The equipment tree directory that client device display has loaded can quickly be looked for so that user checks by equipment tree directory To desired equipment, equipment is operated.Wherein, when Display directory, it can be and show loaded how many while loading With regard to display how much, until load complete can show completely;When being also possible to all load completion, disposable whole display.Display Catalogue level can be determined according to adaptability such as client device screen size, user settings;It can be shown and be set according to catalogue level Interval range where standby coding directly displays device coding.It can be load to directly display after the completion, be also possible to receiving It is shown again after to Display directory instruction, it is not limited here.
It, can by separately loading the equipment tree directory of device tree file and equipment details data in the embodiment The response speed at device tree interface is improved, uses device tree interface with high-frequency, and can faster load all set Standby tree data.Specifically, the data volume of equipment details data is relatively large, by device tree catalogue data and equipment details data one When playing load, network downloading data time-consuming is very long, and analyzing device tree data are also very slow, completely to show device tree circle Face will wait all data all to download and be parsed, and to wait the very long time in this way, to turn-take so as to cause device tree interface It waits, makes interface low-response, poor user experience.And when separately loading equipment tree directory and equipment details data, because setting Standby tree directory data volume is relatively small, can load completion faster, show, make device tree interface quick response, reduces Period of reservation of number.Data are separated into load simultaneously, additionally it is possible to improve data loading efficiency, faster load all devices Set data.
In one embodiment, separate loading equipemtn tree directory and when equipment details data, first loading equipemtn tree directory and Device coding data under catalogue reload equipment after the completion of the device coding data load under equipment tree directory and catalogue Details data.In this way, processor load catalogue data with all strength can be made, accelerate the loading velocity of catalogue, at raising The utilization rate for managing device, prevents catalogue data from loading together with equipment details data, slows down the loading velocity of catalogue.
In one embodiment, it is loaded in a batch mode when loading equipemtn details data.In this way, energy Enough avoid the data volume disposably downloaded excessive, when especially network state is bad, data volume is crossed conference and slowed down under data Speed is carried, or even can failed download.Data are downloaded in batches, reduce the data volume of single download, speed of download can be accelerated, with All devices tree data are completed in faster full dose load.
In one embodiment, background thread pond loading equipemtn details data are utilized.By first loading equipemtn tree directory, In the case where inventory interface has been displayed, in backstage loading equipemtn details data, user's unaware can be improved user experience.Tool Body, equipment details data acquisition background thread pond is opened on program backstage immediately after getting device tree catalogue data.From the background The quantity of thread pool can be arranged according to the performance and network state adaptability of client device.If client device is that movement is set Standby, in the case where network state allows, background thread pond number of threads can have 3~4.As client device be computer or Mass computing machine equipment, background thread pond number of threads can be 2~3 times of CPU core calculation.Parsing number is loaded by multithreading According to can greatly improve data load, resolution speed, improve CPU and system utilization rate.
Continue to load in batches by using background thread pond, parse acquisition equipment details data, so as to more rapidly complete All devices tree data are completed in amount load.When device tree data volume is small, for user to classification paging load by unaware, data will It is quickly fully loaded to local, when checking the details data of a certain equipment when the user clicks, interface will be all from local acquisition Data are shown, are loaded into as local user experience with disposable total evidence, device tree interface response speed is exceedingly fast.Work as equipment When tree data volume is bigger, if user wants that the equipment details data background thread pond checked has loaded completion, interface is can To make an immediate response, and show equipment details data, response is exceedingly fast.If user wants the equipment details data background thread pond checked Completion is not loaded also, method provided herein can open individual threads load and currently want that the equipment for the target device seen is detailed Feelings data.Which in one embodiment, can have been loaded in catalogue with different colors to identify equipment details data At which does not load completion, does not such as load the shown in red of completion, has loaded the shown in green etc. of completion.
Specifically, (equipment that i.e. user clicks in catalogue, which is given, to be referred to for the instruction of reception extraction target device details data Enable), judge whether the equipment details data of the equipment have loaded completion, if also no load is not completed, utilizes foreground single line Journey loads target device details data.Wherein can by the way of being classified paging loading equipemtn details data, i.e., if click Include multiple equipment under catalogue, can first load the details data of a portion equipment, instant playback after the completion of load first supplies User checks, then in the case where display, it is other to continue load.It, can be with if clicking catalogue lower includes an equipment A part of first loading equipemtn details data, shows while loading.It can accelerate interface response speed in this way, And armamentarium details data can be faster loaded.
In one embodiment, the priority of foreground single thread is higher than the priority in background thread pond.In this way, When can guarantee catalogue when the user clicks, if background thread pond does not load the equipment details completed under the clicked catalogue of user Data, foreground single thread can seize CPU, preferential to load the equipment details data for not loading completion under user's click catalogue, protect Card classification paging loads effect, improves user experience.In this way, background thread pond is closed mutually with foreground single thread Make, by multithreading obtain in batches equipment details data in the way of, can quickly by equipment details data from management platform service Device is loaded into local, greatly promotes device tree interface response speed, carries out promotion user experience.
In one embodiment, the loading method of device tree provided herein can be used for the pipe of video monitoring equipment Reason, management platform server is monitor supervision platform, and equipment is monitoring device, and monitoring device can be various forms of cameras etc.. Client device can be the electronic equipments such as mobile phone, computer, for showing monitoring interface to user.In other embodiments, It can be used for the management of other equipment, if equipment can be server, computer, shared automobile, shared bicycle etc., all can There is corresponding management platform.The application is described in detail by taking video monitoring equipment as an example, but not limited to this.
Referring to Fig. 2, Fig. 2 is the flow diagram of the loading method second embodiment of the application device tree.In the reality Apply in mode, management platform server is video monitoring platform, for being managed to monitoring device, can access ten Wan Lu and with On monitoring device.Client device is used to install the client-side program of monitor supervision platform, so that user's checking monitoring device data, Monitoring device is operated etc..Client device is mobile devices or the desktop computers such as mobile phone, tablet computer, laptop computer Etc. computer equipments.The loading method of device tree includes the following steps:
Monitor supervision platform server is managed monitoring device data in the form of device tree.Wherein, by device tree file It is decomposed, is divided into two parts, a part is device tree catalogue data, and another part is equipment details data.Equipment tree directory In data, each form of catalogue can hang standby, can also hang the form of catalogue;Device coding exists not as isolated node, But an attribute as organization node, and pass through ", " segmentation multiple equipment coding.In this way, xml can be reduced Number of nodes, to reduce xml content size.
User inputs user name, password, information on services etc. in the client and logs in client;It can be grasped after logining successfully It gives and instructs, client device load is made to obtain monitoring device data.Equipment tree directory is obtained as sent first to server And the request of the device coding data under catalogue.
Server receives the request for obtaining equipment tree directory and the device coding data under catalogue, by the whole of equipment tree directory A xml data carry out zip compression, are transmitted further to client device.In this way, transferring content can be substantially reduced, To accelerate the speed that client pulls complete xml device tree catalogue data, network flow consumption is reduced.In other embodiments In, load transmission device tree directory data in batches can also be adopted.
Client device receiving device tree directory data simultaneously parse data, and device tree catalogue data is parsed into catalogue pair As by storage after the parsing of device coding data into device numbering data buffer storage pond;Device coding data buffer storage pond uses thread The array object storage of safety, so that multithreading quick search, and batch remove.
After the load of device tree catalogue data is parsed, the load of background thread pond, analyzing device details data are immediately opened. In other embodiments, be also possible to device tree catalogue data load a part (as load 80% after) after can open after The load of platform thread pool, analyzing device details data.
Specifically, background thread pond batch extracting device coding from device coding data buffer storage pond, and will be extracted Device coding removed from device coding cache pool, while to server send obtain it is corresponding with extracted device coding Equipment details data request.As once can extract 100 device coding data, the details of 100 equipment are disposably obtained Data, the extracted device coding quantity of every batch of without limitation, can be arranged according to the size adaptability of equipment details data.
Server receives the request for obtaining equipment details data corresponding with extracted device coding, sets corresponding Standby details data are sent to client device after compressing using zip.In this way, xml size of data can be greatly reduced, it can Network transfer speeds are improved, flow consumption is reduced.
Client device receiving device details data parse immediately, and after being parsed, equipment details data are stored to setting In standby details data factory, equipment details data factory stores equipment details number by the way of hash dictionary Hash Map According to data dictionary key key assignments is device coding.
In the embodiment, by the way that device coding data and equipment details data are stored respectively to device coding data and are delayed It deposits in pond and equipment details data factory, is able to solve the shared problem of multi-thread data, provided for multi-thread data load Good data completeness guarantee.
During client device loading equipemtn tree file, user can be operated on it.
Catalogue can such as be clicked to enter and show interface, at this point, can be shown immediately if device tree catalogue data has loaded completion Show equipment tree directory;If device tree catalogue data does not load completion also, the waiting facilities tree directory data that need to turn-take are whole Load is completed, and since device tree catalogue data is smaller, the waiting time will not be too long, relative directory data and equipment details data one Rise load scheme, this interface response time can it is short very much.
User can also click the details data that the device tree catalog extraction on interface checks a certain equipment.That is client device The instruction for extracting target device details data is received, program meeting extract equipment details data after instruction are received, to be shown to use Family is checked.Wherein, when extract equipment details data, the mode that classification paging can be used is extracted, so that interface Pagination Display equipment The quantity of details data, every page of display equipment can be defined according to interface length.By being classified the loading method of paging, when monocular is recorded When lower equipment amount is larger, interface response speed can be accelerated, reduce the waiting time, improve user experience.
When extracting target device details data, whether first judge in equipment details data factory comprising target device details Data directly extract interface display if had existed, and interface response speed is exceedingly fast.If there is no then opening foreground Single thread goes server to obtain target device details data.
Foreground single thread sends the request for obtaining target device details data to server, directly obtains mesh from server end Marking device details data.
Server receives the request for obtaining target device details data, after target device details data are compressed using zip It is sent to client device.
If foreground single thread successfully obtains target device details data, parse immediately, after being parsed, by target device Details data are inserted into equipment details data factory, in order to which equipment details data factory is managed collectively equipment details data. It wherein, is to be inserted directly into when being inserted into target device details data, without going to judge whether wrapped in equipment details data factory The data of details containing target device.In this way, it can be improved data loading efficiency.Because when the amount of data is large, going to set Inquiry target device details data reduce efficiency with the presence or absence of that can consume huge performance in standby details data factory.It is inserted into target When equipment details data, if having existed target device details data in equipment details data factory, directly cover.This can When can be that user clicks extraction target device details data, background thread pond, which does not load also, completes this partial data, and foreground is single During thread oneself goes to obtain target device details data, the target device details data in background thread pond have loaded completion , at this point, directly covering, and only retain newest portion.
If foreground single thread successfully obtains target device details data, initiate to remove target device volume to backstage thread pool The instruction of code data, so that background thread pond removes target device coded data from device coding data buffer storage pond.Simultaneously Judge in equipment details data acquisition failed tasks queue whether to include the obtaining target device coded data of the task;If so, Will acquire target device coded data of the task is removed from equipment details data acquisition failed tasks queue.Pass through this side Formula can prevent background thread pond second load target device details data, improve data loading efficiency.
If foreground single thread obtains target device details data not successfully, the task of target device details data will acquire It is put into equipment details data acquisition failed tasks list;If obtaining the number of target device details data not successfully beyond default It is worth (such as 3 times), then issues task abnormity notice.
In one embodiment, schedulable executing in failed tasks list for the task in background thread pond, again attempts to obtain The target device details data obtained not successfully.In this way, can either guarantee to get all devices details data, also It can be improved data loading efficiency, prevent from continuing ceaselessly loading a data, consume the excessive time.
Above scheme, the loading method of device tree provided herein, using using classification paging, background thread pond and The mode loading equipemtn tree data that foreground single thread combines.When equipment amount is less, all data of device tree can quickly add It is downloaded to local, user will not need waiting of turn-taking when using device tree, and interface response speed is exceedingly fast;The equipment amount under monocular record When larger, single hierarchical loading then needs larger time-consuming, and classification paging mode can more rapidly response interface, reduction user wait Time promotes user experience.Parsing data are loaded by using multithreading, data load, resolution speed is substantially increased, improves CPU and system utilization rate;In addition to this this programme also possesses the advantage of hierarchical loading, and device tree data are divided into and are added twice It carrying, a part is device tree catalogue data, and a part is equipment details data, since device tree catalogue data amount is less, thus It can guarantee that equipment tree directory is quickly shown in user interface.
Based on this, the application also provides a kind of loading method of device tree, referring to Fig. 3, Fig. 3 is the application device tree The flow diagram of loading method third embodiment.In this embodiment, the loading method of device tree includes the following steps:
S301: the request for obtaining device tree file is received, device tree file includes equipment tree directory and equipment details data.
S302: separately send equipment tree directory and equipment details data, and equipment tree directory is sent out prior to equipment details data It send.
It wherein, include device coding data under facility inventory, device coding is unique mark of equipment.The program is above-mentioned The process step of server end in the loading method of device tree, it is no longer superfluous herein referring specifically to the description of above embodiment It states.
Based on this, the application also provides a kind of electronic equipment, referring to Fig. 4, Fig. 4 is that the application electronic equipment first is implemented The structural schematic diagram of mode.In the embodiment, electronic equipment 40 includes processor 401, memory 402,403 and of telecommunication circuit Display 404, processor 401 couple memory 402, telecommunication circuit 403 and display 404, and memory 402 is for storing journey Sequence, processor 401 is for executing the loading method that described program realizes above-mentioned device tree.The electronic equipment can be used as client Equipment realizes the loading method of above-mentioned device tree, has device tree interface fast response time and device tree file loading efficiency high The advantages of, referring specifically to the description of above embodiment, details are not described herein.The electronic equipment can be mobile phone, plate electricity The computer equipments such as the mobile devices such as brain, laptop computer or desktop computer.
Based on this, the application also provides a kind of server, referring to Fig. 5, Fig. 5 is the application server first embodiment Structural schematic diagram.In the embodiment, server 50 includes processor 501, memory 502 and telecommunication circuit 503, processor 501 coupling memories 502 and telecommunication circuit 503, memory 502 is for storing program, and processor 501 is for executing described program Realize the loading method of above-mentioned device tree.The server is managed multiple devices as management platform, in the server The device tree catalogue data and equipment details data of device tree file are stored separately, and are transmitted with that can separate, referring specifically to upper The description of embodiment is stated, details are not described herein.
The application also provides a kind of device with store function, referring to Fig. 6, Fig. 6 is that the application has store function Device first embodiment structural schematic diagram.In this embodiment, storage device 60 is stored with program 601, program 601 It is performed the loading method for realizing above equipment tree.Specific work process please refers to the description of above method embodiment, therefore This is repeated no more, and please refers to the explanation of the above corresponding method step in detail.Wherein the device with store function can be portable Formula storage medium such as USB flash disk, CD, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), magnetic disk are also possible to terminal, service Device etc..
In several embodiments provided herein, it should be understood that disclosed system, device and method can To realize by another way.For example, device embodiments described above are only schematical, for example, the mould The division of block or unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple Unit or assembly can be combined or can be integrated into another system, or some features can be ignored or not executed.It is another Point, shown or discussed mutual coupling, direct-coupling or communication connection can be through some interfaces, device or The indirect coupling or communication connection of unit can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of unit therein can be selected to realize present embodiment scheme according to the actual needs Purpose.
In addition, each functional unit in each embodiment of the application can integrate in one processing unit, it can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units.It is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the application The all or part of the steps of embodiment the method.
The foregoing is merely presently filed embodiments, are not intended to limit the scope of the patents of the application, all to utilize this Equivalent structure or equivalent flow shift made by application specification and accompanying drawing content, it is relevant to be applied directly or indirectly in other Technical field similarly includes in the scope of patent protection of the application.

Claims (24)

1. a kind of loading method of device tree characterized by comprising
Remote loading device tree file, wherein the equipment tree directory of the device tree file and equipment details data separately load, And the equipment tree directory is loaded prior to the equipment details data, includes device coding data under the facility inventory, it is described Device coding is unique mark of equipment;
Show the equipment tree directory at least partly.
2. the loading method of device tree according to claim 1, which is characterized in that the device tree mesh of the device tree file Record and equipment details data, which separately load, includes:
First load the device coding data under the equipment tree directory and catalogue;
After the completion of the device coding data load under the equipment tree directory and catalogue, the equipment details data are reloaded.
3. the loading method of device tree according to claim 1, which is characterized in that the loading equipemtn details data packet It includes:
The equipment details data are loaded using background thread pond.
4. the loading method of device tree according to claim 3, which is characterized in that further include:
Receive the instruction for extracting target device details data;
Whether judge in equipment details data factory comprising the target device details data;
If it is not, then loading the target device details data using foreground single thread;
Wherein, the equipment details data factory is used to store the equipment details data that load is completed.
5. the loading method of device tree according to claim 4, which is characterized in that the priority of the foreground single thread is high Priority in the background thread pond.
6. the loading method of device tree according to claim 4, which is characterized in that described to load institute using foreground single thread Stating target device details data includes:
The foreground single thread loads the target device details data in a manner of being classified paging.
7. the loading method of device tree according to claim 4, which is characterized in that described to load institute using foreground single thread Stating target device details data includes:
The foreground single thread loads the target device details data directly from device tree document management server, and by institute Target device details data are stated to be inserted into the equipment details data factory.
8. the loading method of device tree according to claim 7, which is characterized in that described to insert target device details data Enter and includes: into the equipment details data factory
Directly the target device details data are inserted into the equipment details data factory;
If having included the target device details data in the equipment details data factory, directly cover.
9. the loading method of device tree according to claim 4, which is characterized in that described to load institute using foreground single thread Stating target device details data includes:
If the foreground single thread successfully obtains the target device details data, initiate to remove mesh to the background thread pond The instruction of marking device coded data, the instruction for removing target device coded data are used to indicate the background thread pond for institute Target device coded data is stated to remove from device coding data buffer storage pond;
Wherein, device coding data buffer storage pond is used to store the device coding data that load is completed.
10. the loading method of device tree according to claim 4, which is characterized in that described to be loaded using foreground single thread The target device details data include:
If the foreground single thread successfully obtains the target device details data, judge that equipment details data acquisition is unsuccessfully appointed It is engaged in queue whether including the obtaining the target device coded data of the task;
If so, will acquire the task of the target device coded data from the equipment details data acquisition failed tasks queue Middle removal.
11. the loading method of device tree according to claim 4, which is characterized in that described to be loaded using foreground single thread The target device details data include:
If the foreground single thread obtains the target device details data not successfully, the target device details number will acquire According to task be put into equipment details data acquisition failed tasks list;
If obtaining the number of the target device details data not successfully beyond preset value, task abnormity notice is issued.
12. the loading method of device tree according to claim 11, which is characterized in that further include:
The task in the failed tasks list is executed using background thread pond scheduling, obtains the institute obtained not successfully again State target device details data.
13. the loading method of device tree according to claim 3, which is characterized in that described to be loaded using background thread pond The equipment details data include:
The background thread pond loads the equipment details data in a batch mode.
14. the loading method of device tree according to claim 13, which is characterized in that the background thread pond is in batches Mode loads the equipment details data
Background thread pond batch extracting device coding from device coding data buffer storage pond, while extracted equipment being compiled Code is removed from device coding data buffer storage pond;
Equipment details data corresponding with extracted device coding are obtained, and the equipment details data storage that will acquire is arrived In equipment details data factory;
Wherein, the equipment details data factory is used to store the equipment details data that load is completed, the device coding Data buffer storage pond is used to store the device coding data that load is completed.
15. the loading method of device tree according to claim 14, which is characterized in that the equipment details data factory adopts The equipment details data are stored with the mode of hash dictionary, the key key assignments of the data dictionary is device coding.
16. the loading method of device tree according to claim 14, which is characterized in that device coding data buffer storage pond The device coding data are stored using the array object storage mode of thread-safe.
17. the loading method of device tree according to claim 1, which is characterized in that under the equipment tree directory and catalogue Device coding data and equipment details data compressed after transmitted.
18. the loading method of device tree according to claim 1, which is characterized in that the equipment details data include setting Standby one of title, device coding, device type, device channels detail information, unit detail information or a variety of.
19. according to claim 1 to the loading method of device tree described in any one of 18, which is characterized in that the equipment For video monitoring equipment.
20. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor, memory, telecommunication circuit and display Device, the processor couple the memory, telecommunication circuit and display, and the memory is for storing program, the processing Device is used to execute the loading method that described program realizes such as described in any item device trees of claim 1-19.
21. a kind of loading method of device tree, which is characterized in that the described method includes:
The request for obtaining device tree file is received, the device tree file includes equipment tree directory and equipment details data;
Equipment tree directory described in separately send and equipment details data, and the equipment tree directory is prior to the equipment details data It sends, includes device coding data under the facility inventory, the device coding is unique mark of equipment.
22. a kind of server, which is characterized in that the server includes processor, memory and telecommunication circuit, the processor The memory and telecommunication circuit are coupled, the memory is for storing program, and the processor is for executing described program reality The now loading method of device tree as claimed in claim 21.
23. server according to claim 22, which is characterized in that the memory is also used to store device tree file, And the device tree catalogue data and equipment details data of the device tree file are stored separately.
24. a kind of device with store function, which is characterized in that described device is stored with program, and described program is performed It can be realized the loading method such as claim 1-19,21 described in any item device trees.
CN201910498056.7A 2019-06-10 2019-06-10 Equipment tree loading method and equipment Active CN110266526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910498056.7A CN110266526B (en) 2019-06-10 2019-06-10 Equipment tree loading method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910498056.7A CN110266526B (en) 2019-06-10 2019-06-10 Equipment tree loading method and equipment

Publications (2)

Publication Number Publication Date
CN110266526A true CN110266526A (en) 2019-09-20
CN110266526B CN110266526B (en) 2022-12-06

Family

ID=67917406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910498056.7A Active CN110266526B (en) 2019-06-10 2019-06-10 Equipment tree loading method and equipment

Country Status (1)

Country Link
CN (1) CN110266526B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113065042A (en) * 2021-04-02 2021-07-02 北京天空卫士网络安全技术有限公司 Management method and device of terminal equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5644736A (en) * 1995-05-25 1997-07-01 International Business Machines Corporation System and method for selecting components of a hierarchical file structure
CN1851631A (en) * 2005-12-27 2006-10-25 华为技术有限公司 Event handling method of single node in tree
CN1983962A (en) * 2006-06-08 2007-06-20 华为技术有限公司 Extended network managing system and method
CN101446973A (en) * 2008-12-19 2009-06-03 北京数码大方科技有限公司 Tree view node loading display method for information management system
CN101944123A (en) * 2010-09-25 2011-01-12 清华大学 Simulated batch configuration document management method oriented to semiconductor manufacturing equipment function
CN103957119A (en) * 2014-04-21 2014-07-30 南京信息职业技术学院 Method for managing network equipment by using MIB file and browser
WO2018121618A1 (en) * 2016-12-29 2018-07-05 广州阿里巴巴文学信息技术有限公司 Scrolling page turning display method and device, computing device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5644736A (en) * 1995-05-25 1997-07-01 International Business Machines Corporation System and method for selecting components of a hierarchical file structure
CN1851631A (en) * 2005-12-27 2006-10-25 华为技术有限公司 Event handling method of single node in tree
CN1983962A (en) * 2006-06-08 2007-06-20 华为技术有限公司 Extended network managing system and method
CN101446973A (en) * 2008-12-19 2009-06-03 北京数码大方科技有限公司 Tree view node loading display method for information management system
CN101944123A (en) * 2010-09-25 2011-01-12 清华大学 Simulated batch configuration document management method oriented to semiconductor manufacturing equipment function
CN103957119A (en) * 2014-04-21 2014-07-30 南京信息职业技术学院 Method for managing network equipment by using MIB file and browser
WO2018121618A1 (en) * 2016-12-29 2018-07-05 广州阿里巴巴文学信息技术有限公司 Scrolling page turning display method and device, computing device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113065042A (en) * 2021-04-02 2021-07-02 北京天空卫士网络安全技术有限公司 Management method and device of terminal equipment

Also Published As

Publication number Publication date
CN110266526B (en) 2022-12-06

Similar Documents

Publication Publication Date Title
CN107241281B (en) Data processing method and device
CN109491801B (en) Micro-service access scheduling method, micro-service access scheduling device, medium and electronic equipment
WO2018121696A1 (en) Multi-thread processing method and device, and server
CN113794909A (en) Video streaming system, method, server, device, and storage medium
CN111159265B (en) ETL data migration method and system
CN110928905A (en) Data processing method and device
CN114490050A (en) Data synchronization method and device
CN113010542A (en) Service data processing method and device, computer equipment and storage medium
CN111478781B (en) Message broadcasting method and device
CN110162410A (en) A kind of message treatment method and device
CN102625144A (en) Parallel video processing method based on Cloud Network of local area network
CN105009115B (en) The method and apparatus for obtaining Internet resources
CN107729470A (en) A kind of image processing method and device
CN110266526A (en) A kind of loading method and equipment of device tree
US20140280759A1 (en) Data transmission for transaction processing in a networked environment
US20150271099A1 (en) Stateless services in content management clients
CN111209311B (en) Method and device for processing data
CN113535371A (en) Method and device for multithreading asynchronous loading of resources
CN111756649A (en) A data transmission method, apparatus, device and computer-readable storage medium
CN116594834A (en) Operation and maintenance data processing method and device for multi-protocol server
CN110288309B (en) Data interaction method, device, system, computer equipment and storage medium
CN106653027A (en) Smart home voice control system based on NodeJS
CN107577680A (en) Real-time text retrieval system and its implementation based on HBase big datas
CN112783925B (en) Paging retrieval method and device
CN110019445A (en) Method of data synchronization and device calculate equipment and storage medium

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