CN109271454A - A kind of method and the network equipment that data are synchronous - Google Patents
A kind of method and the network equipment that data are synchronous Download PDFInfo
- Publication number
- CN109271454A CN109271454A CN201811261210.0A CN201811261210A CN109271454A CN 109271454 A CN109271454 A CN 109271454A CN 201811261210 A CN201811261210 A CN 201811261210A CN 109271454 A CN109271454 A CN 109271454A
- Authority
- CN
- China
- Prior art keywords
- equipment
- data
- information
- data content
- coffret
- 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.)
- Granted
Links
Landscapes
- Telephonic Communication Services (AREA)
- Information Transfer Between Computers (AREA)
Abstract
This application discloses a kind of synchronous methods of data, applied to the heterogeneous system including the first equipment and the second equipment, this method comprises: the first equipment receives the synchronizing information that the second equipment is sent by coffret, the coffret is that the second equipment of interface message connection that the first equipment is configured according to it when establishing integrated configuration scheme is formed, scheme further includes target identification information, for obtaining the target data content in the second equipment by coffret;The first data content that parsing synchronizing information includes;Judge it with the presence or absence of in the first equipment;It is synchronous that data are then completed if it exists;If it does not exist, judge whether it belongs to target data content;If belonging to, the first data content in the second equipment is obtained to complete to synchronize.Technical scheme so that heterogeneous system realizes asynchronous transmission, and can also parse reception data due to the link information and data information that are arranged in integrated configuration scheme, to realize all related data contents accurately real-time synchronization automatically.
Description
Technical field
The present invention relates to technical field of electronic communication, and in particular to a kind of method and the network equipment that data are synchronous.
Background technique
Heterogeneous database system is the set of relevant multiple Database Systems, and the shared and transparent visit of data may be implemented
It asks, each Database Systems inherently have existed before heterogeneous database system is added.Each composition of heterogeneous database
Part has itself autonomy, and while realizing data sharing, each Database Systems still possess the application characteristic, complete of oneself
Whole property control and safety control.The data interaction of heterogeneous system, by the way of synchronous transfer, the data of synchronous transfer can only
In a channel, it may be assumed that when A transmits data, B receives data, and only when B is returned the result, A can just be further continued for carrying out it
He operates.
Heterogeneous system is during synchronous transmitting data, it is necessary to operations completion be waited just to can be carried out other business operations;Greatly
, there is the case where synchronizing a large amount of hashes in the synchronization of data content of amount, cause data redundancy, the increment synchronization of data content is again
Operating burden can be increased, processing will lead to document synchronization failure not in time by hand.
Summary of the invention
The embodiment of the present invention provides a kind of synchronous method of data and the network equipment, be not only able to realize heterogeneous system it
Between data asynchronous transmission, moreover it is possible to automatically and accurately to the carry out real-time synchronization of all related data contents.
In view of this, the application first aspect provides a kind of method that data are synchronous, this method is used for heterogeneous system, described
It include the first equipment and the second equipment in heterogeneous system, this method comprises: the first equipment receives the second equipment by coffret
The synchronizing information of transmission, the synchronizing information are used to indicate the first equipment progress data and synchronize, which is the first equipment root
According to interface message connect the second equipment formed, the interface message be the first equipment establish integrated configuration scheme in configure,
Integrated configuration scheme further includes target identification information, and target identification information obtains second by coffret for the first equipment and sets
Target data content in standby;First equipment parses synchronizing information, to parse the first instruction that synchronizing information includes
Information, corresponding first data content of the first instruction information;First equipment judges the first data content according to the first instruction information
With the presence or absence of in the first equipment;If it exists, then the synchronization of the first data content of the first equipment completion;If it does not exist, then it first sets
It is standby to judge whether the first instruction information belongs to target identification information;If the first instruction information belongs to target identification information, first
Equipment obtains the first data content in the second equipment by coffret according to the first instruction information, to complete the first data
The synchronization of content.
Optionally, with reference to the above first aspect, in the first possible implementation, this method further include: first sets
It is standby that first data content is parsed, to parse the second indication information that the first data content includes, the second instruction letter
Cease corresponding second data content;First equipment judges the second data content with the presence or absence of the first equipment according to second indication information
In;If it exists, then the synchronization of the second data content of the first equipment completion;If it does not exist, then the first equipment judges the second instruction letter
Whether breath belongs to target identification information;If second indication information belongs to target identification information, the first equipment is according to second finger
Show that information obtains the second data content in the second equipment by coffret, to complete the synchronization of the second data content;If the
Two instruction information are not belonging to target identification information, then it is synchronous to terminate data.
Optionally, with reference to the above first aspect, first aspect any one possible implementation in the first, second
In the possible implementation of kind, target identification information is corresponding with interface message, which includes different data-interfaces, uses
In the transmission of different types of information.
Optionally, with reference to the above first aspect, first aspect any one possible implementation in the first, in third
In the possible implementation of kind, the first equipment parses synchronizing information, and include to parse the synchronizing information first refers to
Show information, comprising: synchronizing information parsing is become synchrodata identical with the first equipment data form by the first equipment;First sets
It is standby that first instruction information is parsed according to synchrodata.
Optionally, with reference to the above first aspect, first aspect any one possible implementation in the first, the 4th
In the possible implementation of kind, the first equipment passes through the first number in coffret the second equipment of acquisition according to the first instruction information
After content, further includes: the first equipment saves the first data content.
Optionally, with reference to the above first aspect, first aspect any one possible implementation in the first, the 5th
In the possible implementation of kind, the first equipment is received by coffret after the synchronizing information that the second equipment is sent, further includes:
First equipment saves synchronizing information.
The application second aspect provides a kind of device that data are synchronous, which is applied to heterogeneous system, the heterogeneous system
In include the first equipment and the second equipment, the device be the first equipment, which includes: receiving unit, for by transmission connect
Mouth receives the synchronizing information that the second equipment is sent, which is used to indicate the first equipment progress data and synchronizes, which connects
Mouth is that the first equipment is formed according to the second equipment of interface message connection, which is the integrated configuration that the first equipment is established
It is configured in scheme, which further includes target identification information, and target identification information is for the first equipment by connecing
Mouth obtains the target data content in the second equipment;Resolution unit, for being parsed to the received synchronizing information of receiving unit,
To parse the first instruction information that synchronizing information includes, corresponding first data content of the first instruction information;Judging unit is used
Judge the first data content with the presence or absence of in the first equipment in the first instruction information parsed according to resolution unit;Unit is terminated,
For it is synchronous to complete data when judging unit judges the first data content there are in the first equipment;Judging unit is also used to
After judging that the first data content is not present in the first equipment, judge whether the first instruction information belongs to target identification information;It obtains
Unit is taken, for passing through according to the first instruction information when judging unit judges that the first instruction information belongs to target identification information
Coffret obtains the first data content in the second equipment, to complete the synchronization of the first data content.
Optionally, in conjunction with above-mentioned second aspect, in the first possible implementation, the resolution unit in the device,
It is also used to parse the first data content, to parse the second indication information that the first data content includes, second finger
Show corresponding second data content of information;The judging unit is also used to judge the according to the second indication information that resolution unit parses
Two data contents are with the presence or absence of in the first equipment;The termination unit is also used to judge that second indication information is deposited in the judging unit
When in the first equipment, the synchronization of the second data content is completed;The judging unit is also used to judging that the second data content do not deposit
When in the first equipment, judge whether second indication information belongs to target identification information;The acquiring unit is also used to single in judgement
When member judges that second indication information belongs to target identification information, the second equipment is obtained by coffret according to second indication information
In the second data content, with complete the second data content synchronization;The termination unit is also used to judge in the judging unit
When two instruction information are not belonging to target identification information, it is synchronous to terminate data.
The application third aspect provides a kind of network equipment, which is applied to heterogeneous system, wraps in heterogeneous system
The first equipment and the second equipment are included, which is the first equipment, which includes: input unit, output device, place
Device and memory are managed, is stored with program instruction in memory;By calling the operational order of memory storage, which is used
In the synchronous method of the data for executing above-mentioned first aspect or first aspect any one possible implementation.
The application fourth aspect provides a kind of computer readable storage medium, is stored in the computer readable storage medium
Instruction, when run on a computer, allowing computer to execute above-mentioned first aspect or first aspect, any one can
It is able to achieve the synchronous method of the data of mode.
The 5th aspect of the application provides a kind of computer program product comprising instruction, when run on a computer,
Computer is allowed to execute the synchronous method of data of above-mentioned first aspect or first aspect any one possible implementation.
The 6th aspect of the application provides a kind of chip system, which includes processor, for supporting heterogeneous system
Realize function involved in above-mentioned first aspect or first aspect any one possible implementation.It possible is set a kind of
In meter, chip system further includes memory, and memory executes the necessary program instruction of heterogeneous system and data for saving.It should
Chip system, can be made of chip, also may include chip and other discrete devices.
A kind of method that the embodiment of the present invention uses data synchronous, the reception system in heterogeneous system pass through in integrated configuration
Link information and data information is arranged in scheme, carries out multiplex roles with heterogeneous system and docks, and realizes its number between heterogeneous system
According to asynchronous transmission, at the same time, reception system can also parse data content included in reception data, automatic and precisely
Realize the real-time synchronization to all related data contents in ground.
Detailed description of the invention
Fig. 1 is one embodiment schematic diagram of method of data synchronization in the embodiment of the present application;
Fig. 2 is another embodiment schematic diagram of method of data synchronization in the embodiment of the present application;
Fig. 3 is another embodiment schematic diagram of method of data synchronization in the embodiment of the present application;
Fig. 4 is another embodiment schematic diagram of method of data synchronization in the embodiment of the present application;
Fig. 5 is one embodiment schematic diagram of data synchronization unit in the embodiment of the present application;
Fig. 6 is a kind of network equipment infrastructure schematic diagram provided by the embodiments of the present application.
Specific embodiment
With reference to the accompanying drawing, the embodiment of the present invention is described, it is clear that described embodiment is only the present invention
The embodiment of a part, instead of all the embodiments.Those of ordinary skill in the art it is found that with figure Computational frame differentiation
With the appearance of new opplication scene, technical solution provided in an embodiment of the present invention is equally applicable for similar technical problem.
A kind of method that the embodiment of the present invention uses data synchronous, the reception system in heterogeneous system pass through in integrated configuration
Link information and data information is arranged in scheme, carries out multiplex roles with heterogeneous system and docks, and realizes its number between heterogeneous system
According to asynchronous transmission, at the same time, reception system can also parse data content included in reception data, automatic and precisely
Realize the real-time synchronization to all related data contents in ground.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection
It encloses.
The description and claims of this application and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing
Similar object, without being used to describe a particular order or precedence order.It should be understood that the data used in this way are in appropriate feelings
It can be interchanged under condition, so that the embodiments described herein can be real with the sequence other than the content for illustrating or describing herein
It applies.In addition, term " includes " and " having " and their any deformation, it is intended that cover it is non-exclusive include, for example, packet
The process, method, system, product or equipment for having contained a series of steps or units those of be not necessarily limited to be clearly listed step or
Unit, but may include other steps being not clearly listed or intrinsic for these process, methods, product or equipment or
Unit.
Fig. 1 is one embodiment schematic diagram of method of data synchronization in the embodiment of the present application.
It include the in the heterogeneous system as shown in Figure 1, method of data synchronization is applied to heterogeneous system in the embodiment of the present application
One equipment and the second equipment, comprising:
101, the first equipment receives the synchronizing information that the second equipment is sent by coffret.
In the present embodiment, when the second equipment needs that synchronizing information is synchronous with the first equipment progress data, the first equipment
The synchronizing information that the second equipment is sent is received by coffret, when receiving the synchronizing information, the first equipment starts to execute
Corresponding data are synchronous.First equipment and the second equipment carry out for the first time target data content it is synchronous when, the first equipment is being
An integrated configuration scheme is created in system, which includes interface message and target identification information.First equipment
The second equipment is connected according to the interface message, to set up the coffret of both sides;Target identification information is used for the first equipment
It goes to obtain the target data content in the second equipment by the coffret.
It should be noted that being directed to identical target data content, the first equipment can only create an integrated configuration scheme,
I.e. the integrated configuration scheme is when subsequent heterogeneous system needs to carry out the synchronization of same target basic data, without being set again
It sets.
102, the first equipment parses synchronizing information, to parse out the first instruction information that synchronizing information includes,
Corresponding first data content of first instruction information.
In the present embodiment, the first equipment is after the synchronizing information for receiving the transmission of the second equipment by coffret, meeting
Synchronizing information is parsed, to analyze the first instruction information, the first instruction information and the first data included in it
Content is corresponding.
It should be noted that further include corresponding other some information datas in synchronizing information in the present embodiment,
In practical application, specific data content may include different information, in some scenes, the data content in the present embodiment
It may correspond to some basic datas in concrete scene, specifically herein without limitation.
103, the first equipment judges the first data content with the presence or absence of in the first equipment according to the first instruction information.
In the present embodiment, the first equipment indicates information pair after parsing the first instruction information corresponding to synchronizing information
It should may determine that the first data content whether there is in current system according to the instruction information, thus really in the first data content
Fix the synchronous operation of a step data.
104, if it exists, the then synchronization of the first data content of the first equipment completion.
In the present embodiment, if first equipment judges that the first data content is present in the first equipment in step 103,
First equipment is done directly the same of this first data content without obtaining the first data content from the second equipment again
Step operation, so that the case where avoiding data redundancy in the first equipment, saves the memory source of the first equipment.
105, if it does not exist, then the first equipment judges whether the first instruction information belongs to target identification information.
In the present embodiment, when first equipment confirms that the first data content is not present with the first equipment in step 103, first
Equipment first has to judge whether the first instruction information belongs to the target identification information configured in integrated configuration scheme, to determine to be
No needs come first synchronization of data content, if the first instruction information belongs to target identification information, in first data
Hold and need to be synchronized, if the first instruction information is not belonging to target identification information, without synchronizing first data content, ensure that
The synchronous accuracy of data.
If 106, the first instruction information belongs to target identification information, the first equipment passes through biography according to the first instruction information
Defeated interface obtains the first data content in the second equipment, to complete the synchronization of the first data content.
In the present embodiment, when the first equipment confirmation the first instruction information belongs to the target identification configured in integrated configuration scheme
When information, the first equipment is docked successful coffret when establishing according to the first instruction information by integrated configuration scheme and is obtained
The first data content in second equipment, to complete to the same of synchronizing information and the relevant all data contents of the synchronizing information
Step realizes the synchronous accuracy of data.
In the embodiment of the present application, the first equipment in heterogeneous system by integrated configuration scheme be arranged link information and
Data information carries out multiplex roles with the second equipment and docks, so that the asynchronous transmission of its data between the second equipment is realized, with this
Meanwhile first equipment can also parse all data contents included in reception data, realized automatically and accurately to institute
There is the real-time synchronization of related data content.
Fig. 2 is another embodiment schematic diagram of method of data synchronization in the embodiment of the present application, as shown in Fig. 2, the application is real
It applies method of data synchronization in example and is applied to heterogeneous system, include the first equipment and the second equipment in the heterogeneous system, comprising:
201, the first equipment receives the synchronizing information that second equipment is sent by coffret.
In the present embodiment, when the second equipment needs that synchronizing information is synchronous with the first equipment, the first equipment passes through transmission
The synchronizing information that the second equipment of interface is sent, after receiving synchronizing information, the first equipment starts to execute related data
It is synchronous.The coffret is that the first equipment is formed according to interface message the second equipment of connection, which is the first equipment
When establishing integrated configuration scheme, configuration is in scheme.
When starting to execute data synchronization, the first equipment establishes coffret according to the interface message and the second equipment, should
Coffret may include multiple types, for different types of data are transmitted, such as: the first equipment is set with second
Material transferring interface, warehouse coffret and measurement unit is established by the authorization message of an account number cipher between standby to transmit
The interface messages such as interface, wherein material transferring interface is only used for transmission material data information, and warehouse coffret is only used for transmitting
Depot data information, measurement unit interface are only used for transmission measurement unit data information.The integrated configuration scheme is in addition to being configured with
For connecting the interface message of the second equipment, it is provided with target identification information, the target identification information is logical for the first equipment
The coffret that the interface message and the second equipment are formed is crossed to go to obtain the target data content in the second equipment.
It should be noted that integrated configuration scheme can store in current system after establishing for the first time, when the first equipment
When subsequent needs are synchronous again for identical target data content progress data, without being once again set up integrated configuration scheme.
It is understood that the interface between the first equipment and the second equipment is docked in addition to above-mentioned lifted example, in practical applications
It can also be realized by the interface message of other forms, data transmission interface also may include more different types, tool
Body is herein without limitation.
202, the first equipment parses synchronizing information, should to parse the first instruction information that synchronizing information includes
First corresponding first data content of instruction information.
In the present embodiment, the first equipment is first after receiving the synchronizing information that the second equipment is sent by coffret
First synchronizing information is parsed, to parse the first instruction information included by it, the first instruction information instruction is corresponding
First data content.The method of first the first data content of device analysis may is that the first equipment parses synchronizing information,
Be mapped as the data format of current system, thus according to the data after parsing analyze synchronizing information included by correspond to
First instruction information of the first data content, analysis result i.e. first indicate that information can be the category for extracting the first data content
The classification of property or its corresponding data content.For example, the first equipment by parsing synchronizing information after, be mapped as currently be
The data format of system, then extract the first data content be encoded to PM.003 information corresponding to specific material money
Material, coding PM.003 are the first instruction information signified in the present embodiment, and specific material data is the first data content.
It should be noted that the first data content in the present embodiment may include different letters in practical applications
Breath, specifically herein without limitation.
203, the first equipment judges the first data content with the presence or absence of in the first equipment according to the first instruction information.
In the present embodiment, the first instruction information is used to indicate corresponding first data content, and the first equipment can be according to the
One instruction information is inquired in current system, to judge whether the first data content has existed in current system, for example,
First instruction information is coding PM.003 information, and coding PM.003 information indicates its corresponding specific material information.
204, when the first data content is there are in the first equipment, the first equipment parses the first data content, with
Second indication information included by the first data content is parsed, corresponding second data content of the second indication information.
In the present embodiment, the first equipment parses the first data content, is wrapped to parse the first data content
The second indication information of the second data content of correspondence included.The method that first equipment parses the first data content can be refering to step
202, details are not described herein again.For example, the first instruction information is to be encoded to the information of PM.003, the corresponding instruction of PM.003 information is specific
Material data A be the first data content, the first device analysis goes out in first data content also comprising corresponding to the second number
According to the second indication information of content, i.e. material data A further includes the information being encoded to U.002, and U.002 the corresponding instruction of information is specific
Measurement data B, second indication information is coding U.002 information, and the second data content is specific measurement data B.
205, the first equipment judges the second data content with the presence or absence of in the first equipment according to second indication information.
In the present embodiment, the first equipment is currently after parsing second indication information, according to second indication information
It is inquired in system, to judge whether the second data content has existed current system.
206, when the first equipment is not present in the second data content, the first equipment judges whether second indication information belongs to mesh
Mark identification information.
In the present embodiment, when the first equipment confirms the second data content there is no in the first equipment, confirmed by judgement
Whether second indication information belongs to the target identification information configured in integrated configuration scheme, to carry out the synchronous behaviour of next step data
Make, if belonging to, the first equipment needs to obtain corresponding second data content, if being not belonging to, the first equipment does not need to obtain
Second data content.
207, when second indication information belongs to target identification information, the first equipment passes through transmission according to second identifier information
Interface obtains the second data content in the second equipment.
In the present embodiment, second indication information belongs to target identification information, and the first equipment is judging second indication information category
After Target indication information, passed through in the second data in coffret the second equipment of acquisition according to the second indication information
Hold.
The step 106 that the present embodiment is also seen in Fig. 1 is understood that specific details are not described herein again.
208, the first equipment parses the second data content, to judge whether the second data content further includes that third refers to
Show information, third instruction information corresponds to third data content.
In the present embodiment, the first equipment can first solve the second data content after obtaining the second data content
Then analysis judge whether the second data content further includes that third indicates information according to parsing result, so that it is determined that data synchronize is
No to complete, specific analysis mode can be refering to step 202, and details are not described herein again.
It should be noted that in the present embodiment, if further comprising other data in the second data content, the first equipment meeting
Continue the similar operation of 202-208 that repeats the above steps, until the data content finally obtained no longer includes other data.
209, it is synchronous to complete data for the first equipment.
In the present embodiment, the second data content no longer includes other data.First equipment judges the second data in step 206
Whether content indication information belongs to target identification information, and when confirmation is not belonging to, it is synchronous that the first equipment completes this data;When true
Recognize when belonging to, in step 208, after the first equipment does not include other data by judgement the second data content of confirmation, first is set
Standby this data of completing synchronize.
In the present embodiment, the reception system in heterogeneous system is by being arranged link information and data in integrated configuration scheme
Information carries out multiplex roles with heterogeneous system and docks, realizes the asynchronous transmission of its data between heterogeneous system, at the same time, connect
Receipts system is realized automatically and accurately by data content included in parsing reception data to all related data contents
Real-time synchronization.
Fig. 3 is another embodiment schematic diagram of method of data synchronization in the embodiment of the present application, as shown in figure 3, the application is real
It applies method of data synchronization in example and is applied to heterogeneous system, include the first equipment and the second equipment in the heterogeneous system, comprising:
301, the first equipment receives the synchronizing information that second equipment is sent by coffret.
The present embodiment can be understood that details are not described herein again refering to the step 201 in Fig. 2.
302, the first equipment parses synchronizing information, should to parse the first instruction information that synchronizing information includes
First corresponding first data content of instruction information.
The present embodiment can be understood that details are not described herein again refering to the step 202 in Fig. 2.
303, the first equipment judges the first data content with the presence or absence of in the first equipment according to the first instruction information.
The present embodiment can be understood that details are not described herein again refering to the step 203 in Fig. 2.
304, when the first data content is there is no in the first equipment, the first equipment judges whether the first instruction information belongs to
Target identification information.
In the present embodiment, for the first data content there is no in the first equipment, the first equipment is analyzing the first instruction information
Later, it can first determine whether that the first data content whether there is in the first equipment, in the absence of confirmation, the first equipment is judged
Whether the first instruction information belongs to the target identification information configured in integrated configuration scheme, with the synchronous behaviour of the next step data of determination
Make.The present embodiment can specifically be understood that details are not described herein again refering to the step 206 in Fig. 2.
305, the first equipment of data content obtains first in the second equipment according to the first instruction information by coffret
Data content.
In the present embodiment, the first instruction information belongs to target identification information.When the first equipment determines that first refers to by judgement
Show that information belongs to after the target identification information configured in integrated configuration scheme, can be obtained in the second equipment by coffret
First data content.
306, the first equipment parses the first data content, to parse the second finger included by the first data content
Show information, corresponding second data content of the second indication information.
In the present embodiment, the first data content includes the second indication information corresponding to the second data content, is set when first
After getting the first data content, the first data content can be parsed, to analyze included by the first data content
The second indication information corresponding to the second data content, specific analysis mode can be managed refering to the step 202 in Fig. 2
Solution, details are not described herein again.
307, the first equipment judges the second data content with the presence or absence of in the first equipment according to second indication information.This implementation
Example in can refering in Fig. 2 step 203 or step 205 understood that details are not described herein again.
308, it is synchronous to complete data for the first equipment.
In the present embodiment, the second data content is present in the first equipment, when the first equipment judges that the second data content is deposited
When in the first equipment, it is synchronous that the first equipment completes this data.
In the present embodiment, the reception system in heterogeneous system is by being arranged link information and data in integrated configuration scheme
Information carries out multiplex roles with heterogeneous system and docks, realizes the asynchronous transmission of its data between heterogeneous system, at the same time, connect
Receipts system is realized automatically and accurately by data content included in parsing reception data to all related data contents
Real-time synchronization.
Fig. 4 is another embodiment schematic diagram of method of data synchronization in the embodiment of the present application, as shown in figure 4, the application is real
It applies method of data synchronization in example and is applied to heterogeneous system, include the first equipment and the second equipment in the heterogeneous system, comprising:
401, the first equipment starts synchrodata.
In the present embodiment, when needing to synchronize the data in heterogeneous system, the first equipment starts to execute isomery system
Data between system are synchronous.
402, the first equipment detects whether to be configured with integrated configuration scheme.
In the present embodiment, when the first equipment, which starts execution data, to be synchronized, need whether to be configured in first detection system
For the related integrated configuration scheme for needing synchronous data.The integrated configuration scheme is configured in creation for connecting
The interface message and target identification information of second equipment.When starting to execute data synchronization, the first equipment is according to the interface message
Coffret is established with the second equipment, which includes multiple types, is transmitted for different types of data.Example
Such as: material transferring interface being established by the authorization message of an account number cipher between the first equipment and the second equipment, warehouse passes
Defeated interface and measurement unit coffret, wherein material transferring interface is only used for transmission material data information, warehouse coffret
It is only used for transmission depot data information, measurement unit interface is only used for transmission measurement unit data information.The target identification information
It is used to indicate the first equipment and passes through the target data content in the coffret the second equipment of acquisition.It should be noted that integrated
Allocation plan can be stored in current system after establishing for the first time, when the first equipment subsequent needs again and repeatedly for pair
It should be when the data of same target identification information be synchronous, without the setting for carrying out Integrated Solution again.
It is understood that in practical applications, the interface between the first equipment and the second equipment, which docks, can pass through it
He the interface message of form realizes that data transmission interface also may include more different types, does not limit herein specifically
It is fixed.
403, in the absence of the first equipment detects integrated configuration scheme, integrated configuration scheme is established.
In the present embodiment, in the absence of the first equipment detects integrated configuration scheme, the first equipment carries out integrated match first
Set the foundation of scheme.The integrated configuration scheme needs to configure the interface message and target mark for connecting the second equipment in creation
Know information.When starting to execute data synchronization, the first equipment establishes coffret according to the interface message and the second equipment, the biography
Defeated interface includes multiple types, is transmitted for different types of data.The target identification information is used to indicate the first equipment
The target data content in the second equipment is obtained by the coffret.
It should be noted that the present embodiment after establishing completion integrated configuration scheme, will continue to execute step 401 and step
Rapid 402.
404, the synchronizing information received is resolved to the synchrodata of current system format by the first equipment.
In the present embodiment, integrated configuration scheme is had existed in the first equipment, is connect receiving the second equipment by transmission
After the synchronizing information that mouth is sent, transmission data parsing is mapped as to the data format of current system, becomes current system number
According to.
405, the first equipment judges it with the presence or absence of instruction information according to the synchrodata after parsing, and the instruction information is corresponding
Specific data content.
In the present embodiment, the first equipment is sentenced after synchronizing information parsing is become the synchrodata of current system format
Instruction information of the synchrodata of breaking with the presence or absence of corresponding specific data content.For example, the synchronizing information that the first equipment receives
For an order PO001233, the order data is parsed, then judges exist in the order corresponding to specific data content
Indicate information PM.001, N.001U.001 corresponding specific data content be material data A and warehouse enciphered data B with
And measurement unit data C.
406, the first equipment parses the classification of corresponding data content according to instruction information.
In the present embodiment, the first equipment parses the instruction information pair after determining that synchrodata includes instruction information
The classification for the data content answered.For example, different data contents has the material data for being encoded to PM.001, PM.002, PM.003,
It is encoded to warehouse data N.001, N.002, N.003, and is encoded to measurement unit data U.001, U.002.
407, the corresponding coffret of the first equipment calls.
In the present embodiment, the first equipment passes through the class of the data content after parsing corresponding data content classification
Not, corresponding coffret is called.Such as: material data can only be transmitted by corresponding material transferring interface, warehouse data
The transmission of data can only be carried out by corresponding warehouse coffret.
408, the first equipment obtains data content and parses the data content.
In the present embodiment, the first equipment is after opening and calling corresponding coffret, by the coffret from second
According to the classification of data content and instruction acquisition of information data content in equipment, and data content parsing is become into current system
System format.It should be noted that whether the first equipment before obtaining data, judge it according to the basic data classification first
Through being present in the first system, when it be not present, the first equipment can also judge whether to need again according to integrally disposed scheme same
The basic data is walked, when the basic data belongs to the target basic data of required acquisition in integrated configuration scheme, first is set
It is standby that corresponding basic data can be just obtained by coffret.Such as the data content be encoded to PM.001, PM.002,
The material data of PM.003 is encoded to warehouse data N.001, N.002, N.003, and is encoded to meter U.001, U.002
Unit data is measured, the judgement of the first equipment is encoded to the material data of PM.001, PM.002 and is encoded to metering U.001, U.002
Unit data is already present in the first equipment, and is encoded to the material data of PM.003, is encoded to N.001, N.002, N.003
Warehouse data when belonging to the synchronous target data content of the needs being arranged in integrally disposed scheme, i.e. coding PM.003,
N.001, instruction information N.002, N.003 belongs to the target identification information in integrated configuration scheme, and the first equipment is called respectively
Material transferring interface and warehouse coffret obtain the material data for being encoded to PM.003 from the second equipment, be encoded to N.001,
N.002, these data after acquisition, can also be resolved to the data format of current system by warehouse data N.003.
409, whether the first equipment judges in the data content to further include other instruction information, other instruction information are corresponding
Corresponding data content.
In the present embodiment, the first equipment get the data content and resolved to current system data format it
Afterwards, judging the data content, whether there is also the other instruction information for corresponding to specific data content.
It should be noted that in the present embodiment, if there is also correspond to it in the data content that the judgement of the first equipment obtains
Other instruction information of his data content, then repeat step 406-409, until not wrapping in other data contents parsed
Containing the other instruction information corresponding to specific data content.When in the data content parsed no longer comprising other instruction information
When, then follow the steps 404 and 405.Quote it is above-mentioned in the step 408 for example, if the first equipment is from the second equipment
In the material data for being encoded to PM.003 obtained, more basic data content is further comprised, such as material information a, then first is set
It is standby to repeat step 406-409, corresponding data content a is gone out according to the material readout for being encoded to PM.003, is called
Whether heterogeneous system basic data interface obtains data content a and parses to it, also include pair in final data content a
It should be in the instruction information of other data content.
410, the synchrodata parsed and the data content of acquisition are generated current system data packet by the first equipment.
In the present embodiment, the first equipment in judgment step 405 in the data content of received synchrodata and acquisition
There is no after the instruction information of other other corresponding specific data contents, the received all data of institute are generated into current system
Data packet.
411, the first equipment saves current system data packet.
In the present embodiment, the first equipment is after generating current system data packet, in systems by data packet preservation, from
And it ensure that the safety of data.
412, it is synchronous to complete data for the first equipment.
In the present embodiment, the first equipment terminates this data simultaneously operating after having saved data packet.
In the present embodiment, the reception system in heterogeneous system is by being arranged link information and data in integrated configuration scheme
Information carries out multiplex roles with heterogeneous system and docks, realizes the asynchronous transmission of its data between heterogeneous system, at the same time, connect
Receipts system is realized automatically and accurately by data content included in parsing reception data to all related data contents
Real-time synchronization.
The above-mentioned method synchronous to data in the embodiment of the present application is described, next will be in the embodiment of the present application
The synchronous device of data be introduced, referring to Fig. 5, Fig. 5 is an implementation of data synchronization unit in the embodiment of the present application
It illustrates and is intended to, which is applied to heterogeneous system, includes the first equipment and the second equipment, the synchronous dress of the data in the heterogeneous system
It is set to first equipment, comprising:
Receiving unit 501, for receiving the synchronizing information that the second equipment is sent by coffret, which is used for
Indicate that the first equipment carries out data and synchronizes, which is that the first equipment is formed according to interface message the second equipment of connection,
The interface message be the first equipment establish integrated configuration scheme in configure, the integrated configuration scheme further include target identification letter
Breath, the target identification information obtain the target data content in the second equipment for the first equipment by interface;
Resolution unit 502, for being parsed to the received synchronizing information of receiving unit 501, to parse synchronizing information
The the first instruction information for including, the first instruction information correspond to the first data content;
Whether judging unit 503, the first instruction information for being parsed according to resolution unit 502 judge the first data content
There are in the first equipment;
Unit 504 is terminated, for when judging unit 503 judge the first data content there are in the first equipment, completion the
The synchronization of one data content;
Judging unit 503 is also used to after judging the first data content there is no in the first equipment, judges the first instruction
Whether information belongs to target identification information;
Acquiring unit 505, for passing through when judging unit 503 judges that the first instruction information belongs to target identification information
Coffret obtains the first data content in the second equipment, to complete the synchronization of the first data content.
In the present embodiment, data synchronization unit in heterogeneous system can by creating an integrated configuration scheme, and
Link information and data information are set wherein, carries out multiplex roles with heterogeneous system and docks, to realize itself and heterogeneous system
Between data asynchronous transmission, at the same time, the data synchronization unit can also pass through parsing reception data included in number
According to content, the real-time synchronization to all related data contents is realized automatically and accurately.
Fig. 6 is a kind of network equipment infrastructure schematic diagram provided by the embodiments of the present application, which is applied to isomery
System, includes the first equipment and the second equipment in the heterogeneous system, which can generate because configuration or performance are different
Bigger difference may include one or more central processing units (central processing units, CPU)
622 (for example, one or more processors) and memory 632, one or more storage application programs 642 or data
644 storage medium 630 (such as one or more mass memory units).Wherein, memory 632 and storage medium 630
It can be of short duration storage or persistent storage.The program for being stored in storage medium 630 may include one or more module (figures
Show and do not mark), each module may include to the series of instructions operation in server.Further, central processing unit 622
It can be set to communicate with storage medium 630, the series of instructions operation in storage medium 630 executed on the network equipment 60.
The central processing unit 622 can operate according to instruction and execute following steps:
The synchronizing information that second equipment is sent is received by coffret, and the synchronizing information is used to indicate described the
One equipment carries out data and synchronizes, and the coffret is that first equipment is formed according to interface message connection second equipment
, the interface message is configured in integrated configuration scheme that first equipment is established, and the integrated configuration scheme is also wrapped
Target identification information is included, the target identification information obtains described second by the coffret for first equipment and sets
Target data content in standby;
The synchronizing information is parsed, to parse the first instruction information that the synchronizing information includes, described the
One corresponding first data content of instruction information;
Judge first data content with the presence or absence of in first equipment according to the first instruction information;
If it exists, then the synchronization of the first data content is completed;
If it does not exist, then judge whether the first instruction information belongs to the target identification information;
If the first instruction information belongs to the target identification information, passed through according to the first instruction information described
Coffret obtains first data content in second equipment, to complete the synchronization of first data content.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.
The computer program product includes one or more computer instructions.Load and execute on computers the meter
When calculation machine program instruction, entirely or partly generate according to process or function described in the embodiment of the present invention.The computer can
To be general purpose computer, special purpose computer, computer network or other programmable devices.The computer instruction can be deposited
Storage in a computer-readable storage medium, or from a computer readable storage medium to another computer readable storage medium
Transmission, for example, the computer instruction can pass through wired (example from a web-site, computer, server or data center
Such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave) mode to another website
Website, computer, server or data center are transmitted.The computer readable storage medium can be computer and can deposit
Any usable medium of storage either includes that the data storages such as one or more usable mediums integrated server, data center are set
It is standby.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or partly lead
Body medium (such as solid state hard disk Solid State Disk (SSD)) etc..
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: ROM, RAM, disk or CD etc..
It is provided for the embodiments of the invention a kind of synchronous method of data above and the network equipment has carried out detailed Jie
It continues, used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only
It is to be used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this hair
Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage
Solution is limitation of the present invention.
Claims (10)
1. a kind of synchronous method of data, which is characterized in that the method is applied to heterogeneous system, includes in the heterogeneous system
First equipment and the second equipment, comprising:
First equipment receives the synchronizing information that second equipment is sent by coffret, and the synchronizing information is for referring to
Show that first equipment carries out data and synchronizes, the coffret is first equipment according to interface message connection described second
What equipment was formed, the interface message is configured in integrated configuration scheme that first equipment is established, the integrated configuration
Scheme further includes target identification information, and the target identification information obtains institute by the coffret for first equipment
State the target data content in the second equipment;
First equipment parses the synchronizing information, to parse the first instruction letter that the synchronizing information includes
Breath, corresponding first data content of the first instruction information;
First equipment judges first data content with the presence or absence of first equipment according to the first instruction information
In;
If it exists, then first equipment completes the synchronization of first data content;
If it does not exist, then first equipment judges whether the first instruction information belongs to the target identification information;
If the first instruction information belongs to the target identification information, first equipment is according to the first instruction information
First data content in second equipment is obtained by the coffret, to complete first data content
It is synchronous.
2. the method according to claim 1, wherein the method also includes:
First equipment parses first data content, with parse that first data content includes second
Indicate information, corresponding second data content of the second indication information;
First equipment judges second data content with the presence or absence of first equipment according to the second indication information
In;
If it exists, then first equipment completes the synchronization of second data content;
If it does not exist, then first equipment judges whether the second indication information belongs to the target identification information;
If the second indication information belongs to the target identification information, first equipment is according to the second indication information
Second data content in second equipment is obtained by the coffret, to complete second data content
It is synchronous;
If the second indication information is not belonging to the target identification information, it is synchronous to terminate data.
3. method according to claim 1 or 2, which is characterized in that the target identification information and the interface message pair
It answers, the interface message includes different data-interface, the transmission for different types of information.
4. method according to claim 1 or 2, which is characterized in that first equipment solves the synchronizing information
Analysis, to parse the first instruction information that the synchronizing information includes, comprising:
Synchronizing information parsing is become synchrodata identical with first equipment data form by first equipment;
First equipment parses the first instruction information according to the synchrodata.
5. method according to claim 1 or 2, which is characterized in that first equipment is according to the first instruction information
After obtaining first data content in second equipment by the coffret, further includes:
First equipment saves first data content.
6. method according to claim 1 or 2, which is characterized in that first equipment is received by the coffret
After the synchronizing information that second equipment is sent, further includes:
First equipment saves the synchronizing information.
7. a kind of synchronous device of data, which is characterized in that described device is applied to heterogeneous system, includes in the heterogeneous system
First equipment and the second equipment, described device are first equipment, and described device includes:
Receiving unit, for receiving the synchronizing information that second equipment is sent by coffret, the synchronizing information is used for
It is synchronous to indicate that first equipment carries out data, the coffret is first equipment according to interface message connection described the
What two equipment were formed, the interface message is configured in integrated configuration scheme that first equipment is established, described integrated to match
The scheme of setting further includes target identification information, and the target identification information passes through described in interface acquisition for first equipment
Target data content in second equipment;
Resolution unit, for being parsed to the received synchronizing information of the receiving unit, to parse the synchronous letter
The first instruction information that breath includes, corresponding first data content of the first instruction information;
Judging unit, the first instruction information for being parsed according to the resolution unit judge that first data content is
It is no that there are in first equipment;
Unit is terminated, for completing when the judging unit judges first data content there are in first equipment
The synchronization of first data content;
The judging unit is also used to after judging first data content there is no in first equipment, described in judgement
Whether the first instruction information belongs to the target identification information;
Acquiring unit, for the judging unit judge it is described first instruction information belong to the target identification information when, root
First data content in second equipment is obtained by the coffret according to the first instruction information, to complete
The synchronization of first data content.
8. device according to claim 7, which is characterized in that
The resolution unit is also used to parse first data content, to parse the first data content packet
The second indication information included, the second indication information correspond to second data content;
The judging unit is also used to judge second data according to the second indication information that the resolution unit parses
Content is with the presence or absence of in first equipment;
The termination unit is also used to judge second data content in the judging unit that there are in first equipment
When, complete the synchronization of second data content;
The judging unit is also used to when judging second data content there is no in first equipment, described in judgement
Whether second indication information belongs to the target identification information;
The acquiring unit is also used to judge that the second indication information belongs to the target identification information in the judging unit
When, second data content in second equipment is obtained by the coffret according to the second indication information,
To complete the synchronization of second data content;
The termination unit is also used to judge that the second indication information is not belonging to the target identification letter in the judging unit
When breath, it is synchronous to terminate data.
9. a kind of network equipment, which is characterized in that the network equipment is applied to heterogeneous system, includes the in the heterogeneous system
One equipment and the second equipment, the network equipment are first equipment, and the network equipment includes: input unit, output dress
It sets, processor and memory, is stored with program instruction in the memory;
By calling the operational order of the memory storage, the processor, for executing such as any one of claim 1-6
The method.
10. a kind of computer readable storage medium, including instruction, which is characterized in that when described instruction is transported on a computing device
When row, so that the computer equipment executes such as method of any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811261210.0A CN109271454B (en) | 2018-10-26 | 2018-10-26 | Data synchronization method and network equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811261210.0A CN109271454B (en) | 2018-10-26 | 2018-10-26 | Data synchronization method and network equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109271454A true CN109271454A (en) | 2019-01-25 |
CN109271454B CN109271454B (en) | 2021-02-02 |
Family
ID=65195300
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811261210.0A Active CN109271454B (en) | 2018-10-26 | 2018-10-26 | Data synchronization method and network equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109271454B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111767564A (en) * | 2020-09-03 | 2020-10-13 | 北京悠易网际科技发展有限公司 | Data replacement method and device and electronic equipment |
CN112100249A (en) * | 2020-11-20 | 2020-12-18 | 北京药联健康科技有限公司 | Data mining method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102137030A (en) * | 2010-01-22 | 2011-07-27 | 腾讯科技(深圳)有限公司 | Instant messaging system and method for personal setting data transmission |
US20120117154A1 (en) * | 2010-11-04 | 2012-05-10 | Hitachi, Ltd. | Method for utilizing heterogeneous storage systems by cooperating with server side storage software |
CN105069161A (en) * | 2015-08-26 | 2015-11-18 | 浪潮软件股份有限公司 | Data interaction method and data interaction device |
CN106570135A (en) * | 2016-10-27 | 2017-04-19 | 深圳市中科长海科技股份有限公司 | Data synchronization method and device for databases |
CN106649342A (en) * | 2015-10-30 | 2017-05-10 | 北京国双科技有限公司 | Data processing method and apparatus in data acquisition platform |
-
2018
- 2018-10-26 CN CN201811261210.0A patent/CN109271454B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102137030A (en) * | 2010-01-22 | 2011-07-27 | 腾讯科技(深圳)有限公司 | Instant messaging system and method for personal setting data transmission |
US20120117154A1 (en) * | 2010-11-04 | 2012-05-10 | Hitachi, Ltd. | Method for utilizing heterogeneous storage systems by cooperating with server side storage software |
CN105069161A (en) * | 2015-08-26 | 2015-11-18 | 浪潮软件股份有限公司 | Data interaction method and data interaction device |
CN106649342A (en) * | 2015-10-30 | 2017-05-10 | 北京国双科技有限公司 | Data processing method and apparatus in data acquisition platform |
CN106570135A (en) * | 2016-10-27 | 2017-04-19 | 深圳市中科长海科技股份有限公司 | Data synchronization method and device for databases |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111767564A (en) * | 2020-09-03 | 2020-10-13 | 北京悠易网际科技发展有限公司 | Data replacement method and device and electronic equipment |
CN112100249A (en) * | 2020-11-20 | 2020-12-18 | 北京药联健康科技有限公司 | Data mining method and system |
CN112100249B (en) * | 2020-11-20 | 2021-03-30 | 北京药联健康科技有限公司 | Data mining method and system |
Also Published As
Publication number | Publication date |
---|---|
CN109271454B (en) | 2021-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110535965A (en) | A kind of data processing method and device, storage medium | |
CN106209948B (en) | A kind of data push method and device | |
CN110413441A (en) | Active and standby storage volume synchrodata method of calibration, device, equipment and storage medium | |
CN106685990A (en) | Safety detecting method and safety detecting device based on industrial Internet operation system | |
CN103716356B (en) | Storing process operating method, device and system based on web | |
CN103647701B (en) | The control method and device of instantaneous communication system message forwarding | |
CN104219280B (en) | A kind of intelligent use data transmission channel | |
CN105190530A (en) | Transmitting hardware-rendered graphical data | |
CN110912805B (en) | Message reading state synchronization method, terminal, server and system | |
CN109271454A (en) | A kind of method and the network equipment that data are synchronous | |
CN110381439B (en) | Positioning method, positioning device, server, storage medium and terminal | |
CN103368897B (en) | The method of delivery applications program, Apparatus and system | |
CN117439838B (en) | Edge computing gateway master-slave machine-oriented self-adaptive rapid networking method | |
CN107645597A (en) | The synchronous method and terminal of application program | |
CN108713199A (en) | Right management method, system, mobile terminal, shared charging equipment and server | |
CN116132488A (en) | Physical terminal management and control method and system based on edge technology | |
CN109962967A (en) | The method of data synchronization subscribed to based on increment | |
CN116761144A (en) | Method and device for accessing equipment to Internet of things platform | |
CN115052003B (en) | Data synchronization method, related device and medium | |
CN109218142A (en) | One kind being based on OneM2M agreement platform of internet of things terminal access method and device | |
CN108737568A (en) | A kind of data interaction system and method based on Message Queuing server | |
CN110519160A (en) | Things-internet gateway multimode communication means, device and computer readable storage medium | |
CN105072166A (en) | Service outlet and customer real-time interactive communication method and device | |
CN109960594A (en) | Method without intrusively transmitting tracking id when Java far call C is serviced | |
CN105916184B (en) | A kind of industrial wireless sensing network termination implementation method meeting ISA100.11a standard |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |