CN101989939A - Real-time data providing method, server and network - Google Patents

Real-time data providing method, server and network Download PDF

Info

Publication number
CN101989939A
CN101989939A CN2009100891607A CN200910089160A CN101989939A CN 101989939 A CN101989939 A CN 101989939A CN 2009100891607 A CN2009100891607 A CN 2009100891607A CN 200910089160 A CN200910089160 A CN 200910089160A CN 101989939 A CN101989939 A CN 101989939A
Authority
CN
China
Prior art keywords
real time
data
time data
client
server
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
CN2009100891607A
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.)
Nuctech Co Ltd
Original Assignee
Nuctech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nuctech Co Ltd filed Critical Nuctech Co Ltd
Priority to CN2009100891607A priority Critical patent/CN101989939A/en
Publication of CN101989939A publication Critical patent/CN101989939A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a real-time data providing method, a real-time data providing server and a real-time data providing network. The real-time data providing server comprises a data receiving and processing module, a rule engine and a real-time data provider, wherein the data receiving and processing module is used for converting real-time data from equipment into an equipment data object; the rule engine is used for performing rule matching on the received equipment data object according to a rule and converting the equipment data object into a client data object if the matching is successful; and the real-time data provider is used for responding to a real-time data request of a client and providing the requested real-time data according to the client data object.

Description

