CN103440302B - The method and system of Real Data Exchangs - Google Patents
The method and system of Real Data Exchangs Download PDFInfo
- Publication number
- CN103440302B CN103440302B CN201310368552.3A CN201310368552A CN103440302B CN 103440302 B CN103440302 B CN 103440302B CN 201310368552 A CN201310368552 A CN 201310368552A CN 103440302 B CN103440302 B CN 103440302B
- Authority
- CN
- China
- Prior art keywords
- real time
- time data
- buffer memory
- storehouse
- real
- 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.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A kind of method and system of Real Data Exchangs, by the real time data buffer memory storehouse of real time data in one real time data source of at least buffer memory of pre-building, the real time data at least one real time data source is cached, again through analyzing the Query Information receiving client, finally the real time data information matched with described Query Information is found to feed back to client in described real time data buffer memory storehouse, fast data exchange service between heterogeneous system can be provided, the Query Information of mistake can also be carried out error message feedback, the high speed of real time data is provided, concurrent query function, achieve efficiently, open Real-time Data Service.
Description
Technical field
The present invention relates to Data Control field, particularly relate to the method and system of a kind of Real Data Exchangs.
Background technology
In the field such as electric power, Industry Control, the requirement of real-time gathering data is very high, it is generally second level even Millisecond, how these part data being released in time in general form is this field major issue of being badly in need of solving.
There is multiple implementation at present, but the mode being mostly based on privately owned interface carries out data acquisition and cannot be completely open, Data Integration in multiple real time data sources can not be carried out integrated use together, exchange either directly through the data in each real time data source of real-time performance, when multiple clients carry out data access, often overweight resource is caused to bear to network, it is impossible to enough data integration issues processed flexibly between each system of enterprise.
Summary of the invention
Based on this, it is necessary to for the problem that real time data in multiple clients and multiple real time data source can not carry out data exchange flexibly, it is provided that the method and system of a kind of Real Data Exchangs.
A kind of method of Real Data Exchangs, including step:
Receive client query information;
Described client query information is mated with the real time data in the real time data buffer memory storehouse pre-build, real time data at least one real time data source of buffer memory, described real time data buffer memory storehouse;
If coupling obtains the real time data corresponding with described client query information, then described real time data being fed back to client, if mating described client query information mistake occur, then feedback error information is to client.
The system of a kind of Real Data Exchangs, including access interface unit, Query Information matching unit, real time data buffer memory storehouse and information feedback processing unit;
Described access interface unit is used for receiving client query information;
Described Query Information matching unit is used for mating described client query information with the real time data in the real time data buffer memory storehouse pre-build, real time data at least one real time data source of buffer memory, described real time data buffer memory storehouse;
If described information feedback processing unit obtains the real time data corresponding with described client query information for coupling, then described real time data being fed back to client, if mating described client query information mistake occur, then feedback error information is to client.
The method and system of above-mentioned Real Data Exchangs, by receiving client query information, will mate with real time data in the real time data buffer memory storehouse of real time data in one real time data source of at least buffer memory pre-build in client query information, if coupling obtains the real time data corresponding with described client query information, then described real time data being fed back to client, if mating described client query information mistake occur, then feedback error information is to client. by the real time data buffer memory storehouse of real time data in one real time data source of at least buffer memory of pre-building, the real time data at least one real time data source is cached, again through analyzing the Query Information receiving client, finally the real time data information matched with described Query Information is found to feed back to client in described real time data buffer memory storehouse, fast data exchange service between heterogeneous system can be provided, the Query Information of mistake can also be carried out error message feedback, the high speed of real time data is provided, concurrent query function, achieve efficiently, open Real-time Data Service.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of one of them embodiment of method of Real Data Exchangs;
Fig. 2 is the module connection figure of one of them embodiment of system of Real Data Exchangs.
Detailed description of the invention
As it is shown in figure 1, a kind of method of Real Data Exchangs, including step:
Step S110, receives client query information; In the present embodiment, system can receive the Query Information that the client of each system sends over, can be integrated by the Query Information that each system client is sended over by unified access interface, and the Query Information according to each client inquires about corresponding real time data information.
Step S120, mates described client query information with the real time data in the real time data buffer memory storehouse pre-build, real time data at least one real time data source of buffer memory, described real time data buffer memory storehouse; In the present embodiment, a real time data buffer memory storehouse can be pre-build, described real time data buffer memory storehouse can real time data in the real time data source of at least one system of buffer memory, system receives client query information and Query Information is analyzed, and selects the real time data information corresponding with described Query Information.
Step S130, if coupling obtains the real time data corresponding with described client query information, then feeds back to client by described real time data, if mating described client query information mistake occur, then feedback error information is to client. In the present embodiment, the real time data information with described client query information match is fed back to the client sending out described Query Information by system, it is possible to be simultaneous for the different Query Informations corresponding real time data information of feedback that multiple client sends. System can also when there is mistake in the Query Information that described client sends, immediate feedback error message, to client, reminds user's Query Information mistake occur, in order to input correct Query Information, effectively avoid the time unnecessary in query script to waste, improve search efficiency.
In the present embodiment, it is possible to according to cached configuration information creating real time data buffer memory storehouse, described cached configuration information includes treating cache table, cache attribute, record number etc. Further the real time data of system focus is cached to real time data buffer memory storehouse, the information of buffer memory can include the main coding of object as data cached index. User can insert inquiry noun, one or more main coding or querying condition etc. composition Query Information by client, connects described real time data buffer memory library inquiry data by Web service backstage, and returns in result.Service interface in the present embodiment is for can set that as GetData, and inquiry noun can pre-define, and consistent with the buffer memory table name in high-speed cache or have one-to-one relationship, it is simple to required real time data is carried out quick search by client by user. In the middle of the formula of a specific embodiment describes, in this programme, service interface is described in detail as follows:
Service interface definition:
Input data definition:
Inquiry nominal definition
User profile defines
Query object defines
Querying attributes defines
Conditional definition is inquired about
Output parameter defines
Inquiry record number definition
Object data defines
In output parameter definition, query name is identical with input with user profile.
Abnormal information defines
ReplyCode | Non-conformance description |
201 | " verb " is wrong |
202 | " noun " is wrong |
203 | " main coding " is wrong |
204 | " condition " is wrong |
205 | " attribute " is wrong |
206 | " object data " quantity is too much |
207 | Server internal is abnormal |
208 | " user profile " is wrong |
The complete example of sing on web service:
Request data format:
Response data format:
The method of above-mentioned Real Data Exchangs, by receiving client query information, will mate with real time data in the real time data buffer memory storehouse of real time data in one real time data source of at least buffer memory pre-build in client query information, if coupling obtains the real time data corresponding with described client query information, then described real time data being fed back to client, if mating described client query information mistake occur, then feedback error information is to client. by the real time data buffer memory storehouse of real time data in one real time data source of at least buffer memory of pre-building, the real time data at least one real time data source is cached, again through analyzing the Query Information receiving client, finally the real time data information matched with described Query Information is found to feed back to client in described real time data buffer memory storehouse, fast data exchange service between heterogeneous system can be provided, the Query Information of mistake can also be carried out error message feedback, the high speed of real time data is provided, concurrent query function, achieve efficiently, open Real-time Data Service.
Wherein in an embodiment, the method for described Real Data Exchangs, pre-build that at least one real time data source of buffer memory, the described real time data buffer memory storehouse of real time data specifically includes step:
Set up shared drive storehouse according to predetermined cached configuration table and buffer memory attribute configuration table, the main coding field of described predetermined cached configuration table and described cache attribute allocation list is created index; In the present embodiment, wherein data can be determined by system and revise by described cached configuration table and described cache attribute allocation list, user's needing as the case may be pre-determines cached configuration table and buffer memory attribute configuration table, create shared drive storehouse further, and the main coding field of described predetermined cached configuration table and described cache attribute allocation list is created index, it is simple to system carries out data query.
The real time data that at least one real time data source is issued is buffered into described shared drive storehouse and obtains real time data buffer memory storehouse. In the present embodiment, it is possible to the real time data buffer memory will issued at least one real time data source to described shared drive storehouse obtains real time data buffer memory storehouse.
In order to make it easy to understand, illustrate in conjunction with specific embodiment. Described cached configuration table can include following field:
Title | Record number |
Plant stand | 100000 |
Transformator | 1000000 |
Described cache attribute allocation list can include following field:
The table being buffered must configure main coding field in cache attribute table.The high-speed cache content creating shared drive storehouse according to these two table configurations, and reading data are stored in wherein from data source, cache maintenance program subsequently carries out real-time change data renewal. The main coding field of every cache table is created index by high-speed cache, accelerates inquiry velocity.
Wherein in an embodiment, the method for described Real Data Exchangs, further comprise the steps of: by described real time data buffer memory storehouse being updated to real time data source subscription delta data in real time. In the present embodiment, can by described real time data buffer memory storehouse being updated to real time data source subscription delta data in real time, when the data in real time data source change, it is possible to timely real time data buffer memory storehouse is updated, valid data are provided immediately.
Wherein in an embodiment, the method for described Real Data Exchangs, described by subscribing to the step that described real time data buffer memory storehouse is updated by delta data in real time to real time data source, specifically include step:
When in real time data source, object occurs to increase or delete, correspondence increases or deletes the object in described cached configuration table and buffer memory attribute configuration table;
Described real time data buffer memory storehouse is updated according to described cached configuration table and buffer memory attribute configuration table.
In the present embodiment, after object increase occurs or deletes in data source, maintenance program cache maintenance is carried out. By contrasting the change of main coding, after the object that described cached configuration table and buffer memory attribute configuration table newly increase is appended to cache table, deleted object is deleted in cache table. By definition " maintenance release number " in the buffer, after buffer memory is safeguarded every time, " maintenance release number " of buffer memory can be revised accordingly.
High-speed cache provides the data-query interfaces based on main coding to Web service. In order to further speed up inquiry, also providing for the quick real time data query interface according to main coding Position Number with version number, the client for regularly inquiring about fixing main coding provides traversal. When the version of buffer memory changes, return the inconsistent mistake of user side version information, allow its re invocation interface polls main coding number, or by the interface polls based on main coding.
Wherein in an embodiment, the method for described Real Data Exchangs, described Query Information includes query name word information, querying attributes information, querying condition information and main coded information. In the present embodiment, in actual query script, the noun input of mistake can cause that system returns mistake. User is in query script, main coding and condition can be specified to need one of which or two carry out, and described main coding and condition are configured, as being all not provided with then representing that all objects of noun are specified in inquiry, if the main coding of request or condition exist mistake, return mistake. If being not provided with attribute, then return all available attributes.
As in figure 2 it is shown, wherein in an embodiment, the system of a kind of Real Data Exchangs, including access interface unit 110, Query Information matching unit 120, real time data buffer memory storehouse 130 and information feedback processing unit 140;
Described access interface unit 110 is used for receiving client query information;
Described Query Information matching unit 120 is used for mating described client query information with the real time data in the real time data buffer memory storehouse pre-build, real time data at least one real time data source of buffer memory, described real time data buffer memory storehouse 130;
If described information feedback processing unit 140 obtains the real time data corresponding with described client query information for coupling, then described real time data being fed back to client, if mating described client query information mistake occur, then feedback error information is to client.
The system of above-mentioned Real Data Exchangs, by receiving client query information, will mate with real time data in the real time data buffer memory storehouse of real time data in one real time data source of at least buffer memory pre-build in client query information, if coupling obtains the real time data corresponding with described client query information, then described real time data being fed back to client, if mating described client query information mistake occur, then feedback error information is to client. by the real time data buffer memory storehouse of real time data in one real time data source of at least buffer memory of pre-building, the real time data at least one real time data source is cached, again through analyzing the Query Information receiving client, finally the real time data information matched with described Query Information is found to feed back to client in described real time data buffer memory storehouse, fast data exchange service between heterogeneous system can be provided, the Query Information of mistake can also be carried out error message feedback, the high speed of real time data is provided, concurrent query function, achieve efficiently, open Real-time Data Service.
Wherein in an embodiment, the system of described Real Data Exchangs, also includes memory bank processing unit and data lead memory cell;
The main coding field of described predetermined cached configuration table and described cache attribute allocation list, for setting up shared drive storehouse according to predetermined cached configuration table and buffer memory attribute configuration table, is created index by described memory bank processing unit;
Described data are led memory cell and are obtained real time data buffer memory storehouse for the real time data that at least one real time data source is issued is buffered into described shared drive storehouse.
Wherein in an embodiment, the system of described Real Data Exchangs, also include real time data buffer memory storehouse updating block;
Described real time data buffer memory storehouse updating block is for by being updated to real time data source subscription delta data described real time data buffer memory storehouse in real time.
Wherein in an embodiment, the system of described Real Data Exchangs, described real time data buffer memory storehouse updating block includes data objects processing unit and sets up updating block;
Described data objects processing unit is for when in real time data source, object occurs to increase or delete, and correspondence increases or deletes the object in described cached configuration table and buffer memory attribute configuration table;
Described updating block of setting up is for updating described real time data buffer memory storehouse according to described cached configuration table and buffer memory attribute configuration table.
Wherein in an embodiment, the system of described Real Data Exchangs, described access interface unit includes query name word information access interface, querying attributes message reference interface, querying condition message reference interface and main coded information access interface.
Owing to other portion of techniques features of system of described Real Data Exchangs are same as mentioned above, do not repeat them here.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention. It should be pointed out that, for the person of ordinary skill of the art, without departing from the inventive concept of the premise, it is also possible to making some deformation and improvement, these broadly fall into protection scope of the present invention. Therefore, the protection domain of patent of the present invention should be as the criterion with claims.
Claims (8)
1. the method for a Real Data Exchangs, it is characterised in that include step:
Receive client query information;
Described client query information is mated with the real time data in the real time data buffer memory storehouse pre-build, real time data at least one real time data source of buffer memory, described real time data buffer memory storehouse;
If coupling obtains the real time data corresponding with described client query information, then described real time data being fed back to client, if mating described client query information mistake occur, then feedback error information is to client;
Pre-build that at least one real time data source of buffer memory, the described real time data buffer memory storehouse of real time data specifically includes step:
Set up shared drive storehouse according to predetermined cached configuration table and buffer memory attribute configuration table, the main coding field of described predetermined cached configuration table and described cache attribute allocation list is created index;
The real time data that at least one real time data source is issued is buffered into described shared drive storehouse and obtains real time data buffer memory storehouse.
2. the method for Real Data Exchangs according to claim 1, it is characterised in that further comprise the steps of: by described real time data buffer memory storehouse being updated to real time data source subscription delta data in real time.
3. the method for Real Data Exchangs according to claim 2, it is characterised in that described by subscribing to the step that described real time data buffer memory storehouse is updated by delta data in real time to real time data source, specifically includes step:
When in real time data source, object occurs to increase or delete, correspondence increases or deletes the object in described cached configuration table and buffer memory attribute configuration table;
Described real time data buffer memory storehouse is updated according to described cached configuration table and buffer memory attribute configuration table.
4. the method for Real Data Exchangs according to claim 1, it is characterised in that described Query Information includes query name word information, querying attributes information, querying condition information and main coded information.
5. the system of a Real Data Exchangs, it is characterised in that include access interface unit, Query Information matching unit, real time data buffer memory storehouse and information feedback processing unit;
Described access interface unit is used for receiving client query information;
Described Query Information matching unit is used for mating described client query information with the real time data in the real time data buffer memory storehouse pre-build, real time data at least one real time data source of buffer memory, described real time data buffer memory storehouse;
If described information feedback processing unit obtains the real time data corresponding with described client query information for described Query Information matching unit coupling, then described real time data is fed back to client, if described Query Information matching unit mates described client query information mistake occurs, then feedback error information is to client;
The system of described Real Data Exchangs also includes memory bank processing unit and data lead memory cell;
The main coding field of described predetermined cached configuration table and described cache attribute allocation list, for setting up shared drive storehouse according to predetermined cached configuration table and buffer memory attribute configuration table, is created index by described memory bank processing unit;
Described data are led memory cell and are obtained real time data buffer memory storehouse for the real time data that at least one real time data source is issued is buffered into described shared drive storehouse.
6. the system of Real Data Exchangs according to claim 5, it is characterised in that also include real time data buffer memory storehouse updating block;
Described real time data buffer memory storehouse updating block is for by being updated to real time data source subscription delta data described real time data buffer memory storehouse in real time.
7. the system of Real Data Exchangs according to claim 6, it is characterised in that described real time data buffer memory storehouse updating block includes data objects processing unit and sets up updating block;
Described data objects processing unit is for when in real time data source, object occurs to increase or delete, and correspondence increases or deletes the object in described cached configuration table and buffer memory attribute configuration table;
Described updating block of setting up is for updating described real time data buffer memory storehouse according to described cached configuration table and buffer memory attribute configuration table.
8. the system of Real Data Exchangs according to claim 5, it is characterised in that described access interface unit includes query name word information access interface, querying attributes message reference interface, querying condition message reference interface and main coded information access interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310368552.3A CN103440302B (en) | 2013-08-21 | 2013-08-21 | The method and system of Real Data Exchangs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310368552.3A CN103440302B (en) | 2013-08-21 | 2013-08-21 | The method and system of Real Data Exchangs |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103440302A CN103440302A (en) | 2013-12-11 |
CN103440302B true CN103440302B (en) | 2016-06-08 |
Family
ID=49693994
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310368552.3A Active CN103440302B (en) | 2013-08-21 | 2013-08-21 | The method and system of Real Data Exchangs |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103440302B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105868203A (en) * | 2015-01-21 | 2016-08-17 | 上海可鲁系统软件有限公司 | Industrial internet-of-things distributed data access method and database system |
CN106446279B (en) * | 2016-10-31 | 2019-09-27 | 南京南瑞继保电气有限公司 | Concurrent data analysis method based on Analysis Service pond and dynamic virtual data set |
CN107016025A (en) * | 2016-11-17 | 2017-08-04 | 阿里巴巴集团控股有限公司 | A kind of method for building up and device of non-relational database index |
CN108681588A (en) * | 2018-05-14 | 2018-10-19 | 北京明朝万达科技股份有限公司 | A kind of interface accesses real-time statistical method and system |
WO2020010492A1 (en) | 2018-07-09 | 2020-01-16 | 大族激光科技产业集团股份有限公司 | Data processing method for numerical control system, computer device, and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101989939A (en) * | 2009-07-31 | 2011-03-23 | 同方威视技术股份有限公司 | Real-time data providing method, server and network |
CN102436510A (en) * | 2011-12-30 | 2012-05-02 | 浙江乐得网络科技有限公司 | Method and system for improving online real-time search quality through offline query |
CN102523309A (en) * | 2009-07-31 | 2012-06-27 | 同方威视技术股份有限公司 | Method and equipment for responding request of client side and acquiring and returning real-time data |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
BE1013637A6 (en) * | 2000-08-07 | 2002-05-07 | Smet Francis De | Method for searching for information on the Internet |
-
2013
- 2013-08-21 CN CN201310368552.3A patent/CN103440302B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101989939A (en) * | 2009-07-31 | 2011-03-23 | 同方威视技术股份有限公司 | Real-time data providing method, server and network |
CN102523309A (en) * | 2009-07-31 | 2012-06-27 | 同方威视技术股份有限公司 | Method and equipment for responding request of client side and acquiring and returning real-time data |
CN102436510A (en) * | 2011-12-30 | 2012-05-02 | 浙江乐得网络科技有限公司 | Method and system for improving online real-time search quality through offline query |
Also Published As
Publication number | Publication date |
---|---|
CN103440302A (en) | 2013-12-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108009236B (en) | Big data query method, system, computer and storage medium | |
CN107506451B (en) | Abnormal information monitoring method and device for data interaction | |
CN101719149B (en) | Data synchronization method and device | |
CN103440302B (en) | The method and system of Real Data Exchangs | |
CN103559217B (en) | A kind of massive multicast data towards isomeric data storehouse warehouse-in implementation method | |
CN108536778B (en) | Data application sharing platform and method | |
CN104123227A (en) | Method for automatically generating testing cases | |
CN103064933A (en) | Data query method and system | |
CN112559475B (en) | Data real-time capturing and transmitting method and system | |
CN104090901A (en) | Method, device and server for processing data | |
CN103034735A (en) | Big data distributed file export method | |
CN111858760B (en) | Data processing method and device for heterogeneous database | |
CN104573065A (en) | Report display engine based on metadata | |
CN113535677B (en) | Data analysis query management method, device, computer equipment and storage medium | |
CN110147470B (en) | Cross-machine-room data comparison system and method | |
CN110297820B (en) | Data processing method, device, equipment and storage medium | |
CN106339498A (en) | Method, device and system for synchronizing data | |
CN110868322A (en) | Network management method, system, device and storage medium for distributed message service | |
CN110795431B (en) | Environment monitoring data processing method, device, equipment and storage medium | |
US10176249B2 (en) | System for image intelligence exploitation and creation | |
CN101645073A (en) | Method for guiding prior database file into embedded type database | |
CN103856353A (en) | Service log data access and statistic analysis method and device | |
CN105760532B (en) | Resource sharing system and method based on Web Service | |
CN102855297A (en) | Method for controlling data transmission, and connector | |
CN112256446B (en) | Kafka message bus control method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |