CN102799609A - Data acquisition method based on data monitoring - Google Patents

Data acquisition method based on data monitoring Download PDF

Info

Publication number
CN102799609A
CN102799609A CN2012101772819A CN201210177281A CN102799609A CN 102799609 A CN102799609 A CN 102799609A CN 2012101772819 A CN2012101772819 A CN 2012101772819A CN 201210177281 A CN201210177281 A CN 201210177281A CN 102799609 A CN102799609 A CN 102799609A
Authority
CN
China
Prior art keywords
file
data
user terminal
watch
dog
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012101772819A
Other languages
Chinese (zh)
Inventor
王征
赵海军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN2012101772819A priority Critical patent/CN102799609A/en
Publication of CN102799609A publication Critical patent/CN102799609A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a data acquisition method based on data monitoring. The method comprises the following steps: step 101, a monitor unit receives a subscription request sent by a user terminal in advance, wherein the subscription request comprises folder names; step 102, the monitor unit monitors update conditions of all folders in a server in real time and judges whether updated folders correspond to the folder names in the subscription request when the folders are updated, if so, no processing is carried out, and if not, a step 103 is carried out; step 101, the monitor unit sends an update instruction to the user terminal, wherein the update instruction comprises the names of the updated file; step 104, the user terminal acquires video/audio data in the files which are in the server and correspond to the names of the updated file; and step 105, the user terminal broadcasts the video/audio data, so that the data is processed by a computer when the files are changed; and therefore, the memory resources are saved, and the data processing efficiency is improved.

Description

A kind of data capture method based on data monitoring
Technical field
The present invention relates to the data file process field, relate in particular to a kind of data capture method based on data monitoring.
Background technology
In various sports tournaments, contestant's achievement will be passed judgment on through the judging panel, and the achievement that the judging panel provides will be passed through processing and shown that again broadcast is to spectators.Sometimes spectators pay close attention to several players' achievement possibly, just need several players' achievement be broadcasted simultaneously, just need with information stores such as these achievements in the particular file folder of Windows system, be convenient to the achievement data are handled and broadcasted.
Computing machine reading of data from file normally adopts the mode of poll that the data in the file are inquired about, and poll is exactly a program with the file of inquiry file folder in order of certain cycle.Also having a kind of mode of obtaining data is exactly to utilize the mode of file monitor.File monitor is to realize through the function that the Windows api function that the Windows system provides is concentrated.File monitor is used for the file system ruuning situation on the real-time monitoring host computer; The file of pointing out current operation is by which process transfer; In the tracing system with application deployment in mistake; Pass to the IOCTL control code of I/O manager when the supervisory user application program is operated file system, point out the result that operates, promptly to certain user file or system file carry out reading and writing, when operation such as deleting, closing; Can write down the situation such as fullpath, file calling process of time, the file of current operation, and be kept in the journal file.Utilize file monitor can monitor at any time and whether be modified, will deposit in the file if file changes with the file of data message.
In the prior art, the data of obtaining in the file are to adopt the mode of poll to carry out, and whether the data that the mode of this poll needs program must periodically inquire about in each file change.If data do not change in the section sometime, poll still will remove inquiry file with certain cycle, can lose time like this and takies computer resource.Because last achievement is also broadcasted through the processing of computing machine and is seen to spectators, thus the achievement that requires to broadcast save the processing time, take less computer resource require real-time higher.
Summary of the invention
For addressing the above problem; The embodiment of the invention provides a kind of data capture method based on data monitoring; Function through the Windows api function that utilizes the Windows system to provide is concentrated is monitored file; Just data are handled when the file computer-chronograph that changes, saved memory source, improved data-handling efficiency.
For achieving the above object, the embodiment of the invention provides a kind of data capture method based on data monitoring, may further comprise the steps:
Step 101, watch-dog receive the subscribe request that user terminal sends in advance, and said subscribe request comprises folder name;
Step 102, the renewal situation of All Files folder in the real-time monitoring server of said watch-dog, when file upgraded, whether judgement had the file of renewal corresponding with folder name in the said subscribe request; If not, then do not deal with, if then get into step 103;
Step 103, said watch-dog sends update instruction and gives said user terminal, comprises the filename of renewal in the said update instruction;
Step 104, said user terminal obtains in the said server video/audio in the filename corresponding file with said renewal according to said update instruction;
Step 105, said user terminal broadcasts said video/audio.
Compared with prior art, embodiments of the invention have the following advantages:
Through step 101, watch-dog receives the subscribe request that user terminal sends in advance, and said subscribe request comprises folder name; Step 102, the renewal situation of All Files folder in the real-time monitoring server of watch-dog, when file upgraded, whether judgement had the file of renewal corresponding with folder name in the said subscribe request; If not, then do not deal with, if then get into step 103; Step 103, watch-dog sends update instruction and gives said user terminal, comprises the filename of renewal in the said update instruction; Step 104, said user terminal obtains in the said server video/audio in the filename corresponding file with said renewal according to said update instruction; Step 105, said user terminal broadcasts said video/audio, has realized just data being handled when the file computer-chronograph that changes, and has saved memory source, has improved data-handling efficiency.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the embodiment of the invention, a kind of process flow diagram of the data capture method based on data monitoring.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Embodiments of the invention provide a kind of data capture method based on data monitoring, like Fig. 1, specifically may further comprise the steps:
Step 101, watch-dog receive the subscribe request that user terminal sends in advance, and said subscribe request comprises folder name;
Wherein, folder name is the title of a plurality of different types of files.
User terminal has sent subscribe request to watch-dog, will provide signal to remind when monitoring client has monitored to user side when data file changes.Said watch-dog receives also preserves subscribe request, so that data file when changing, can judge whether the file of variation is the data file that user terminal needs, if not the data file that the user needs just need not handled data; If same file does not change, need not handle data yet.
Step 102, the renewal situation of All Files folder in the real-time monitoring server of watch-dog, when file upgraded, whether judgement had the file of renewal corresponding with folder name in the said subscribe request; If not, then do not deal with, if then get into step 103;
Whether said watch-dog utilizes has new file to be created in the file monitor function monitoring file that Windows provides or existing file is modified, if, said new file is saved in the said file, generate said update instruction simultaneously; If not, do not process.
The file that watch-dog is monitored in the file in real time is through the function that the Windows api function that the Windows system provides is concentrated file to be monitored.Windows api function collection be a cover each parts of being used for controlling Windows outward appearance and behavior one overlap predefined Windows function.Use these Windows functions to monitor file, when the incident of operations such as file is created, revises, deletion, function all can have corresponding reaction to incident.When the data in the file that new file is created or has created changed, the function of monitoring file will be carried out corresponding operation, also will the file that change be saved in the said file, generated update instruction simultaneously.
Data dictionary is meant that data item to data, data structure, data stream, data storage, processing logic, external entity etc. define and describe, and its objective is each element in the data process flow diagram is made detailed explanation.Data dictionary is that a kind of user can the accessed record file and the catalogue of application program source data.The active data dictionary is meant that its content can be by the automatic data updated dictionary of DBMS when file or application structure are made amendment.Passive data dictionary is meant must the manual data dictionary that upgrades its content when revising.And concrete in the embodiment of the invention what use is the active data dictionary; Just, data file can be saved to automatically in the data dictionary when changing; The data file that storage is broadcasted in the file, the data file of broadcast specifically comprises: new file that is created and the amended file of having created.
Step 103, watch-dog sends update instruction and gives said user terminal, comprises the filename of renewal in the said update instruction;
Step 104, said user terminal obtains in the said server video/audio in the filename corresponding file with said renewal according to said update instruction;
Step 105, said user terminal broadcasts said video/audio.
File described in the present embodiment in the file is the video/audio file.
The present invention has realized following beneficial effect: through step 101, watch-dog receives the subscribe request that user terminal sends in advance, and said subscribe request comprises folder name; Step 102, the renewal situation of All Files folder in the real-time monitoring server of watch-dog, when file upgraded, whether judgement had the file of renewal corresponding with folder name in the said subscribe request; If not, then do not deal with, if then get into step 103; Step 103, watch-dog sends update instruction and gives said user terminal, comprises the filename of renewal in the said update instruction; Step 104, said user terminal obtains in the said server video/audio in the filename corresponding file with said renewal according to said update instruction; Step 105, said user terminal broadcasts said video/audio, has realized just data being handled when the file computer-chronograph that changes, and has saved memory source, has improved data-handling efficiency.
Through the description of above embodiment, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium, comprises that some instructions are with so that a computer equipment (can be personal computer, server or the network equipment etc.) is carried out the described method of each embodiment of the present invention.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.

Claims (4)

1. the data capture method based on data monitoring is characterized in that, may further comprise the steps:
Step 101, watch-dog receive the subscribe request that user terminal sends in advance, and said subscribe request comprises folder name;
Step 102, the renewal situation of All Files folder in the real-time monitoring server of said watch-dog, when file upgraded, whether judgement had the file of renewal corresponding with folder name in the said subscribe request; If not, then do not deal with, if then get into step 103;
Step 103, said watch-dog sends update instruction and gives said user terminal, comprises the filename of renewal in the said update instruction;
Step 104, said user terminal obtains in the said server video/audio in the filename corresponding file with said renewal according to said update instruction;
Step 105, said user terminal broadcasts said video/audio.
2. method according to claim 1 is characterized in that the said folder name of step 101 is the title of a plurality of different types of files.
3. method according to claim 1 is characterized in that, the renewal situation of All Files folder specifically comprises in the real-time monitoring server of the said watch-dog of step 102:
Whether said watch-dog utilizes has new file to be created in the file monitor function monitoring file that Windows provides or existing file is modified, if, said new file is saved in the said file, generate said update instruction simultaneously; If not, do not process.
4. like the said method of claim 1-3, it is characterized in that the file in the said file is specially the video/audio file.
CN2012101772819A 2012-05-31 2012-05-31 Data acquisition method based on data monitoring Pending CN102799609A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101772819A CN102799609A (en) 2012-05-31 2012-05-31 Data acquisition method based on data monitoring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101772819A CN102799609A (en) 2012-05-31 2012-05-31 Data acquisition method based on data monitoring