Real time data provides method, server and network
Technical field
The present invention relates to a kind of real time data provides method, real time data to provide server and real time data that network is provided.Application of the present invention is very extensive, and for example (but being not limited to) is applied in security monitoring, and environmental monitoring is applied in customs, airport, quality inspection, the multiple field of environmental protection or the like.
Background technology
Obtain in the conventional Web application of real time data at needs, generally follow following step:
Because the short chain of Http agreement connects characteristic, the Web client need be provided with timer in the page;
Periodically trigger a data request by timer;
Server end then needs to go in the database to inquire about, and searches a up-to-date record and returns to the Web client.
Web client video data is given the user;
Be understandable that: at the Web of this routine real time data request and response process, database loads is very big, because each request of user, server all will remove to inquire about one time database, when data volume is bigger, the load of database will increase more significantly, and will be especially true when relating to server and carry out a plurality of table conjunctive query; Will in whole web client and server system, cause sizable delay like this, be unfavorable for the concurrent visit of a large amount of clients, and it be very slow to allow the user feel that server is made response request responding from the web client.
In addition, in immediate prior art, obtain data by the refresh content, and own coding checks filtering rule, such system effectiveness is poor, and system itself is too high with the service logic degree of coupling, and system reuse is poor.
Summary of the invention
In order to overcome the defective of above-mentioned prior art, the invention provides a kind of method that is used for improving to the request responding of the real time data of Web client, real time data provides server and real time data that network is provided.
The invention provides a kind of real time data network is provided, it combines present widely used Ajax mode request real time data, just adopt the mode of XML packet, rather than adopt traditional mode of making response (response) with the http agreement to ask real time data.Here the Ajax full name of being mentioned is " Asynchronous JavaScript and XML " (asynchronous JavaScript and XML), be meant a kind of webpage development technology that interaction network page is used of creating, can obtain about this technology more information at http://baike.baidu.com/view/1641.htm.
The present invention has adopted metadata cache mechanism, has adopted regulation engine to come device data is filtered, and reduces search space, thereby the degree of coupling of service logic and program is greatly reduced, and has improved the retrieval response speed.In the present invention, the request process of whole real time data does not all carry out the inquiry of database, and only keeps up-to-date data of each data in the middle of real time data provides device, thereby has improved the retrieval response speed, has saved the calculation resources of server.
Aspect first, provide a kind of real time data that server is provided of the present invention, having comprised:
The Data Receiving processing module is used for the real time data from equipment is converted to the device data object;
Regulation engine is used for according to rule the device data object that is received being carried out rule match, if the match is successful, then the device data object is converted to the client data object; And
Real time data provides device, and being used for provides the real time data of being asked in response to the request of client to real time data according to described client data object.
Preferably, described real time data provides server also to comprise the real time data cache module, is used for the client data object that the buffer memory regulation engine is provided, and according to described request to real time data, returns the client data object of being asked.
Preferably, described real time data cache module is set up Hash table between client data object and device numbering, and according to the retrieval of the device numbering in described request client data object.
Preferably, described real time data cache module provides between device and the regulation engine in real time data.
Preferably, described real time data cache module is included in real time data provides in the device.
Preferably, described real time data cache module is included in real time data provides in the device.
Preferably, described regulation engine provides warning message to the Data Receiving processing module.
Preferably, described rule is included in the rule file.
Preferably, described rule can be modified.
Preferably, described client data object comprises device data object and warning message.
Preferably, described client data object and device data are to liking the Java object.
Preferably, described real time data adopts the JSON form that the data of being asked are provided.
Preferably, described client adopts the Ajax mode to the request of real time data.
Preferably, described real time data provides server also to comprise data acquisition unit, is used for the slave unit image data, and the data of being gathered are sent to described Data Receiving processing module.
Preferably, described real time data provides server also to comprise database, is used to store real time data and/or the warning message that the Data Receiving processing module receives.
Preferably, described database is used to store the rule file that comprises described rule.
Aspect second of the present invention, provide a kind of real time data that network is provided, comprising:
One or more client;
One or more equipment; With
Aforesaid any real time data provides server;
Wherein, described client and described server are coupled;
Wherein said equipment and described server are coupled.
Preferably, described network also comprises one or more data acquisition unit, and each collector and one or more equipment are coupled, and is used for the real time data that slave unit is gathered is offered described server.
Preferably, described network also comprises a data collector, described collector and one or more equipment are coupled, described collector is integrated into described real time data server is provided, and is used for the real time data that slave unit is gathered is offered the Data Receiving processing module that described real time data provides server.
Preferably, described network also comprises database, is used to store real time data and/or the warning message that the Data Receiving processing module receives.
Preferably, wherein said database is integrated in described real time data provides in the server.
Aspect the 3rd of the present invention, provide a kind of real time data that method is provided, comprise step:
The real time data of slave unit receiving equipment;
This real time data is converted to the device data object;
According to rule this device data object is carried out rule match;
If the match is successful, then this device data object is converted to the client data object; With
In response to the request of client, provide the real time data of being asked according to described client data object to real time data.
Preferably, described method also comprises the described client data object of buffer memory, and according to described request to real time data, returns the client data object of being asked.
Preferably, the described client data object of described buffer memory also is included between client data object and the device numbering sets up Hash table, and according to the retrieval of the device numbering in described request client data object.
Preferably, described rule is included in the rule file.
Preferably, described rule can be modified.
Preferably, described client data object comprises device data object and warning message.
Preferably, described client data object and device data are to liking the Java object.
Preferably, described real time data adopts the JSON form.
Preferably, described client adopts the Ajax mode to the request of real time data.
Preferably, the real time data of described slave unit receiving equipment also comprises by data acquisition unit slave unit collection real time data.
Preferably, described method also comprises real-time data memory in database.
Preferably, described method comprises that also the rule file that comprises described rule is stored in the database.
Description of drawings
In conjunction with the accompanying drawings, will make the understanding of the present invention a plurality of advantages more complete and that the present invention brings clearer with reference to following detailed description, wherein:
Figure 1 shows that the schematic diagram of configuration file of the present invention.
Figure 2 shows that the schematic diagram of device data XML form of the present invention.
Figure 3 shows that real time data of the present invention provides the schematic diagram of network.
Figure 4 shows that real time data of the present invention provides the diagrammatic sketch of the Hash table of being stored in the Hash table module of device.
Embodiment
Figure 3 shows that real time data of the present invention provides the schematic diagram of network.
In this embodiment, this real time data provides network to comprise: one or more client, real time data provide web application server, database, one or more data acquisition unit and one or more field apparatus.
Wherein, this field apparatus provides real time data.In the present invention, the represented meaning of real time data is the up-to-date data that slave unit is gathered, i.e. the present operational data of equipment.Should be noted in the discussion above that here might not represent it is the data of current time in real time.For example, the equipment that has produced data in per five minutes, thus all be these data with interior data in 5 minutes, rather than all producing data all the time.The equipment of concrete applied field of time-dependent and use.The state of on-the-spot each focus of this equipment monitor.In the present invention, for field apparatus without limits, as long as this equipment can produce data, the data that produced can be gathered.This equipment for example is (but being not limited to) security-related equipment, for example: RFID gate inhibition, object machine, metal detection door, chassis is taken a picture, enviromental monitoring equipment, X-ray vehicle scanning device or the like.
Data acquisition unit is gathered real time data from this equipment, and this real time data is sent to real time data web is provided application server.
Described real time data provides the web application server to receive the request of client, and the real time data of being asked optionally is provided.
Client is to web application server request real time data, and shows the real time data of being returned.
Described real time data provides web application server, that is, data center server can comprise the Data Receiving processing module; Rule engine module; The rule definition module; Real time data cache module and real time data provide device, also can comprise database in one embodiment, also can comprise a data collector in another embodiment.
Wherein, described Data Receiving processing module is used to receive and handle the real time data from data acquisition unit, and the output equipment data object, and can deposit device data and warning message in database.
Database is preserved warning message and device data.In one embodiment, also can preserve rule file.
The rule definition module is used for rule is defined, and also can preserve defined rule.
Real time data after rule engine module is used for according to defined rule the data receiving processing module being handled is filtered, and, the device data object that sends from the Data Receiving processing module is carried out rule match that is.The rule that regulation engine will configure when system start-up reaches the action that will take corresponding to this rule and all is loaded in the middle of the internal memory, and this rule (Rule) and action (Action) can allow the user revise flexibly when operation.
The real time data cache module is to carrying out buffer memory from the client data object that regulation engine sent.
Real time data provides device to obtain the client data object in response to the request of client from the real time data cache module, according to certain form data is sent to client then.
How the real time data of below describing equipment becomes the client data object.
Data acquisition unit is gathered the real time data message from one or more field apparatus, and the real time data message is handled.
In one embodiment, described data acquisition unit can be used as a service procedure, be implemented on any independent computer or the like, this computer is connected with one or more need be from the field apparatus of its image data, and this same data acquisition unit can for example be gathered real time data by means of the driver of described one or more different field apparatuss from described one or more field apparatus.In one embodiment, the computer of realizing this data acquisition unit can be with web application server shown in Figure 3 on same computer or server or the like, in this embodiment, data acquisition unit is the Data Receiving processing module that directly sends the web application server from the data of one or more field apparatus collection to.In one embodiment, this web application server can connect a plurality of different collectors, each collector operates in respectively on the different computers, this computer is connected with one or more need be from the field apparatus of its image data, in this embodiment, this Data Receiving processing module receives data from each data acquisition unit respectively according to certain strategy, for example, timesharing ground is according to certain cycle or the like.
Data acquisition unit includes SSDK_Open, SSDK_Close, and SSDK_Read, SSDK_Write, SSDK_GetData, these interfaces of SSDK_PutData, these interfaces are interfaces that each data acquisition unit must be realized voluntarily.
SSDK_Open interface wherein is used to open device port, for reading the data that this equipment produces from this device port; The SSDK_Close interface is used for the closing device port; The SSDK_Read interface is used for after device port is opened, the data that produced from the device port fetch equipment of opening; The SSDK_Write interface is used for sending instruction to equipment, for example opens or close such instruction; The data that the SSDK_PutData interface is responsible for being read from the device port of opening by the SSDK_Read interface are written to the sharing data area; Use the SSDK_GetData interface from sharing data area, to obtain data.Data acquisition unit becomes the XML form to the data transaction of being obtained then, and sending to real time data then provides the Data Receiving processing module of web application server for processing.Be integrated among the embodiment of web application server at data acquisition unit, data acquisition unit directly sends the data of being obtained to the Data Receiving processing module, and need not convert the XML form to.
When adding a new equipment, can inherit and heavily loaded these above-mentioned interfaces from the data acquisition unit of its image data, and need not develop again, saved the system development time.
When operation, data acquisition unit at first reads configuration information from configuration file.Configuration file can adopt for example XML form, and its example as shown in Figure 1.Description to facility information (Device id wherein represented will from the numbering of the equipment of its image data) and data center server Server the IP address of expression data center server (Ipaddr ")-be the relevant information that real time data provides the web application server in this configuration file, have been comprised.
For example, facility information can comprise the sequence datasequence (having described the sequence of data) of equipment id, device drives driver, device data separator seperator (having described the segmentation symbol of data character string), device data.
Then, data acquisition unit loads the corresponding driving program, and seperator and datasequence information are passed to driver.The definition of driver is that for example, the driver that defines among Fig. 1 is exactly RayDevDriver.dll by the driver attribute definition in the configuration file, and it for example can be a windows dynamic base.
Driver is after getting access to the data of source device, and the seperator and the datasequnce that pass to it according to data acquisition unit organize data and put into the data field, and the notification data collector obtains data simultaneously.Data acquisition unit is resolved data are counter according to seperator and datasequence after getting access to data, can get access to each single datum.Then, data acquisition unit is organized into the serial data (as shown in Figure 1) of XML form with each single datum, and sends to the Data Receiving processing module of data center server specified in configuration file by the Http agreement.The Data Receiving processing module of data center server is by the specified Servlet of the url field among Fig. 1.
Real time data provides the Data Receiving processing module in the web application server that received equipment real time data is carried out following processing:
At first, the Data Receiving processing module for example XML data conversion that will receive from data acquisition unit of the JAXB OXM mapping mechanism by JDK is the device data object, here is a Java device data object.For example, the JAXB by JDK is a java class with the XML data conversion.JAXB is the abbreviation of Java Architecture for XML Binding, a Java object can be transformed into the XML form, otherwise can be the Java object with the data conversion of XML form also.We call ORM to the mapping between object and the relational database, and ((Object RelationMapping) therefore also can call the mapping between object and the XML OXM (ObjectXML Mapping).For example, the Data Receiving processing module has received device data XML shown in Figure 2, and then the Data Receiving processing module is searched the UnderPan0001.class class under the classes catalogue on the hard disk; After finding such,, thereby produce the device data object then according to the data that provided among XML instantiation UnderPan0001.class class in internal memory.Here just illustrate, can also produce the device data object with other mode.
Then, the Data Receiving processing module will be put into the work memory space (working memory) of rule engine module through the device data object (for example Java object) that transforms.Wherein, the Data Receiving processing module can be by calling the interface that rule engine module provides, and api interface is for example put into the device data object work memory space of rule engine module.
In addition, the Data Receiving processing module also deposits in the database in the lump with device data with from the warning message of rule engine module, so that inquiry in the future.Certainly, can device data and/or warning message not put into database yet.This depends on the enforcement of concrete scheme.In illustrated embodiment, this database is present on the different computer or server with the web application server.But, in one embodiment, proposed database and Web server are integrated in one independently in the computer, because database is as the storage medium of data, than Web server height, amount of calculation is also much bigger simultaneously to the requirement of data fail safe.
Rule engine module is after receiving the device data object from the Data Receiving processing module, come this device data object is carried out rule match by rule-based filtering according to defined rule in the rule file, thereby these device object data are expanded to the client data object.Wherein, rule file is to preserve the file of business rule, the filtering rule that defines in the regulation engine meeting resolution rules file is to carry out rule match to device data, can in the device data object, add warning message after the match is successful, if it fails to match, the rule that do not meet of expression then, can not be inserted into warning message in the device data object this moment.In one embodiment, briefly, client data object=device data object+actuation of an alarm code.Wherein, the rule-based filtering algorithm can adopt algorithm known in the art.Rule can be a series of if else statement, if satisfy certain rule, can think that then the match is successful, otherwise coupling is just unsuccessful.Wherein, regulation engine can adopt existing technology in the present invention, for example adopts the regulation engine of open source code.Regulation engine has in the present invention adopted existing Rete and two kinds of fast regular matching algorithms of Leaps.Any suitable better fast regular matching algorithm also is applicable to the present invention in the future.
Rule engine module generates the client data object with the device data object after the filtration treatment (also promptly, the device data object that the match is successful) in conjunction with warning message then, provides it to the real time data cache module then.Wherein, warning message has comprised the script name and the parameter of reporting to the police, and can remind the monitor staff to note the unusual of some monitoring of tools data so visually, thus noting abnormalities as early as possible, for example, the actuation of an alarm code.Please note: do not exist real time data cache module or this real time data cache module and real time data to provide under the situation that device integrates, rule engine module offers real time data with the client data object device is provided.Simultaneously, rule engine module also returns to warning message the Data Receiving processing module.Wherein, rule engine module is carried out rule-based filtering according to rule definition to the device data object, and constructs the client data object, directly this client data object is put in the real time data cache module then.Rule definition can be placed in the middle of the specific file, also can be placed in the database of any kind, for example is placed in the above-mentioned database.Rule definition need define before project issue operation, whenever can revise rule file, but need to restart application server after revising.Can make amendment to rule file with any the text edit tool.
In the present invention, alarm code divides forward and backward alarm code; The foreground alarm code sees to the monitor staff, and this code is that the regulation engine by the front end display systems of system and backstage uses, and what regulation engine used is the actuation of an alarm code on backstage; The actuation of an alarm code on backstage is for example: alarm logging of record in database; The actuation of an alarm code of front end is for example: the icon flicker;
Above-mentioned rule file comprises that regulation engine filters the rule of usefulness, and rule can adopt many kinds of modes to define, and for example, in the present invention, can come definition rule in such a way:
package?ssdk;
import?com.nuctech.ssdk.runtime.service.DeviceService;
import?com.nuctech.ssdk.runtime.model.*;
import?com.nuctech.ssdk.runtime.model.devicedata.*;
global?DeviceService?deviceService;
rule″Rm2k0001″
no-loop
when
$deviceData:Rm2k0001Data()
then
retract($deviceData);
insert(″flashIcon″);
end
rule″UnderPan0001″
no-loop
when
$deviceData:UnderPan0001Data()
then
retract($deviceData);
insert(″flashIcon″);
insert(″soundAlarm″);
end
rule″VehicleIdentify0001″
no-loop
when
$deviceData:VehicleIdentify0001Data()
then
retract($deviceData);
insert(″flashIcon″);
end
In conjunction with the mode of the above-mentioned rule definition that exemplifies, at this, provide the example of a rule that in rule file, defines, as follows:
rule″VehicleIdentify0001″
no-loop
when
$deviceData:VehicleIdentify0001Data (code==" capital A123456 ")
then
insertAlarmData($deviceData);
insert(″flashIcon″);
end
Wherein VehicleIdentify0001Data represents the data that the car plate identification equipment produces, if license plate number equals capital A123456, system will produce warning (corresponding actuation of an alarm code is arranged), reporting to the police in the foreground is icon flicker (flashIcon), reports to the police and be the relevant alert data (insertAlarmData) of insertion in database in the backstage.
Describe below real time data provide device how the acquisition request request of customer in response end data and return this data.
At first, the web client provides device to send request to real time data, for example polling request to real time data.In a preferred embodiment, this polling request adopts the Ajax mode, the characteristics of Ajax are can refresh each element on the web page separately and be unlikely to cause page flicker, simultaneously Ajax is an asynchronous system, and the user can carry out any operation and do not need to allow the user wait for the page in request msg.
The Web client comprises the numbering of coming source device of the real time data of being asked in the parameter of being sent to the request of real time data, promptly being to provide the device real time data that explanation will be asked by which equipment to be produced to real time data.For example, the example to the request of real time data that produced of web client is Http: // 192.168.26.4/DataProvider.action? deviceid=1689243, wherein deviceid=1689243 is the character string corresponding to the equipment of the real time data that produces this request.Should be understood that: the difference of Web client of the present invention only is the character string of having added equipment in the real time data request of sending, adopted the mode of timer equally, but owing to there has been real time data that device is provided, the retrieval amount of database will significantly reduce, and response speed also has very big lifting.
Then, after real time data provides the real time data request that device sent in response to the web client, device numbering whereabouts real time data cache module requesting client data object according to request, real time data provides device after obtaining the client data object from the real time data cache module, then can be character string (the perhaps character string of other type of JSON mode with the data conversion of this object, the character string of XML type for example), then it is returned to the web client.
Client data provides device to obtain from the real time data buffer memory to liking real time data.Wherein, provide the client data object by regulation engine to the real time data cache module, as previously mentioned.
The real time data cache module is after receiving the client data object, can set up the Hash table between the source device of coming of a client data object and generation data wherein for this client data object, (about Hash table, see explanation below in conjunction with Fig. 4), to be used for the convenient retrieval that realizes this client data object.Wherein Hash table is stored in the real time data cache module.The request that the real time data cache module provides device to be received from the web client in response to real time data to real time data, with the data that comprised in this request come source device as the retrieval major key, retrieve corresponding client data object according to Hash table.For example, specified the Data Source device A in the request from the Web client, then just retrieved the data object ObjectA (object A) that corresponding origin source device A is produced from Hash table according to the Data Source device A to real time data.The retrieval of employing aforesaid way, comparing the database retrieval mode has tangible improved efficiency.
Client object is the entity of class in internal memory, and class is the object statement that is present on the hard disk, by this statement just can be in internal memory class of instantiation.We just are referred to as object the class of this instantiation in internal memory.To liking the least unit among the java.Provide device to real time data cache request client data object the time in real time data, the real time data cache module can be quoted of active client data object and return to real time data device is provided.So just can effectively avoid the resource lock problem under the multithreading situation.
Real time data provides device after the client data that obtains expectation from the real time data buffer memory is quoted, from being about to the data conversion of this client data object is the text string of JSON (JavaScript ObjectNotation) mode, and the packet after will transforming then returns to the web client.Wherein, JSON (JavaScript Object Notation) is a kind of data interchange format of lightweight.Being easy to the people reads and writes.Also being easy to simultaneously machine resolves and generates.It is based on the subclass of JavaScript (Standard ECMA-262 3rd Edition-December 1999).
In one embodiment, the real time data cache module is integrated in real time data and provides in the device, at this moment, regulation engine consigns to real time data to the client data object of being changed the cache module of the real time data in the device is provided, and the real time data cache module is set up Hash table according to above-described mode then.Real time data provides the real time data request of device according to the web client, to real time data cache module inquiring client terminal data object, the real time data cache module comes source device as the retrieval major key according to the data that comprised in this request, retrieves corresponding client data object according to Hash table.The real time data cache module can be quoted of current client data object of asking and return to real time data device is provided, real time data provides device after the client data that obtains expectation from the real time data cache module is quoted, from being about to the data conversion of this client data object is the text string of JSON mode, and the packet after will transforming then returns to the web client.
In one embodiment, do not have the real time data cache module, at this moment, regulation engine consigns to real time data to the client data object device is provided.Real time data provides the source device that comes of the data that comprised in the request of device according to the web client to search the client data object, is the data conversion of the client data object that finds the character string of JSON mode then, then it is returned to the web client.Compare with the embodiment that adopts the real time data cache module, the system effectiveness of this embodiment can descend to some extent, thereby preferably, builds and use the embodiment with real time data cache module to realize the present invention.
The JSON packet that provides device to generate by real time data is provided the Web client, and then, the Web client is resolved the JSON packet that is received, and shows the data of being asked then.
The JSON mode is the preferred embodiments of the present invention, also can adopt other mode.
Can see that the request process of whole real time data does not all carry out the inquiry of database, and in the middle of real time data provides device, only keep up-to-date data of each data, thus the calculation resources of having saved server.
Figure 4 shows that the structure of the Hash table of real time data cache module of the present invention.
Hash table is a kind of data structure, and it is right to have described man-to-man (key-value), that is to say, and the corresponding value of index button, Map inside generally takes hash algorithm to realize searching fast.
Wherein 401 is key in the Hash table, and 402 is value corresponding with this key in the Hash table.When the real time data that real time data cache module retrieval web client is asked will be index with key 401, retrieve clients corresponding data object 402.For example, the web client-requested be the source B real time data, the real time data cache module is just retrieved Hash table with source B as major key, therefrom find major key source B, and then find out and as the corresponding content of source B of major key, promptly, the client data object B, wherein the client data object B comprises all up-to-date real time data, content such as device id that this source equipment B collects number, the numerical value of each data item, data type and data parameters etc.Then, the real time data cache module offers real time data to the client data object that retrieves device is provided.Real time data provides device then according to retrieving the character string that the client data object generates the JSON form, then this JSON packet is returned to the Web client, as the real time data request responding to being sent from the web client.
Though used Hash table mechanism here, this is not necessary.But, the use Hash table can be so that retrieval rate be faster.
Described the present invention and occupation mode thereof in the above, one skilled in the art will appreciate that and to carry out various modifications and change to the present invention, as long as such modification and change all fall within the scope of the appended claims.

Claims (34)

1. a real time data provides server, comprising:
The Data Receiving processing module is used for the real time data from equipment is converted to the device data object;
Regulation engine is used for according to rule the device data object that is received being carried out rule match, if the match is successful, then the device data object is converted to the client data object; And
Real time data provides device, and being used for provides the real time data of being asked in response to the request of client to real time data according to described client data object.
2. real time data as claimed in claim 1 provides server, also comprises the real time data cache module, is used for the client data object that the buffer memory regulation engine is provided, and according to described request to real time data, returns the client data object of being asked.
3. real time data as claimed in claim 2 provides server, and described real time data cache module is set up Hash table between client data object and device numbering, and according to the retrieval of the device numbering in described request client data object.
4. real time data as claimed in claim 2 provides server, and wherein said real time data cache module provides between device and the regulation engine in real time data.
5. real time data as claimed in claim 3 provides server, and wherein said real time data cache module provides between device and the regulation engine in real time data.
6. real time data as claimed in claim 2 provides server, and wherein said real time data cache module is included in real time data to be provided in the device.
7. real time data as claimed in claim 3 provides server, and wherein said real time data cache module is included in real time data to be provided in the device.
As 1-7 in the claim as described in each real time data server is provided, wherein said regulation engine provides warning message to the Data Receiving processing module.
9. provide server as each described real time data among the 1-7 in the claim, described rule is included in the rule file.
10. provide server as 9 described real time datas in the claim, described rule can be modified.
11. provide server as each described real time data of 1-7 in the claim, described client data object comprises device data object and warning message.
12. provide server as each described real time data of 1-7 in the claim, described client data object and device data are to liking the Java object.
13. provide server as each described real time data of 1-7 in the claim, described real time data adopts the JSON form that the data of being asked are provided.
14. provide server as each described real time data of 1-7 in the claim, described client adopts the Ajax mode to the request of real time data.
15. provide server as each described real time data of 1-7 in the claim, also comprise data acquisition unit, be used for the slave unit image data, and the data of being gathered are sent to described Data Receiving processing module.
16. provide server as each described real time data of 1-7 in the claim, also comprise database, be used to store real time data and/or the warning message that the Data Receiving processing module receives.
17. provide server as 16 described real time datas in the claim, wherein said database is used to store the rule file that comprises described rule.
18. a real time data provides network, comprising:
One or more client;
One or more equipment; With
Provide server as any one described real time data among the claim 1-14;
Wherein, described client and described server are coupled;
Wherein said equipment and described server are coupled.
19. network as claimed in claim 18 also comprises one or more data acquisition unit, each collector and one or more equipment are coupled, and being used for that the real time data that slave unit is gathered is offered described real time data provides server.
20. network as claimed in claim 18, also comprise a data collector, described collector and one or more equipment are coupled, described collector is integrated into described real time data server is provided, and is used for the real time data that slave unit is gathered is offered the Data Receiving processing module that described real time data provides server.
21. as each described network among the claim 18-20, also comprise database, be used to store real time data and/or the warning message that the Data Receiving processing module receives.
22. network as claimed in claim 21, wherein said database is integrated in described real time data and provides in the server.
23. a real time data provides method, comprises step:
The real time data of slave unit receiving equipment;
This real time data is converted to the device data object;
According to rule this device data object is carried out rule match;
If the match is successful, then this device data object is converted to the client data object; With
In response to the request of client, provide the real time data of being asked according to described client data object to real time data.
24. method as claimed in claim 23 also comprises the described client data object of buffer memory, and according to described request to real time data, returns the client data object of being asked.
25. method as claimed in claim 24, the described client data object of described buffer memory also is included between client data object and the device numbering sets up Hash table, and according to the retrieval of the device numbering in described request client data object.
26. as each described method among the claim 23-25, described rule is included in the rule file.
27. method as claimed in claim 26, described rule can be modified.
28. as each described method among the claim 23-25, described client data object comprises device data object and warning message.
29. as each described method among the claim 23-25, described client data object and device data are to liking the Java object.
30. as each described method among the claim 23-25, described real time data adopts the JSON form.
31. as each described method among the claim 23-25, described client adopts the Ajax mode to the request of real time data.
32. as each described method among the claim 23-25, the real time data of described slave unit receiving equipment also comprises by the data acquisition unit slave unit gathers real time data.
33., also comprise real-time data memory in database as each described method among the claim 23-25.
34., comprise that also the rule file that comprises described rule is stored in the database as the described method of claim 23-25.
CN2009100891607A 2009-07-31 2009-07-31 Real-time data providing method, server and network Pending CN101989939A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100891607A CN101989939A (en) 2009-07-31 2009-07-31 Real-time data providing method, server and network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100891607A CN101989939A (en) 2009-07-31 2009-07-31 Real-time data providing method, server and network

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN2011104629004A Division CN102523309A (en) 2009-07-31 2009-07-31 Method and equipment for responding request of client side and acquiring and returning real-time data

Publications (1)

Publication Number Publication Date
CN101989939A true CN101989939A (en) 2011-03-23

Family

ID=43746294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100891607A Pending CN101989939A (en) 2009-07-31 2009-07-31 Real-time data providing method, server and network

Country Status (1)

Country Link
CN (1) CN101989939A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440302A (en) * 2013-08-21 2013-12-11 广东电网公司电力调度控制中心 Real-time data exchange method and system
CN105450287A (en) * 2014-08-29 2016-03-30 深圳航天科技创新研究院 Method and apparatus for acquiring satellite-based device data
CN105491111A (en) * 2015-11-24 2016-04-13 镇江恒驰科技有限公司 Windows communication foundation (WCF)-based Internet of things communication method
CN106101090A (en) * 2016-06-07 2016-11-09 中国建设银行股份有限公司 Operational approach and rule engine system for regulation engine
CN106294530A (en) * 2015-06-29 2017-01-04 阿里巴巴集团控股有限公司 The method and system of rule match
CN111984505A (en) * 2020-08-21 2020-11-24 豪越科技有限公司 Operation and maintenance data acquisition engine and acquisition method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440302A (en) * 2013-08-21 2013-12-11 广东电网公司电力调度控制中心 Real-time data exchange method and system
CN103440302B (en) * 2013-08-21 2016-06-08 广东电网公司电力调度控制中心 The method and system of Real Data Exchangs
CN105450287A (en) * 2014-08-29 2016-03-30 深圳航天科技创新研究院 Method and apparatus for acquiring satellite-based device data
CN105450287B (en) * 2014-08-29 2019-12-20 深圳航天科技创新研究院 Method and device for acquiring satellite-borne equipment data
CN106294530A (en) * 2015-06-29 2017-01-04 阿里巴巴集团控股有限公司 The method and system of rule match
CN106294530B (en) * 2015-06-29 2019-09-13 阿里巴巴集团控股有限公司 The method and system of rule match
CN105491111A (en) * 2015-11-24 2016-04-13 镇江恒驰科技有限公司 Windows communication foundation (WCF)-based Internet of things communication method
CN105491111B (en) * 2015-11-24 2019-04-16 镇江恒驰科技有限公司 A kind of Internet of Things communication means based on WCF
CN106101090A (en) * 2016-06-07 2016-11-09 中国建设银行股份有限公司 Operational approach and rule engine system for regulation engine
CN111984505A (en) * 2020-08-21 2020-11-24 豪越科技有限公司 Operation and maintenance data acquisition engine and acquisition method
CN111984505B (en) * 2020-08-21 2023-06-16 豪越科技有限公司 Fortune dimension data acquisition device and acquisition method

Similar Documents

Publication Publication Date Title
US10698777B2 (en) High availability scheduler for scheduling map-reduce searches based on a leader state
US10726354B2 (en) Concurrently forecasting multiple time series
US20100125476A1 (en) System having business aware framework for supporting situation awareness
US8812544B2 (en) Enterprise content management federation and integration system
McHugh et al. Integrated access to big data polystores through a knowledge-driven framework
JP2006277726A (en) Mapping of file system model to database object
US20040088276A1 (en) System and method for analyzing usage patterns in information aggregates
CN101989939A (en) Real-time data providing method, server and network
CN113407810B (en) City information and service integration system and method based on big data
CN102523309A (en) Method and equipment for responding request of client side and acquiring and returning real-time data
US11567735B1 (en) Systems and methods for integration of multiple programming languages within a pipelined search query
US11748634B1 (en) Systems and methods for integration of machine learning components within a pipelined search query to generate a graphic visualization
Mehmood et al. Distributed real-time ETL architecture for unstructured big data
CN111309868A (en) Knowledge graph construction and retrieval method and device
CN102253948B (en) Method and device for searching information in multi-source information system
Ochian et al. Big data search for environmental telemetry
Graube et al. Integrating industrial middleware in linked data collaboration networks
CN103532737A (en) Method, device and system for processing various types of alarms
CN111431962B (en) Cross-domain resource access Internet of things service discovery method based on context awareness calculation
Beheshti et al. Bp-sparql: A query language for summarizing and analyzing big process data
Kirmse et al. How to rami 4.0: Towards an agent-based information management architecture
CN115114289A (en) Data query method and device and electronic equipment
CN112564984A (en) Distributed safe operation and maintenance method of Internet of things based on big data
Liu et al. Performance modeling and evaluating workflow of ITS: real-time positioning and route planning
CN111104558A (en) Distributed multi-source data processing 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
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110323