CN108304492A - A kind of search listing update method, storage medium, equipment and system - Google Patents

A kind of search listing update method, storage medium, equipment and system Download PDF

Info

Publication number
CN108304492A
CN108304492A CN201810019591.5A CN201810019591A CN108304492A CN 108304492 A CN108304492 A CN 108304492A CN 201810019591 A CN201810019591 A CN 201810019591A CN 108304492 A CN108304492 A CN 108304492A
Authority
CN
China
Prior art keywords
deletions
aggregate list
additions
equipment
function
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
CN201810019591.5A
Other languages
Chinese (zh)
Other versions
CN108304492B (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810019591.5A priority Critical patent/CN108304492B/en
Priority to PCT/CN2018/081282 priority patent/WO2019136839A1/en
Publication of CN108304492A publication Critical patent/CN108304492A/en
Application granted granted Critical
Publication of CN108304492B publication Critical patent/CN108304492B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/904Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Landscapes

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

Abstract

The invention discloses a kind of search listing update method, storage medium, equipment and systems, are related to search listing update method field, and this method includes:An aggregate list is created, is used to record facility information in current local area network, and be ranked up to the facility information of aggregate list according to preset priority;An equipment additions and deletions function is created, is used to carry out additions and deletions to the facility information in aggregate list;Meanwhile when executing equipment additions and deletions function, aggregate list stops sequence, after equipment additions and deletions function is finished, aggregate list rearrangement.The present invention can be newer into Mobile state in search listing while having no effect on the execution state of entire application program, improves the stability of program.

Description

A kind of search listing update method, storage medium, equipment and system
Technical field
The present invention relates to search listing update method fields, and in particular to a kind of search listing update method, storage medium, Equipment and system.
Background technology
It is needing to search for the facility information in LAN, equipment only in a local network before throwing screen in throwing screen project It can carry out throwing screen processing, and the equipment of highest priority or particular device are placed on front end and shown, other equipment is according to searching Rope to sequence be ranked up.
But equipment is the discovery that an asynchronous procedure, all needed when being added or removed there are one equipment again into Sorting operation of row, front end is aligned to by the equipment of highest priority.
A current sorting operation just in alignment processes, while have again facility information need be deleted when, can cause to count The exception that group is crossed the border can then cause program to be collapsed at this time.
Invention content
In view of the deficiencies in the prior art, the purpose of the present invention is to provide a kind of search listing update method, deposit Storage media, equipment and system, being capable of the execution newer into Mobile state while having no effect on entire application program in search listing State improves the stability of program.
To achieve the above objectives, the technical solution adopted by the present invention is that:
A kind of search listing update method, includes the following steps:
An aggregate list is created, is used to record facility information in current local area network, and according to preset priority to collection The facility information for closing list is ranked up;
An equipment additions and deletions function is created, is used to carry out additions and deletions to the facility information in the aggregate list;Meanwhile
When executing equipment additions and deletions function, the aggregate list stops sequence, after equipment additions and deletions function is finished, institute State aggregate list rearrangement.
Based on the above technical solution, search listing update method is further comprising the steps of:
A monitored parameters are created, the monitored parameters are for indicating whether the equipment additions and deletions function is in shape in execution State.
Based on the above technical solution, search listing update method:
The monitored parameters initial value is false, when the equipment additions and deletions function starts to execute, the monitored parameters Value becomes true, and after the stand-by period of setting, and the value of the monitored parameters reverts to false;
When the value of monitored parameters is true, aggregate list stops sequence, when the value of monitored parameters becomes false from true When, aggregate list restarts sequence.
Based on the above technical solution, search listing update method:
When the aggregate list receives multiple calling equipment additions and deletions function requests, to multiple calling equipment additions and deletions functions Request carries out time-sequencing, and aggregate list according to time sequence operates successively.
Based on the above technical solution, search listing update method is further comprising the steps of:
Wait for that the equipment additions and deletions function is finished, and after the facility information ranking replacement in the aggregate list, Carry out the UI updates of the aggregate list.
A kind of storage medium, is stored thereon with computer program, it is characterised in that:The computer program is held by processor The step of above-mentioned search listing update method is realized when row.
A kind of search listing more new equipment, including memory, processor and be stored on the memory and at the place The computer program run on reason device, it is characterised in that:The processor realizes above-mentioned search when executing the computer program The step of list updating method.
A kind of search listing more new system, the system include:
Cluster tool unit, a built-in aggregate list, the aggregate list are believed for recording equipment in current local area network Breath, and the facility information of the aggregate list is ranked up according to preset priority;
Equipment additions and deletions unit, built-in equipment additions and deletions function, the equipment additions and deletions function are used for the aggregate list In facility information carry out additions and deletions;
When executing the equipment additions and deletions function, the aggregate list stops sequence, waits for that the equipment additions and deletions function executes After, the aggregate list rearrangement.
Based on the above technical solution, search listing more new system further includes:
Monitoring unit, a built-in monitored parameters, the monitored parameters are for indicating whether the equipment additions and deletions function is located In state in execution.
Based on the above technical solution, search listing more new system further includes:
Synchronous set unit is used to cache multiple calling equipment additions and deletions function requests;
When the aggregate list receives multiple calling equipment additions and deletions function requests, to multiple calling equipment Additions and deletions function request carries out time-sequencing, and the aggregate list according to time sequence operates successively.
Compared with the prior art, the advantages of the present invention are as follows:
(1) present invention records facility information in current local area network using the aggregate list created, and according to preset preferential Grade is ranked up the facility information of aggregate list, and using the equipment additions and deletions function created, is used for in aggregate list Facility information carries out additions and deletions, and when executing equipment additions and deletions function, aggregate list stops sequence, waits for that equipment additions and deletions function is finished Afterwards, aggregate list is resequenced;
Compared with prior art, the present invention can be newer into Mobile state in search listing while having no effect on entire application The execution state of program, improves the stability of program.
(2) present invention creates a monitored parameters, for indicating whether the equipment additions and deletions function is in state in execution;
Compared with prior art, the monitored parameters that the present invention creates, can after identification equipment additions and deletions function starts execution Own value is reverted into initial value, updating work for search listing next time provides facility.
Description of the drawings
Fig. 1 is the flow chart of search listing update method in the embodiment of the present invention;
Fig. 2 is the structure diagram of search listing more new equipment in the embodiment of the present invention;
Fig. 3 is the structure diagram of search listing more new system in the embodiment of the present invention.
Specific implementation mode
The embodiment of the present invention is described in further detail below in conjunction with attached drawing.
Shown in Figure 1, the embodiment of the present invention provides a kind of search listing update method, includes the following steps:
An aggregate list is created, is used to record facility information in current local area network, and according to preset priority to collection The facility information for closing list is ranked up;
An equipment additions and deletions function is created, is used to carry out additions and deletions to the facility information in aggregate list;Meanwhile
When executing equipment additions and deletions function, aggregate list stops sequence, after equipment additions and deletions function is finished, set row Table is resequenced.
The aggregate list of the present invention is ranked up for being included to the facility information in current local area network, and is set The clooating sequence of standby information is then according to preset priority;
Increase and deletion of the equipment additions and deletions function for carrying out facility information in aggregate list, to update aggregate list In facility information;
The priority of each facility information in aggregate list is different, and needs to be arranged again after aggregate list update Sequence, and when executing equipment additions and deletions function, aggregate list stops sequence, after equipment additions and deletions function is finished, aggregate list Rearrangement, when aggregate list can be avoided to be ranked up process, there are additions and deletions in the facility information in aggregate list at this time Situation causes the exception of Array Bound in aggregate list.
It, can be according to equipment additions and deletions function executive condition come the row of control when the aggregate list of the present invention sorts to facility information The stopping and unlatching of sequence work, improve stability when data processing.
The present invention is so as to the execution newer into Mobile state while having no effect on entire application program in search listing State improves the stability of program.
In the present embodiment, search listing update method is further comprising the steps of:
A monitored parameters are created, monitored parameters are for indicating whether equipment additions and deletions function is in state in execution;
By monitored parameters, the execution state of equipment additions and deletions function can be understood, the different numerical value representative of monitored parameters is set Whether standby additions and deletions function is in state in execution;
Specifically, monitored parameters initial value is false, when equipment additions and deletions function starts to execute, the value of monitored parameters becomes For true, and after the stand-by period of setting, the value of monitored parameters reverts to false;
When the value of monitored parameters is true, aggregate list stops sequence, when the value of monitored parameters becomes false from true When, aggregate list restarts sequence;
Stand-by period can be 100 milliseconds;
Monitored parameters can be a global Boolean variable isHandling, and isHandling is initialized as False, whenever executing equipment additions and deletions function, the value of isHandling is set as true, and when equipment additions and deletions function executes After set the value of isHandling to false after 100 milliseconds of delay;
It should be noted that the reason of why 100 milliseconds being set as the stand-by period is in order to avoid isHandling Value switch speed it is too fast cause sequence logic to be reacted not yet, so as to cause sequence logic exception;
Own value can be reverted to initial value by monitored parameters, and updating work for search listing next time provides facility.
In the present embodiment, when aggregate list receives multiple calling equipment additions and deletions function requests, to multiple calling equipment Additions and deletions function request carries out time-sequencing, and aggregate list according to time sequence operates successively;
This technical solution the arrival of the data of that is, one equipment additions and deletions and next is set mainly for very extreme situation The interval time of the arrival of the data of standby additions and deletions is very short, and the shorter than execution time of additions and deletions function or aggregate list quilt When multithreading operation, when both the above situation, aggregate list carries out queuing processing automatically, when first thread process completes again It arranges second thread to be handled, that is, is caching a series of request, then these requests are handled successively, are avoided It goes wrong under above-mentioned extreme case so that the maintenance of entire data is without any exception.
In the present embodiment, search listing update method is further comprising the steps of:
It waits for that equipment additions and deletions function is finished, and after the facility information ranking replacement in aggregate list, carries out aggregate list UI update;
This in traditional scheme in order to solve the problems, such as, additions and deletions call back function only carries out caching to data, equipment Additions and deletions process is not embodied on UI, only after the facility information ranking replacement in aggregate list, then carries out aggregate list UI updates;Due to being only the additions and deletions to facility information, the operation of any UI, whole operation process time-consuming operation will not relate to It almost can be ignored, ensure the process of processing procedure.
It should be noted that equipment additions and deletions function includes equipment increase function and equipment deletes function, equipment increases letter Several facility informations in aggregate list increase, and the facility information that equipment is deleted in function pair aggregate list is deleted.
A kind of storage medium, is stored thereon with computer program, and above-mentioned search is realized when computer program is executed by processor The step of rope list updating method.
As shown in Fig. 2, a kind of search listing more new equipment, including memory, processor and storage on a memory and The computer program run on processor, processor realize the step of above-mentioned search listing update method when executing computer program Suddenly.
As shown in figure 3, a kind of search listing more new system, the system include:
Cluster tool unit, a built-in aggregate list, aggregate list are used to record facility information in current local area network, and The facility information of aggregate list is ranked up according to preset priority;
Equipment additions and deletions unit, built-in equipment additions and deletions function, equipment additions and deletions function are used for the equipment in aggregate list Information carries out additions and deletions;
When executing equipment additions and deletions function, aggregate list stops sequence, after equipment additions and deletions function is finished, set row Table is resequenced.
In the present embodiment, search listing more new system further includes:
Monitoring unit, a built-in monitored parameters, whether monitored parameters are for indicating equipment additions and deletions function in executing State;
Specifically, monitored parameters initial value is false, when equipment additions and deletions function starts to execute, the value of monitored parameters becomes For true, and after the stand-by period of setting, the value of monitored parameters reverts to false;
When the value of monitored parameters is true, aggregate list stops sequence, when the value of monitored parameters becomes false from true When, aggregate list restarts sequence;
Stand-by period can be 100 milliseconds.
In the present embodiment, search listing more new system further includes:
Synchronous set unit is used to cache multiple calling equipment additions and deletions function requests;
When aggregate list receives multiple calling equipment additions and deletions function requests, to multiple calling equipment additions and deletions function requests Time-sequencing is carried out, aggregate list according to time sequence operates successively.
In the present embodiment, in search listing more new system, wait for that equipment additions and deletions function is finished, and setting in aggregate list After standby information sorting update, the UI updates of aggregate list are carried out
It should be noted that:Above-described embodiment provide system realize search listing dynamic update operation when, only more than The division progress of each function module is stated for example, in practical application, it can be as needed and by above-mentioned function distribution by different work( Energy module is completed, i.e., the internal structure of system is divided into different function modules, to complete whole described above or portion Divide function.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as the protection of the present invention Within the scope of.
The content not being described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.

Claims (10)

1. a kind of search listing update method, which is characterized in that this approach includes the following steps:
An aggregate list is created, is used to record facility information in current local area network, and arrange set according to preset priority The facility information of table is ranked up;
An equipment additions and deletions function is created, is used to carry out additions and deletions to the facility information in the aggregate list;Meanwhile
When executing equipment additions and deletions function, the aggregate list stops sequence, after equipment additions and deletions function is finished, the collection Close list rearrangement.
2. search listing update method as described in claim 1, which is characterized in that this method is further comprising the steps of:
A monitored parameters are created, the monitored parameters are for indicating whether the equipment additions and deletions function is in state in execution.
3. search listing update method as claimed in claim 2, it is characterised in that:
The monitored parameters initial value is false, and when the equipment additions and deletions function starts to execute, the value of the monitored parameters becomes For true, and after the stand-by period of setting, the value of the monitored parameters reverts to false;
When the value of monitored parameters is true, aggregate list stops sequence, when the value of monitored parameters becomes false from true, Aggregate list restarts sequence.
4. search listing update method as described in claim 1, it is characterised in that:
When the aggregate list receives multiple calling equipment additions and deletions function requests, to multiple calling equipment additions and deletions function requests Time-sequencing is carried out, aggregate list according to time sequence operates successively.
5. search listing update method as described in claim 1, which is characterized in that this method is further comprising the steps of:
It waits for that the equipment additions and deletions function is finished, and after the facility information ranking replacement in the aggregate list, carries out The UI of the aggregate list updates.
6. a kind of storage medium, is stored thereon with computer program, it is characterised in that:The computer program is executed by processor The step of any one of Shi Shixian the claims 1 to 5 the method.
7. a kind of search listing more new equipment, including memory, processor and it is stored on the memory and in the processing The computer program run on device, it is characterised in that:Realize that aforesaid right is wanted when the processor executes the computer program The step of seeking any one of 1 to 5 the method.
8. a kind of search listing more new system, which is characterized in that the system includes:
Cluster tool unit, a built-in aggregate list, the aggregate list are used to record facility information in current local area network, and The facility information of the aggregate list is ranked up according to preset priority;
Equipment additions and deletions unit, built-in equipment additions and deletions function, the equipment additions and deletions function are used for in the aggregate list Facility information carries out additions and deletions;
When executing the equipment additions and deletions function, the aggregate list stops sequence, waits for that the equipment additions and deletions function is finished Afterwards, the aggregate list rearrangement.
9. search listing as claimed in claim 8 more new system, which is characterized in that the system further includes:
Monitoring unit, a built-in monitored parameters, the monitored parameters are held for indicating whether the equipment additions and deletions function is in State in row.
10. search listing as claimed in claim 8 more new system, which is characterized in that the system further includes:
Synchronous set unit is used to cache multiple calling equipment additions and deletions function requests;
When the aggregate list receives multiple calling equipment additions and deletions function requests, to multiple calling equipment additions and deletions Function request carries out time-sequencing, and the aggregate list according to time sequence operates successively.
CN201810019591.5A 2018-01-09 2018-01-09 Search list updating method, storage medium, device and system Active CN108304492B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810019591.5A CN108304492B (en) 2018-01-09 2018-01-09 Search list updating method, storage medium, device and system
PCT/CN2018/081282 WO2019136839A1 (en) 2018-01-09 2018-03-30 Search list updating method, storage medium, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810019591.5A CN108304492B (en) 2018-01-09 2018-01-09 Search list updating method, storage medium, device and system

Publications (2)

Publication Number Publication Date
CN108304492A true CN108304492A (en) 2018-07-20
CN108304492B CN108304492B (en) 2020-07-31

Family

ID=62868386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810019591.5A Active CN108304492B (en) 2018-01-09 2018-01-09 Search list updating method, storage medium, device and system

Country Status (2)

Country Link
CN (1) CN108304492B (en)
WO (1) WO2019136839A1 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101103342A (en) * 2005-12-28 2008-01-09 松下电工株式会社 Network equipment system
CN100492521C (en) * 2003-07-04 2009-05-27 佳能株式会社 Recording apparatus having playlist editing function
US20090223872A1 (en) * 2008-03-07 2009-09-10 Ronald Robbins System and method for sorting items
CN103098056A (en) * 2012-10-26 2013-05-08 华为技术有限公司 Ordering method, apparatus and terminal
CN103226517A (en) * 2012-01-31 2013-07-31 上海华虹集成电路有限责任公司 Method for dynamically ordering physical blocks of Nandflash according to quantity of invalid pages
CN105915973A (en) * 2016-04-18 2016-08-31 深圳Tcl数字技术有限公司 Intelligent television set and system and method for dynamic connection of intelligent television set with slave equipment
CN106682032A (en) * 2015-11-10 2017-05-17 北京国双科技有限公司 Method and device for processing operation records
CN106775474A (en) * 2016-12-16 2017-05-31 郑州云海信息技术有限公司 A kind of Nand Flash abrasion equilibrium methods, device and memory
CN106802825A (en) * 2016-12-09 2017-06-06 南京邮电大学 A kind of dynamic task scheduling method and system based on real-time system
CN107171759A (en) * 2017-07-12 2017-09-15 惠州Tcl移动通信有限公司 A kind of method for finding and search FM channels, mobile terminal and storage device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100492521C (en) * 2003-07-04 2009-05-27 佳能株式会社 Recording apparatus having playlist editing function
CN101103342A (en) * 2005-12-28 2008-01-09 松下电工株式会社 Network equipment system
US20090223872A1 (en) * 2008-03-07 2009-09-10 Ronald Robbins System and method for sorting items
CN103226517A (en) * 2012-01-31 2013-07-31 上海华虹集成电路有限责任公司 Method for dynamically ordering physical blocks of Nandflash according to quantity of invalid pages
CN103098056A (en) * 2012-10-26 2013-05-08 华为技术有限公司 Ordering method, apparatus and terminal
CN106682032A (en) * 2015-11-10 2017-05-17 北京国双科技有限公司 Method and device for processing operation records
CN105915973A (en) * 2016-04-18 2016-08-31 深圳Tcl数字技术有限公司 Intelligent television set and system and method for dynamic connection of intelligent television set with slave equipment
CN106802825A (en) * 2016-12-09 2017-06-06 南京邮电大学 A kind of dynamic task scheduling method and system based on real-time system
CN106775474A (en) * 2016-12-16 2017-05-31 郑州云海信息技术有限公司 A kind of Nand Flash abrasion equilibrium methods, device and memory
CN107171759A (en) * 2017-07-12 2017-09-15 惠州Tcl移动通信有限公司 A kind of method for finding and search FM channels, mobile terminal and storage device

Also Published As

Publication number Publication date
CN108304492B (en) 2020-07-31
WO2019136839A1 (en) 2019-07-18

Similar Documents

Publication Publication Date Title
CN102566928A (en) System and method for automatically managing desktop application icons of mobile terminal
CN110321383A (en) Big data platform method of data synchronization, device, computer equipment and storage medium
CN103399781B (en) Cloud Server and virtual machine management method thereof
CN100538646C (en) A kind of method and apparatus of in distributed system, carrying out the SQL script file
CN109885642B (en) Hierarchical storage method and device for full-text retrieval
CN107562851B (en) Data updating method and device and electronic equipment
US20190236201A1 (en) Techniques for processing database tables using indexes
CN103514277A (en) Task parallel processing method for electricity utilization information collection system
CN101980207B (en) Method and system for implementing database access
CN109376196A (en) Method and device for batch synchronization of redo logs
CN107463468A (en) Buffer memory management method and its equipment
CN110874358B (en) Multi-attribute column storage and retrieval method and device and electronic equipment
CN109597837A (en) Storage method, querying method and the relevant device of time series data
JPH04219844A (en) High-speed medium preferential release type exclusive system
US10402385B1 (en) Database live reindex
CN110008030A (en) A kind of method of metadata access, system and equipment
CN108304492A (en) A kind of search listing update method, storage medium, equipment and system
CN105930100B (en) A kind of implementation method optimizing usim card file read-write speed and frequency
WO2020125689A1 (en) Method and device for clustering data
WO2020020170A1 (en) Data deleting method and device
CN114579097A (en) Cloud native data API construction method based on single data stream
CN103294774B (en) The device and method carrying out data warehouse loading in batches based on zone
CN108664503A (en) A kind of data archiving method and device
CN113360576A (en) Power grid mass data real-time processing method and device based on Flink Streaming
JPH02297670A (en) Data base retrieving system

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