CN110377328A - A kind of data capture method, device, equipment and storage medium - Google Patents
A kind of data capture method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN110377328A CN110377328A CN201910636834.4A CN201910636834A CN110377328A CN 110377328 A CN110377328 A CN 110377328A CN 201910636834 A CN201910636834 A CN 201910636834A CN 110377328 A CN110377328 A CN 110377328A
- Authority
- CN
- China
- Prior art keywords
- interface
- static configuration
- configuration data
- version number
- data
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000013481 data capture Methods 0.000 title claims abstract description 23
- 230000003068 static effect Effects 0.000 claims abstract description 159
- 238000004590 computer program Methods 0.000 claims description 6
- 241001269238 Data Species 0.000 abstract 1
- 238000007726 management method Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000005291 magnetic effect Effects 0.000 description 5
- 238000012423 maintenance Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 101000804902 Drosophila melanogaster Xaa-Pro aminopeptidase ApepP Proteins 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention provides a kind of data capture methods, appliance arrangement and storage medium, when detecting data acquisition request of the application program to static configuration data, obtain interface name and the interface version number of the static configuration interface corresponding with static configuration data of application program, if interface name and interface version number are present in the interface list pre-established, only read the static configuration data cached in local cache, reduce the quantity of the static configuration interface between client and background service application, and then reduce the quantity of background service machine, if interface name or interface version number are not present in interface list, if in the server buffer in background service application, there are static configuration datas, static configuration data is then read from server buffer, if static configuration data is not present in server buffer, then Static configuration data is read from database storage module, improves static configuration data reading speed.
Description
Technical field
The present embodiments relate to the communication technologys more particularly to a kind of data capture method, device, equipment and storage to be situated between
Matter.
Background technique
Configuration data, be typically configured in client and for run on the application program of client provide running environment or
Service condition.Under normal conditions, configuration data may include commodity picture data, control property data etc..Application program is in reality
When existing concrete function, configuration data is often relied on.
With continuous variation of business demand, such as change, the upgrading of version of function of application etc., in client
Configuration data is often also required to update therewith.At this stage, common configuration data acquisition methods are clients directly by generation
Difference request (such as inquiry request, increase request or removal request) is sent to by request interface and is served by machine, from rear
Platform service-delivery machine transfers the corresponding configuration data of the request.But with the increase of number of requests, request interface is also with increasing
Add, thus needing to increase multiple background service machines enables client end AP P to get configuration data, with the sending of response application program
Different requests.
As it can be seen that in the prior art, if the number of requests of application program continues to increase, the quantity of background service machine
Can continue to increase just can make application program get corresponding configuration data, and the cost for causing background service machine to generate increases
Add.
Summary of the invention
The embodiment of the invention provides a kind of data capture method, device, equipment and storage mediums, apply journey increasing
When sequence number of requests, the background application machine of static configuration data is not increased, and then overall reduction background application machine generates
Cost.
In a first aspect, the embodiment of the invention provides a kind of data capture methods, wherein include:
When detecting data acquisition request of the application program to static configuration data, obtain the application program with institute
State interface name and the interface version number of the corresponding static configuration interface of static configuration data;
If the interface name and the interface version number are present in the interface list pre-established, local is read
The static configuration data cached in caching.
Further, further includes: when application program starts for the first time, pass through the interface configuration management mould of background service application
Block obtains interface name and the interface version number for configuring the static configuration interface of the static configuration data, by institute
It states interface name and interface version number correspondence is stored in the interface list.
Further, further includes: if the interface name or the interface version number are not present in the interface list,
The data acquisition request for carrying the interface version number is sent to background service application, and is answered from the background service
The static configuration data is obtained with middle.
It is further, described to obtain the static configuration data from background service application, comprising:
The static configuration data is read from the server buffer that the background service is applied.
Further, further includes: if the static configuration is not present in the server buffer of background service application
Data then read the static configuration data from the database storage module that the background service is applied.
Further, the static configuration number is read from the database storage module that the background service is applied described
According to later, further includes: the static configuration data read is stored in the local cache, and will be matched with the static state
It sets the corresponding interface name of data and interface version number updates into the interface list.
Further, further includes: when detecting that the application program is installed, by the described quiet of the application program
The interface name of state configuration interface and the interface version number are stored in background service application.
Second aspect, the embodiment of the invention also provides a kind of data acquisition facilities, wherein includes:
Interface name and interface version number obtain module, detect application program to the data of static configuration data for working as
When acquisition request, obtain the interface name of the static configuration interface corresponding with the static configuration data of the application program with
And interface version number;
Static configuration data read module is built in advance if be present in for the interface name and the interface version number
In vertical interface list, then the static configuration data cached in local cache is read.
The third aspect, the embodiment of the invention also provides a kind of data acquisition facilities, including memory, processor and storage
On a memory and the computer program that can run on a processor, wherein when the processor executes the computer program
Realize such as the described in any item data capture methods of first aspect.
Fourth aspect, the embodiment of the invention also provides a kind of storage mediums comprising computer executable instructions, wherein
The computer executable instructions realize such as the described in any item data acquisitions of first aspect when being executed by computer processor
Method.
The technical solution of the embodiment of the present invention, when detecting application program to the data acquisition request of static configuration data
When, interface name and the interface version number of the static configuration interface corresponding with static configuration data of application program are obtained, such as
Fruit interface name and interface version number are present in the interface list pre-established, do not need matching with static state by application program
It sets the corresponding static configuration interface of data and transfers the data acquisition request of static configuration data to being served by send from the background, only exist
The static configuration data that caching is read in local cache reduces the static configuration between client and background service application
The quantity of interface, and then the quantity of background service machine is reduced, substantially reduce the maintenance cost of background service machine.
Detailed description of the invention
Fig. 1 is a kind of flow diagram for data capture method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of data capture method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of module map of data capture method provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of structural schematic diagram of data capture method provided by Embodiment 2 of the present invention;
Fig. 5 is a kind of structural schematic diagram for data acquisition facility that the embodiment of the present invention three provides;
Fig. 6 is a kind of structural schematic diagram for data acquisition facility that the embodiment of the present invention four provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow diagram for data capture method that the embodiment of the present invention one provides, and the present embodiment is applicable
It is present in the interface list pre-established in interface name and interface version number, static configuration data is obtained from local cache
The case where, this method can be executed by data acquisition facility, and wherein the device can be implemented by software and/or hardware, and general
It integrates in the terminal.Referring specifically to shown in Fig. 1, this method be may include steps of:
S110, when detecting data acquisition request of the application program to static configuration data, obtain application program with
The interface name of the corresponding static configuration interface of static configuration data and interface version number.
Wherein, static configuration data is data relevant to application program, and can do long period caching.Wherein, it answers
It may be mounted in the clients such as mobile phone, tablet computer and smartwatch with program.
It is understood that the interface name of the corresponding static configuration interface of each application program is different, each interface name
Claim a corresponding interface version number.Illustratively, the interface name of wechat is A, and interface version number is 2, follows closely the interface name of nail
For B, interface version number is 1, thus, if client detects the data acquisition request of the static configuration data of wechat,
To obtain interface name A and the interface version number 2 of the static configuration interface of wechat, if client detects the static state of nail nail
The data acquisition request of configuration data can obtain interface name A and the interface version number of the static configuration interface of nail nail
2。
S120 is read local slow if interface name and interface version number are present in the interface list pre-established
Deposit middle cached static configuration data.
Wherein, interface list is present in client, and the interface name and interface version number that can be will acquire carry out pair
It should store.Wherein, local cache can be temporal cache region or other storage regions of client.
It optionally, can also include: to pass through the interface configuration management of background service application when application program starts for the first time
Module obtains interface name and the interface version number for configuring the static configuration interface of static configuration data, by interface
Title and interface version number correspondence are stored in interface list.
It is understood that for after installing, updating for the first time and install and upgrading after and install each application program,
As long as when detecting that application program is installed, by the interface name and interface version of the static configuration interface of application program
Number be stored in background service application, so as to application program initiate subsequent request transferred from background service application interface name with
And interface version number.
Wherein, the interface name of application program can be managed by interface configuration management module in a manner of version number.
When application program starts for the first time, application program is matched to transmission starting request, the interface of background service application is served by from the background
It sets management module and receives starting request, transferred from the memory module in background service application and download application program and is corresponding
Interface name and interface version number, and the corresponding interface name of application program and interface version number are returned into application program
Client so that the corresponding interface name of storage application program and interface version number in interface list in client, and
It is stored in client in local cache the corresponding static configuration data of application program, realization, which is worked as, detects application program to quiet
When the data acquisition request of state configuration data, if the interface name and interface version number that obtain are present in the interface pre-established
In list, then the static configuration data cached in local cache can be read directly.
The embodiment of the invention provides a kind of data capture method, when detecting application program to the number of static configuration data
When according to acquisition request, the interface name and interface of the static configuration interface corresponding with static configuration data of application program are obtained
Version number does not need to pass through application program if interface name and interface version number are present in the interface list pre-established
Static configuration interface corresponding with static configuration data transfer the data of static configuration data and obtain to being served by send from the background
Request is taken, the static configuration data of caching is only local read in caching, reduces client and background service using it
Between static configuration interface quantity, and then reduce background service machine quantity, substantially reduce the maintenance of background service machine
Cost.
Embodiment two
Fig. 2 is a kind of flow diagram of data capture method provided by Embodiment 2 of the present invention.The technology of the present embodiment
Scheme increases new step on the basis of the above embodiments, specifically, further include: if be not present in the interface list
The interface name or the interface version number, after the data acquisition request for carrying the interface version number is sent to
Platform is served by, and obtains the static configuration data from background service application.It is not detailed in this method embodiment
The part of description please refers to above-described embodiment.Referring specifically to shown in Fig. 2, this method be may include steps of:
S210, when detecting data acquisition request of the application program to static configuration data, obtain application program with
The interface name of the corresponding static configuration interface of static configuration data and interface version number.
Optionally, it when application program starts for the first time, is obtained and is used by the interface configuration management module that background service is applied
Interface name and interface version number in the static configuration interface of configuration static configuration data, by interface name and institute
Interface version number correspondence is stated to be stored in interface list.
S220 judges with the presence or absence of interface name or interface version number in interface list, if so, S230 is executed, if
It is no, execute S240.
In order to increase the function of application program, client needs continuous upgrading or more new application, application program
After upgrading or update every time, static configuration interface can all be modified, and interface name and interface version number is caused to change
Become.For example, the interface name before wechat upgrading is A, interface version number is 2, and the interface name after wechat upgrading is C, interface boards
This number upgrades to 4, just can guarantee wechat normal use in this way.Further, if application program occurs upgrading or updates, after
Platform, which is served by, to store the interface name of the static configuration interface of the application program after upgrading and interface version number,
Interface name and interface version number after not having storage to upgrade in client, only store the interface name and interface boards not updated
This number.
S230 reads the static configuration data cached in local cache.
The data acquisition request for carrying interface version number is sent to background service application by S240, and from background service
Static configuration data is obtained in.
Based on the above technical solution, if application program upgrades, due to upgrading in client without storage
Interface name and interface version number afterwards, thus need to obtain static configuration data from background service application.Optionally, from
The method that static configuration data is obtained in background service application may include: to read from the server buffer that background service is applied
Static configuration data.Further, further includes: if static configuration number is not present in the server buffer of background service application
According to, then from background service apply database storage module in read static configuration data.
Wherein, server buffer can cache for Redis, for caching a small amount of static configuration data, database purchase
Module can be database, for caching a large amount of static configuration data.Due to the storage of Redis be based on memory form with key
It is worth the database stored to form, read or write speed is very fast, thus, in order to improve the reading speed of static configuration data, Ke Yixian
Static configuration data is read from the server buffer that background service is applied, if there are the quiet of application program in server buffer
State configuration data then can quickly read static configuration data, and static configuration data is returned to client, if backstage
It needs to read static configuration number from database storage module there is no static configuration data in the server buffer being served by
Client is returned to according to and by static configuration data.
As shown in figure 3, client is connect with the interface configuration management module of background service application and memory module respectively, together
When, interface configuration management module is connect with the memory module that background service is applied, wherein client can be to interface configuration management
Module and memory module send the data acquisition request of static configuration data, and interface configuration management module and memory module can incite somebody to action
The corresponding static configuration data of data acquisition request is sent to client.
Above-mentioned technical proposal is specifically explained in conjunction with Fig. 4, when application program launching, client request interface configuration management
Module, interface configuration management module perceive application program launching, download interface title and interface version number, and connecing downloading
Mouth title and interface version number return to client and judge interface after client receives interface name and interface version number
Whether version number is consistent with the static configuration data in local cache, if unanimously, client directly acquires in local cache
Static configuration data, if inconsistent, interface version number is sent a request to memory module, memory module by client
It needs to judge with the presence or absence of static configuration data in server buffer, if it does, by the static configuration number in server buffer
According to client is returned to, client can get static configuration data, if it does not, memory module is needed from data inventory
Static configuration data is read in storage module, and the static configuration data in database storage module is returned into client, thus
Client is set to get static configuration data.
On the basis of above-mentioned each technical solution, optionally, in the database storage module applied from the background service
After middle reading static configuration data, further includes: the static configuration data read is stored in local cache, and will with it is quiet
The corresponding interface name of state configuration data and interface version number update into interface list.Pass through the above method, interface list
In can store upgrading after application program interface name and interface version number, so that the subsequently received data of client obtain
When taking request, static configuration data can be directly read from interface list.
The embodiment of the invention provides a kind of data capture method, when detecting application program to the number of static configuration data
When according to acquisition request, the interface name and interface of the static configuration interface corresponding with static configuration data of application program are obtained
Version number only reads institute in local cache if interface name and interface version number are present in the interface list pre-established
The static configuration data of caching, reduces the quantity of the static configuration interface between client and background service application, and then subtracts
The quantity of few background service machine will carry interface boards if interface name or interface version number are not present in interface list
This number data acquisition request is sent to background service application, if there is static state in the server buffer in background service application
Configuration data only reads the static configuration data in server buffer, if static configuration data is not present in server buffer,
Static configuration data is then read from database storage module, improves static configuration data reading speed.
Embodiment three
Fig. 5 is a kind of structural schematic diagram for data acquisition facility that the embodiment of the present invention three provides.It is shown in Figure 5, it should
Device includes: that interface name and interface version number obtain module 51 and static configuration data read module 52.
Wherein, interface name and interface version number obtain module 51, detect application program to static configuration number for working as
According to data acquisition request when, obtain the interface name of the static configuration interface corresponding with static configuration data of application program with
And interface version number;Static configuration data read module 52 is built in advance if be present in for interface name and interface version number
In vertical interface list, then the static configuration data cached in local cache is read.
On the basis of above-mentioned each technical solution, interface name and interface version number obtain module 51, are also used to applying
When program starts for the first time, the interface configuration management module applied by background service is obtained for configuring the quiet of static configuration data
State configures interface name and the interface version number of interface, and interface name and interface version number correspondence are stored in interface list
In.
On the basis of above-mentioned each technical solution, static configuration data read module 52, if be also used in interface list
There is no interface name or interface version numbers, and the data acquisition request for carrying interface version number is sent to background service and is answered
With, and static configuration data is obtained from background service application.
On the basis of above-mentioned each technical solution, static configuration data read module 52 is also used to from background service application
Server buffer in read static configuration data.
On the basis of above-mentioned each technical solution, static configuration data read module 52 is answered if being also used to background service
Static configuration data is not present in server buffer, then is read from the database storage module that background service is applied static
Configuration data.
On the basis of above-mentioned each technical solution, further includes: the first memory module;Wherein, the first memory module, being used for will
The static configuration data read is stored in local cache, and will interface name corresponding with static configuration data and interface
Version number updates into interface list.
On the basis of above-mentioned each technical solution, further includes: the second memory module;Wherein, the second memory module, for working as
When detecting that application program is installed, the interface name of the static configuration interface of application program and interface version number are stored
In background service application.
The embodiment of the invention provides a kind of data acquisition facility, when detecting application program to the number of static configuration data
When according to acquisition request, the interface name and interface of the static configuration interface corresponding with static configuration data of application program are obtained
Version number only reads institute in local cache if interface name and interface version number are present in the interface list pre-established
The static configuration data of caching, reduces the quantity of the static configuration interface between client and background service application, and then subtracts
The quantity of few background service machine, substantially reduces the maintenance cost of background service machine.
Example IV
Fig. 6 is a kind of structural schematic diagram for data acquisition facility that the embodiment of the present invention four provides.Fig. 6, which is shown, to be suitable for using
Come realize embodiment of the present invention data acquisition facility 12 block diagram.The data acquisition facility 12 that Fig. 6 is shown is only one
Example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in fig. 6, data acquisition facility 12 is showed in the form of universal computing device.The component of data acquisition facility 12
Can include but is not limited to: one or more processor or processing unit 16, system storage 28 connect not homologous ray group
The bus 18 of part (including system storage 28 and processing unit 16).
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts
For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Data acquisition facility 12 typically comprises a variety of computer system readable media.These media can be it is any can
The usable medium accessed by data acquisition facility 12, including volatile and non-volatile media, it is moveable and immovable
Medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (RAM) 30 and/or cache memory 32.Data acquisition facility 12 may further include it is other it is removable/no
Movably, volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing
Immovable, non-volatile magnetic media (Fig. 6 do not show, commonly referred to as " hard disk drive ").It, can although being not shown in Fig. 6
To provide the disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk "), and it is non-volatile to moving
Property CD (such as CD-ROM, DVD-ROM or other optical mediums) read and write CD drive.In these cases, each drive
Dynamic device can be connected by one or more data media interfaces with bus 18.Memory 28 may include at least one program
Product, the program product have one group (such as data acquisition facility interface name and interface version number obtain module 51, static
Configuration data read module 52) program module, these program modules are configured to perform the function of various embodiments of the present invention.
With one group (such as data acquisition facility interface name and interface version number obtain module 51 and static configuration number
According to read module 52) program/utility 44 of program module 46, it can store in such as memory 28, such program
Module 46 including but not limited to operating system, one or more application program, other program modules and program data, these
It may include the realization of network environment in each of example or certain combination.Program module 46 usually executes the present invention and is retouched
The function and/or method in embodiment stated.
Data acquisition facility 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24
Deng) communication, the equipment interacted with the data acquisition facility 12 can be also enabled a user to one or more to be communicated, and/or with
Any equipment that the data acquisition facility 12 is communicated with one or more of the other calculating equipment (adjust by such as network interface card
Modulator-demodulator etc.) communication.This communication can be carried out by input/output (I/O) interface 22.Also, data acquisition facility
12 can also pass through network adapter 20 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public affairs
Common network network, such as internet) communication.As shown, network adapter 20 passes through the other of bus 18 and data acquisition facility 12
Module communication.It should be understood that although not shown in the drawings, can obtain equipment 12 with combined data uses other hardware and/or software
Module, including but not limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, magnetic
Tape drive and data backup storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and
Data processing, such as realize a kind of data capture method provided by the embodiment of the present invention, this method comprises:
When detecting data acquisition request of the application program to static configuration data, matching with static state for application program is obtained
Set interface name and the interface version number of the corresponding static configuration interface of data;
If interface name and interface version number are present in the interface list pre-established, institute in local cache is read
The static configuration data of caching.
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and
Data processing, such as realize a kind of data capture method provided by the embodiment of the present invention.
Certainly, it will be understood by those skilled in the art that processor can also realize it is provided by any embodiment of the invention
A kind of technical solution of data capture method.
Embodiment six
The embodiment of the present invention five additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should
A kind of data capture method as provided by the embodiment of the present invention is realized when program is executed by processor, this method comprises:
When detecting data acquisition request of the application program to static configuration data, matching with static state for application program is obtained
Set interface name and the interface version number of the corresponding static configuration interface of data;
If interface name and interface version number are present in the interface list pre-established, institute in local cache is read
The static configuration data of caching.
Certainly, a kind of computer readable storage medium provided by the embodiment of the present invention, the computer program stored thereon
It is not limited to method operation as above, the phase in a kind of data capture method provided by any embodiment of the invention can also be performed
Close operation.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media
Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable
Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, system or
Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool
There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires
(ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-
ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage
Medium can be any tangible medium for including or store program, which can be commanded execution system, system or device
Using or it is in connection.
Computer-readable signal media may include in data acquisition request, interface name and interface version number etc.,
Wherein carry computer-readable program code.Data acquisition request, interface name and the interface version number of this propagation
Etc. forms.Computer-readable signal media can also be any computer-readable Jie other than computer readable storage medium
Matter, the computer-readable medium can send, propagate or transmit for by instruction execution system, system or device use or
Person's program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof
Program code, programming language include object oriented program language-such as Java, Smalltalk, C++, are also wrapped
Include conventional procedural programming language-such as " C " language or similar programming language.Program code can be complete
Ground executes on the user computer, partly executes on the user computer, executing as an independent software package, partially existing
Part executes on the remote computer or executes on a remote computer or server completely on subscriber computer.It is being related to
In the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or wide area
Net (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as utilize ISP
To be connected by internet).
It is worth noting that, included modules are only according to function in the embodiment of above-mentioned data acquisition facility
What logic was divided, but be not limited to the above division, as long as corresponding functions can be realized;In addition, each function
The specific name of unit is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (10)
1. a kind of data capture method characterized by comprising
When detecting data acquisition request of the application program to static configuration data, obtain the application program with it is described quiet
The interface name of the corresponding static configuration interface of state configuration data and interface version number;
If the interface name and the interface version number are present in the interface list pre-established, local cache is read
Middle the cached static configuration data.
2. the method according to claim 1, wherein further include:
When application program starts for the first time, obtained by the interface configuration management module that background service is applied described quiet for configuring
The interface name of the static configuration interface of state configuration data and interface version number by the interface name and described connect
Mouth version number correspondence is stored in the interface list.
3. the method according to claim 1, wherein further include:
If the interface name or the interface version number are not present in the interface list, the interface version will be carried
Number the data acquisition request be sent to background service application, and obtain the static configuration from background service application
Data.
4. according to the method described in claim 3, it is characterized in that, described obtain the static state from background service application
Configuration data, comprising:
The static configuration data is read from the server buffer that the background service is applied.
5. according to the method described in claim 4, it is characterized by further comprising:
If the static configuration data is not present in the server buffer of the background service application, from the background service
The static configuration data is read in the database storage module of application.
6. according to the method described in claim 5, it is characterized in that, in the database purchase applied from the background service
After reading the static configuration data in module, further includes:
The static configuration data read is stored in the local cache, and will be corresponding with the static configuration data
Interface name and interface version number update into the interface list.
7. the method according to claim 1, wherein further include:
When detecting that the application program is installed, by the interface of the static configuration interface of the application program
Title and the interface version number are stored in background service application.
8. a kind of data acquisition facility characterized by comprising
Interface name and interface version number obtain module, detect application program to the data acquisition of static configuration data for working as
When request, obtains the interface name of the static configuration interface corresponding with the static configuration data of the application program and connect
Mouth version number;
Static configuration data read module pre-establishes if be present in for the interface name and the interface version number
In interface list, then the static configuration data cached in the local cache is read.
9. a kind of data acquisition facility, can run on a memory and on a processor including memory, processor and storage
Computer program, which is characterized in that the processor is realized when executing the computer program such as any one of claim 1-7
The data capture method.
10. a kind of storage medium comprising computer executable instructions, which is characterized in that the computer executable instructions by
Such as data capture method of any of claims 1-7 is realized when computer processor executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910636834.4A CN110377328A (en) | 2019-07-15 | 2019-07-15 | A kind of data capture method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910636834.4A CN110377328A (en) | 2019-07-15 | 2019-07-15 | A kind of data capture method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110377328A true CN110377328A (en) | 2019-10-25 |
Family
ID=68253237
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910636834.4A Pending CN110377328A (en) | 2019-07-15 | 2019-07-15 | A kind of data capture method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110377328A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111611581A (en) * | 2020-05-14 | 2020-09-01 | 陈洋洋 | Internet of things-based network big data information anti-disclosure method and cloud communication server |
CN112965758A (en) * | 2021-03-03 | 2021-06-15 | 北京百度网讯科技有限公司 | Interface data determination method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170090910A1 (en) * | 2015-09-29 | 2017-03-30 | International Business Machines Corporation | Mobile device application installation with performance enhancement |
CN107547629A (en) * | 2017-07-20 | 2018-01-05 | 北京京东尚科信息技术有限公司 | Method, apparatus, electronic equipment and the computer-readable recording medium that client static resource is downloaded |
CN107612982A (en) * | 2017-08-31 | 2018-01-19 | 武汉斗鱼网络科技有限公司 | A kind of method, storage medium, equipment and system for reducing function pages request number of times |
CN109936476A (en) * | 2019-02-26 | 2019-06-25 | 珠海天燕科技有限公司 | A kind of call method of configuration data, device and its equipment |
-
2019
- 2019-07-15 CN CN201910636834.4A patent/CN110377328A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170090910A1 (en) * | 2015-09-29 | 2017-03-30 | International Business Machines Corporation | Mobile device application installation with performance enhancement |
CN107547629A (en) * | 2017-07-20 | 2018-01-05 | 北京京东尚科信息技术有限公司 | Method, apparatus, electronic equipment and the computer-readable recording medium that client static resource is downloaded |
CN107612982A (en) * | 2017-08-31 | 2018-01-19 | 武汉斗鱼网络科技有限公司 | A kind of method, storage medium, equipment and system for reducing function pages request number of times |
CN109936476A (en) * | 2019-02-26 | 2019-06-25 | 珠海天燕科技有限公司 | A kind of call method of configuration data, device and its equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111611581A (en) * | 2020-05-14 | 2020-09-01 | 陈洋洋 | Internet of things-based network big data information anti-disclosure method and cloud communication server |
CN111611581B (en) * | 2020-05-14 | 2021-01-26 | 深圳万物安全科技有限公司 | Internet of things-based network big data information anti-disclosure method and cloud communication server |
CN112965758A (en) * | 2021-03-03 | 2021-06-15 | 北京百度网讯科技有限公司 | Interface data determination method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1499395B (en) | Service appts. integration | |
CN104252363B (en) | The quick start method of onboard system based on android system | |
CN110825479A (en) | Page processing method and device, terminal equipment, server and storage medium | |
JP2000289583A (en) | Method and system for executing vehicle diagnosis | |
CN110389936A (en) | A kind of method, equipment and computer storage medium starting small routine | |
CN107066305A (en) | Method and apparatus and server for the server firmware that updates server | |
CN110489440B (en) | Data query method and device | |
CN110389935A (en) | A kind of method, equipment and computer storage medium starting small routine | |
CN110209416A (en) | Application software update method, device, terminal and storage medium | |
CN114124917B (en) | Remote upgrading method, equipment, system and medium for ground locking piece | |
CN106325879A (en) | Method and device for installing driver and electronic equipment | |
CN104765621A (en) | Method and system for deploying program on cluster node | |
CN110442402A (en) | Data processing method, device, equipment and storage medium | |
CN111818145B (en) | File transmission method, device, system, equipment and storage medium | |
US20190129743A1 (en) | Method and apparatus for managing virtual machine | |
CN102420873A (en) | Compound network brand new cloud application platform | |
CN110377328A (en) | A kind of data capture method, device, equipment and storage medium | |
CN105872842A (en) | Multi-desktop independent upgrade method and device | |
CN109150956A (en) | A kind of implementation method, device, equipment and computer storage medium pushing SDK | |
CN110221840A (en) | The function realizing method and device of application program, equipment and storage medium | |
CN104517067A (en) | Method, device and system for data access | |
US20130305237A1 (en) | Grandfathering Configurations in a Distributed Environment | |
CN104917800A (en) | Method and device for establishing redundancy connection for virtual machine | |
CN112084254A (en) | Data synchronization method and system | |
CN107357853B (en) | Method and device for operating REDIS console and computer 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191025 |
|
RJ01 | Rejection of invention patent application after publication |