A kind of control method of distributed multi-source data that can be synchronous and device
Technical field
The present invention relates to data processing technique, particularly a kind of control method of distributed multi-source data that can be synchronous and device, adopt this control method or control device can from several distributed data sources (can be physically diverse location or the data source of diverse location in logic) choose a series of data, and should synthesize the application cache data by a series of data sets, can also make the application cache data realize data sync with several distributed data sources respectively.
Described application cache data refer to: be employed the data that program is directly used.
Background technology
Program is in operation, data message in the buffer memory is many directly to be obtained from local data or network data, do not consider local data and network data integrated conduct method, consider that the source that obtains data under a lot of situations may be a plurality of, the present invention proposes the integrated conduct method of distributed multi-source data.Distributed data source can be physically diverse location or the data source of diverse location in logic, also we can say, diverse location can be physically diverse location or diverse location in logic.
Local data is meant that present procedure operation main body is (as mobile phone, the MP3 player, digital camera, computer etc.) data message on the direct memory device that has, generally exist with document form, the non-file mode that also might be memory or other storage device exists (such as the bit of certain physics memory cell or continuously, the bits information of the physical memory cell that is interrupted), typical memory is including, but not limited to hard disk, T-flash, MMC, SD, portable hard drive etc., its characteristics are to have between program running main body and the memory device direct physical interface (as USB, COM, physical data bus interface etc.) or cable;
Network data be meant with the present procedure operational outfit (as mobile phone, the MP3 player, digital camera, computer etc.) data of the another one equipment (related communication equipment) that connects of wired or wireless mode, ways of connecting is including, but not limited to bluetooth, infrared, WLAN, ZigBee, Internet, GSM/WCDMA, cdma2000, phs etc., main equipment at first will be set up the communication linkage between main equipment and associate device to the visit of network data, and main equipment is controlled and visited by the data of associate device then.
As shown in Figure 1, after main equipment and slave unit are set up communication linkage, the stored information of subordinate associate device can be directly visited in the application of main equipment, for main equipment, the local stored information of the stored information of subordinate associate device and main equipment is not essential distinction in logic, and the stored information of subordinate associate device is " network storage information " of main equipment.Sometimes communicating by letter of main equipment and slave unit is duplexing, and promptly the principal and subordinate is relative, and slave unit is the direct local stored information of browse master also.
Data sync, data sync is meant the stored information data of main equipment and the stored information data of slave unit, finish the mutual renewal of information or duplicate, make the synchronous message part of both sides reach consistency, can be two-way synchronously, also can be unidirectional, can be that total data is synchronous, also can be that partial data is synchronous.SyncML is exactly the information synchronization agreement of a standard, can transmit data with computer exactly such as the PC data sync, contact data on the mobile phone (name, phone) is copied to the contact person the inside of the Outlook Express of PC by infrared or line, make things convenient for the user to carry out communication.
Summary of the invention
The present invention is directed to the defective or the deficiency that exist in the prior art, a kind of control method of distributed multi-source data that can be synchronous is provided, adopt this control method from several distributed data sources, to choose a series of data, and should a series of data sets synthetic application cache data, can also make the application cache data realize data sync with the data source of several diverse locations respectively.
The present invention also provides a kind of control device of distributed multi-source data that can be synchronous, adopts this control device to move this control device in other words and can carry out integrated treatment to obtain the application cache data to distributed data source.
Technical conceive of the present invention is, it is interconnected respectively in the data source of several diverse locations to utilize data to insert engine, and from the data source of these several diverse locations, choose a series of data, should synthesize the application cache data by a series of data sets, thereby realize integrated treatment distributed multi-source data.Distributed data source can be physically diverse location or the data source of diverse location in logic, also we can say, diverse location can be physically diverse location or diverse location in logic.Described application cache data refer to: be employed the data that program is directly used.
Technical scheme of the present invention is as follows:
A kind of control method of distributed multi-source data that can be synchronous is characterized in that may further comprise the steps:
Step 1: data insert the engine data source of interconnected several diverse locations respectively;
Step 2: data insert engine by the definite a series of data sources that can insert of certain rule; Described certain rule comprises the access control of data;
Step 3: data access engine is chosen a series of data and is become the application cache data according to predetermined principle combinations from a series of data sources; Described a series of data become the application cache data may further comprise the steps according to predetermined principle combinations: carry out the data recombination rule in advance and set; Determine several information units of needs reorganization according to the data recombination rule; Obtain the data in a series of data sources, and parse the information unit that has in each data source respectively; From the information unit that parses, select several information units to be combined into the application cache data according to the data recombination rule.
Described data source comprises local data source and network data source.
The access control of described data may further comprise the steps: carry out access conditions in advance and set, these condition enactments can real time modifying; Obtain the relevant information of access device; Carrying out access conditions judges: be then to grant and insert; , then refusal does not insert.Described access conditions is meant, the equipment of stipulating specific set can insert, the equipment of regulation particular ip address tabulation can insert, the equipment of regulation particular mac address tabulation can insert, the equipment (such as IMEI or IMSI) of stipulating specific Equipment Serial Number can insert, and/or, regulation service associated device can insert, and/or, the equipment that the regulation specified conditions limit can insert that (these specific descriptions are not limited to someway, as long as below satisfying condition can: device flag information, some specific information or the ability of equipment, such as User Agent, the physics of equipment or logical identifier are because some equipment and identity information are bound, therefore the set of regulation also can expand to personal information collection, comprise user name and account number, personal identification sign and number, symbolic characteristics such as individual fingerprint etc.).
The described relevant information of obtaining access device can be passed through third party's approach.
Described data recombination rule is set and is comprised the priority level setting.
It is as follows that described priority level is set selection: setting local high priority data, secondly is data in mobile phone, and the 3rd is network data; Perhaps, it is preferential to set data in mobile phone, secondly is local data, and the 3rd is network data; Perhaps, secondly the setting network high priority data is local data, and the 3rd is data in mobile phone; Perhaps, setting local high priority data, secondly is network data, and the 3rd is data in mobile phone; Perhaps, it is preferential to set data in mobile phone, secondly is network data, and the 3rd is local data; Perhaps, secondly the setting network high priority data is data in mobile phone, and the 3rd is local data.
Described data recombination rule comprises according to empirical probability to be set.
The mode that the size of described empirical probability was obtained data with memory in the past is a foundation.
Described data recombination rule comprises: to the further processing of data, get weighting or algebraically, geometry or the logical calculated of two or more data sources, to obtain the information unit in the reconstruct data.
Described data insert the trigger mechanism that engine has data sync.
That described trigger mechanism comprises is two-way, unidirectional, have ready conditions or the protectiveness method of synchronization.
Described data sync is meant the data sync between the distributed data source.
Data sync between the described distributed data source can be finished by main frame.
Described data sync be meant between application cache data and the local data or and other distributed data sources between data sync.
A kind of control device of distributed multi-source data that can be synchronous, it is characterized in that: comprise that data insert engine, these data insert the engine data source of interconnected several diverse locations respectively, and, from a series of data sources, choose the synthetic application cache data of a series of data sets by the definite a series of data sources that can insert of certain rule; Described certain rule comprises the access control of data; Described a series of data become the application cache data may further comprise the steps according to predetermined principle combinations: carry out the data recombination rule in advance and set; Determine several information units of needs reorganization according to the data recombination rule; Obtain the data in a series of data sources, and parse the information unit that has in each data source respectively; From the information unit that parses, select several information units to be combined into the application cache data according to the data recombination rule; Described data insert the trigger mechanism that engine also has data sync.
Technique effect of the present invention is as follows:
The control method of a kind of distributed multi-source data that can be synchronous of the present invention and device, it is the comprehensive treatment technique of a distributed multi-source data, the multi-source data control method has wide application scenarios flexibly, in wireless interconnected today, the network storage and various access technology, various application mode makes technology provided by the invention have unique commercial value.
Description of drawings
Fig. 1 is the communication scheme between main equipment and the slave unit in the prior art.
Fig. 2 is the control structure principle schematic of the distributed multi-source data that can be synchronous of the present invention.
Fig. 3 is the flow chart that data insert the data access control of engine.
Fig. 4 is the data recombination application schematic diagram that data insert engine.
Fig. 5 is the data recombination flow chart that data insert engine.
Embodiment
Further the present invention is described in detail below in conjunction with accompanying drawing.
The control structure principle of the distributed multi-source data that can be synchronous of the present invention as shown in Figure 2, comprise that application cache data, data insert engine and several distributed data sources, these distributed data sources comprise local distributed data, other mobile phone distributed datas and network distribution type data or the like.Several distributed data sources insert engine with data respectively and are connected, and data insert engine and also are connected with the application cache data.Data insert engine can carry out data access control, synchronous triggering, and recombinates based on the multi-source data of priority optimization, probability optimization or the like rule.Data sync can be carried out respectively between application cache data and each distributed data source, also can between several distributed data sources, carry out mutually: as shown in the figure, between local distributed data and other mobile phone distributed datas, between local distributed data and the network distribution type data, between other mobile phone distributed datas and the network distribution type data or the like.In a word, Fig. 2 has showed the data recombination of multi-source.
According to shown in Figure 2, we set a concrete application scenarios:
Use in the mobile phone, its data are (cache) in the buffer memory of mobile phone, and the data in the buffer memory are from three different sources: one, the storage file of mobile phone this locality; Its two, other one by the storage file in the mobile phone of bluetooth wireless link; Its three, by the GPRS wireless access, at a data file of network server end; These three data sources are in different positions.
Among Fig. 2, it is core that data insert engine, and it has following major function:
1. determined the access control of data.Access device can specifically define in such a way:
A) equipment of the specific set of regulation can swap data, can exchange appointment data (address list) such as the mobile phone of only permitting NOKIA series S60 platform, or, have only the mobile phone of Qualcomm binary runtime environment for wireless can exchange the data (missed call information) of agreement;
B) equipment of regulation particular ip address tabulation can swap data, such as 202.101.0.34; 202.101.0.35 can insert;
C) regulation specific I MEI or IMSI equipment can insert, and can insert such as the phone number of specific blacklist or white list;
D) some that are associated with other services define, and such as belonging to QQ group, and air line distance is no more than 2000 meters mobile phone and can inserts;
E) other some define;
The mechanism of access control is, preestablish a scope or condition (this scope and condition are to on-the-fly modify or to adjust), after all set up communication link with current phone, obtain the relevant determination information (might pass through third party's approach) of access device, carry out condition judgment, to being admitted of satisfying condition, otherwise opposite.
As shown in Figure 3, the access control of data may further comprise the steps: carry out access conditions in advance and set; Obtain the relevant information of access device; Carrying out access conditions judges: be then to grant and insert; , then refusal does not insert.
2. data recombination rule:
Need the data of reorganization logically can be divided into little data block, be referred to as information unit (IE informationelement), the data of each IE all might be from different data sources, and the reorganization rule has determined that the IE of these data sources handles.
As shown in Figure 4, recombination data is from different sources, and data insert the combination that engine has determined information element.Comprise the application cache data, distributed data source 1 (this locality), distributed data source 2 (mobile phone), or the like, until distributed data source n (network).
Comprise 3 information unit IE in the distributed data source 1 (this locality), be numbered 1-IE1,1-IE3,1-IEn.
Comprise 4 information unit IE in the distributed data source 2 (mobile phone), be numbered 2-IE1,2-IE2,2-IE4,2-IEn.
Comprise 3 information unit IE among the distributed data source n (network), be numbered n-IE2, n-IE3, n-IEn.
Because reason is identical, does not discuss for clipped.The 1st to n of information unit in the application cache data, as can be seen from Figure 4, wherein each all is to choose from corresponding distributed data source: the 1st is 1-IE1, the 2nd is 2-IE2, and the 3rd is n-IE3, and the 4th is 2-IE4, or the like, n is 1-IEn.Finish the data recombination of multi-source thus.
The data recombination rule can be including, but not limited to following several:
A) priority level is set, and such as setting local high priority data, secondly is data in mobile phone, and the 3rd is network data;
B) set according to empirical probability,, adopt the data source of maximum probability,, adopt time data source of big probability etc. if do not have such as remember the mode of obtaining data in the past;
C), get the weighting or the calculating such as algebraically, geometry or logic of two or more data sources, to obtain IE in the reconstruct data to the further processing of data;
D) other reconstructing methods.
As shown in Figure 5, being combined into the application cache data may further comprise the steps: carry out the data recombination rule in advance and set; Determine several information units of needs reorganization according to the data recombination rule; Obtain the data in a series of data sources, and parse the information unit that has in each data source respectively; From the information unit that parses, select several information units to be combined into the application cache data according to the data recombination rule.
3. the trigger mechanism of information synchronization
Because there is inconsistent place probably in the application cache data of each information source and reconstruct, data synchronization becomes a kind of possible demand, and data synchronization comprises following several:
A) data sync between the distributed data source;
B) between Cache data and local data or other distributed data sources synchronously;
What deserves to be explained is: perhaps do not have direct communication linkage between the distributed data source, but these data sources all and have communication link between main frame, so the communication synchronization between them can finish by main frame, and needn't directly set up communication linkage.
The methods of information synchronization are various, comprise two-way, unidirectional, have ready conditions or protectiveness synchronous etc., these can be determined by synchronous triggering mechanism.Such as, we can set the unidirectional of Cache data and local data makes local data obtain renewal fully fully synchronously, consistent with cache.
In a word, the multi-source data control method has wide application scenarios flexibly, in wireless interconnected today, and the network storage and various access technology, various application mode makes the present invention have unique commercial value.
Should be pointed out that the above embodiment can make those skilled in the art more fully understand the present invention, but do not limit the present invention in any way.Therefore, although this specification has been described in detail the present invention with reference to drawings and embodiments,, it will be appreciated by those skilled in the art that still and can make amendment or be equal to replacement the present invention; And all do not break away from the technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in the middle of the protection range of patent of the present invention.