Publications (1)

Publication Number Publication Date
CN102799609A true CN102799609A (en) 2012-11-28

Family

ID=47198719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101772819A Pending CN102799609A (en) 2012-05-31 2012-05-31 Data acquisition method based on data monitoring

Country Status (1)

Country Link
CN (1) CN102799609A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870477A (en) * 2012-12-12 2014-06-18 腾讯科技(深圳)有限公司 Clustering type file management method and device
CN107273433A (en) * 2017-05-22 2017-10-20 努比亚技术有限公司 A kind of file scanning method, equipment and computer-readable recording medium
CN107291729A (en) * 2016-03-31 2017-10-24 北京北方华创微电子装备有限公司 Data-updating method and system, semiconductor equipment
CN108292312A (en) * 2015-11-30 2018-07-17 国际商业机器公司 Subscription service for monitoring remote content variation
CN108924265A (en) * 2018-08-23 2018-11-30 河南思维轨道交通技术研究院有限公司 Data capture method, device and web page server
CN111856249A (en) * 2020-07-24 2020-10-30 安测半导体技术(江苏)有限公司 Chip test monitoring method, client and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070146475A1 (en) * 2003-11-19 2007-06-28 National Institute Of Information And Communications Technology, Independent Admin. Age Wireless communications system
CN101686249A (en) * 2008-09-27 2010-03-31 华为技术有限公司 Subscription method and system of recommended information and recommended service server
CN101754107A (en) * 2008-12-17 2010-06-23 北大方正集团有限公司 Method and system for real-time publishing and sharing files in mobile communication terminal
CN101938525A (en) * 2010-10-09 2011-01-05 安和创新科技(北京)有限公司 Subscribed/pushed cache mechanism based system and method for wireless enterprise application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070146475A1 (en) * 2003-11-19 2007-06-28 National Institute Of Information And Communications Technology, Independent Admin. Age Wireless communications system
CN101686249A (en) * 2008-09-27 2010-03-31 华为技术有限公司 Subscription method and system of recommended information and recommended service server
CN101754107A (en) * 2008-12-17 2010-06-23 北大方正集团有限公司 Method and system for real-time publishing and sharing files in mobile communication terminal
CN101938525A (en) * 2010-10-09 2011-01-05 安和创新科技(北京)有限公司 Subscribed/pushed cache mechanism based system and method for wireless enterprise application

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870477A (en) * 2012-12-12 2014-06-18 腾讯科技(深圳)有限公司 Clustering type file management method and device
CN103870477B (en) * 2012-12-12 2018-09-07 腾讯科技(深圳)有限公司 Gathering file management method and device
CN108292312A (en) * 2015-11-30 2018-07-17 国际商业机器公司 Subscription service for monitoring remote content variation
CN107291729A (en) * 2016-03-31 2017-10-24 北京北方华创微电子装备有限公司 Data-updating method and system, semiconductor equipment
CN107273433A (en) * 2017-05-22 2017-10-20 努比亚技术有限公司 A kind of file scanning method, equipment and computer-readable recording medium
CN108924265A (en) * 2018-08-23 2018-11-30 河南思维轨道交通技术研究院有限公司 Data capture method, device and web page server
CN111856249A (en) * 2020-07-24 2020-10-30 安测半导体技术(江苏)有限公司 Chip test monitoring method, client and system

Similar Documents

Publication Publication Date Title
US11941017B2 (en) Event driven extract, transform, load (ETL) processing
CN102799609A (en) Data acquisition method based on data monitoring
US9590880B2 (en) Dynamic collection analysis and reporting of telemetry data
CN102387169B (en) Delete method, system and delete server for distributed cache objects
CN103780700A (en) Application system and method for achieving compatibility and sharing among multi-source heterogeneous systems
CN102208991A (en) Blog processing method, device and system
CN103370917B (en) Message treatment method and server
DE202015009286U1 (en) Short lived applications
CN102831035A (en) Information backup method and device
CN104573611A (en) Distributed face recognition trunking system
CN103955405A (en) Application management method and device
CN103442271A (en) Classified program searching method used for TV (Television) box
CN101808102A (en) Operating record tracing system and method based on cloud computing
CN105471935A (en) Information prompting method and information prompting device
CN105718307A (en) Process management method and process management device
CN102508884A (en) Method and device for acquiring hotpot events and real-time comments
WO2017140154A1 (en) Method and system for security information management based on intelligent platform
US10311160B2 (en) Cloud search analytics
CN103179153A (en) Mobile terminal and mobile terminal data backup method based on cloud server
CN103677488A (en) Artificial intelligence user interface
CN201256399Y (en) Downloading platform, downloading terminal and downloading system
CN103530549A (en) Method and device for processing document/application program on mobile communication terminal
CN111177237A (en) Data processing system, method and device
CN103677882A (en) Virtual installation device and method of mobile phone program
CN108628702B (en) Memorandum method and device for chat records, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20121128