CN107979631B - Data synchronization method and device - Google Patents
Data synchronization method and device Download PDFInfo
- Publication number
- CN107979631B CN107979631B CN201610941440.6A CN201610941440A CN107979631B CN 107979631 B CN107979631 B CN 107979631B CN 201610941440 A CN201610941440 A CN 201610941440A CN 107979631 B CN107979631 B CN 107979631B
- Authority
- CN
- China
- Prior art keywords
- data
- synchronization
- operation interface
- data packet
- log
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000001360 synchronised effect Effects 0.000 claims abstract description 68
- 238000005516 engineering process Methods 0.000 claims description 16
- 238000004891 communication Methods 0.000 claims description 12
- 238000004806 packaging method and process Methods 0.000 claims description 8
- 238000006243 chemical reaction Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 12
- 238000005538 encapsulation Methods 0.000 description 4
- 239000000284 extract Substances 0.000 description 4
- 230000005856 abnormality Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000001681 protective effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/178—Techniques for file synchronisation in file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention relates to the technical field of information, and discloses a method and a device for data synchronization, wherein the method for client equipment comprises the following steps: sending a request to the server equipment, and receiving an operation interface sent by the server equipment in response to the request; presenting the received operation interface; after receiving an input synchronization instruction from an operation interface, calling a client program; obtaining, by the client program, synchronized data from a plurality of data sources; and encapsulating the obtained synchronous data into a data packet, and sending the data packet to the server equipment for data synchronization. The method can ensure to obtain complete synchronous data, synchronize all data needing to be synchronized into the system, and improve the diversity of data synchronization.
Description
Technical Field
The present invention relates to the field of information technology, and in particular, to a method and an apparatus for data synchronization.
Background
The user of the application can perform various service operations on the device, and when performing the service operations, it is necessary to synchronize the service operation related information or some changed basic information to a remote entity such as a remote database or a service system. For example, the user may invoke a local billing program for billing using billing software or a billing system accessing the server side. When the invoicing operation is carried out, information of invoicing or some initialized basic information need to be synchronized to a remote application server.
In the prior art, data synchronization is performed by service application software, wherein the data source of synchronization is fixed, which results in incomplete data synchronization and fails to synchronize all data to be synchronized into the system.
Disclosure of Invention
It is an object of the present invention to provide a method and apparatus for data synchronization that solves at least in part the above mentioned technical problems.
In order to achieve the above object, the present invention provides a method for data synchronization, which is used for a client device, and comprises: sending a request to the server equipment, and receiving an operation interface sent by the server equipment in response to the request; presenting the received operation interface; after receiving an input synchronization instruction from an operation interface, calling a client program; obtaining, by the client program, synchronized data from a plurality of data sources; and encapsulating the obtained synchronous data into a data packet, and sending the data packet to the server equipment for data synchronization.
Preferably, the method further comprises: receiving input synchronization conditions from an operation interface; the received synchronization condition is encapsulated into a data packet, which is sent to the server device to save the synchronization condition.
Preferably, the method further comprises: receiving input log content items from an operation interface; packaging the received log content items into data packets, and sending the data packets to the server device; receiving a synchronous log generated by the server equipment according to the log content item; presenting the received synchronization log.
Preferably, the obtaining, by the client program, synchronized data from a plurality of data sources includes: the client program obtains multiple types of synchronization data from at least two of the database, the application program, and the file system using Java technology and/or C + + technology.
According to another aspect of the present invention, there is provided a method of data synchronization for a server apparatus, the method including: receiving a request sent by client equipment; responding to the request, extracting the operation interface, and sending the operation interface to the client equipment; receiving a data packet sent by client equipment; and analyzing the synchronous data from the data packet, converting the synchronous data into a format used for synchronization, and synchronizing the format-converted synchronous data into one or more systems.
Preferably, the method further comprises: analyzing a synchronization condition from a data packet, and storing the synchronization condition; the synchronizing the format-converted synchronization data into one or more systems comprises: and loading the stored synchronization conditions, and synchronizing the format-converted synchronization data into one or more systems according to the synchronization conditions.
Preferably, the method further comprises: analyzing a log content item from the data packet; calling corresponding log content information according to the log content items, and generating a synchronous log by using the log content information; the synchronization log is sent to the client device.
According to another aspect of the present invention, there is provided an apparatus for data synchronization, for a client device, the apparatus including: the communication module is used for sending a request to the server equipment and receiving an operation interface sent by the server equipment in response to the request; the processing module is used for presenting the received operation interface, calling a client program after receiving an input synchronization instruction from the operation interface, acquiring synchronous data from various data sources through the client program, and packaging the acquired synchronous data into a data packet; the communication module is further used for sending the data packet to the server equipment for data synchronization.
Preferably, the processing module is further configured to receive an input synchronization condition from the operation interface, and encapsulate the received synchronization condition into a data packet; the communication module is further configured to send the data packet to the server device to store the synchronization condition.
Preferably, the processing module is further configured to receive an input log content item from the operation interface, and package the received log content item into a data packet; the communication module is also used for sending the data packet to the server equipment and receiving a synchronous log generated by the server equipment according to the log content item; the processing module is further configured to present the received synchronization log.
Preferably, the processing module is configured to obtain, by the client program, a plurality of types of synchronization data from at least two of the database, the application program, and the file system using Java technology and/or C + + technology.
According to another aspect of the present invention, there is provided an apparatus for data synchronization, for a server device, the apparatus including: the receiving module is used for receiving a request sent by the client equipment; the processing module is used for responding to the request and extracting the operation interface; the sending module is used for sending the extracted operation interface to the client equipment; the receiving module is also used for receiving a data packet sent by the client device; the processing module is further used for analyzing the synchronous data from the data packet, converting the synchronous data into a format used for synchronization, and synchronizing the format-converted synchronous data into one or more systems.
Preferably, the processing module is further configured to parse a synchronization condition from the data packet, store the synchronization condition, load the stored synchronization condition, and synchronize the format-converted synchronization data into one or more systems according to the synchronization condition.
Preferably, the processing module is further configured to parse a log content item from the data packet, call corresponding log content information according to the log content item, and generate a synchronization log by using the log content information; the sending module is further configured to send the synchronization log to the client device.
According to the technical scheme, the method comprises the steps of sending a request to the server equipment, receiving an operation interface sent by the server equipment in response to the request, presenting the received operation interface, calling a client program after receiving an input synchronization instruction from the operation interface, obtaining synchronization data from various data sources through the client program, packaging the obtained synchronization data into a data packet, and sending the data packet to the server equipment for data synchronization. Therefore, in the invention, the operation interface is obtained from the server equipment by requesting, and when the synchronization instruction is input in the operation interface, the client program for synchronization is called to obtain the synchronization data from the plurality of data sources for synchronization operation, so that complete synchronization data can be ensured to be obtained, each data to be synchronized is synchronized into the system, and the diversity of data synchronization is improved.
Additional features and advantages of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow diagram of a method for data synchronization of a client device in accordance with an embodiment of the present invention;
FIG. 2 is a schematic view of an operator interface according to an embodiment of the present invention;
FIG. 3 is a flow diagram of a process of providing synchronization conditions according to an embodiment of the present invention;
FIG. 4 is a flow diagram of a process for customizing a synchronization log according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a synchronization log according to an embodiment of the invention;
FIG. 6 is a flow diagram of a method for data synchronization of a server device according to an embodiment of the present invention;
FIG. 7 is a flow diagram of a process for generating a custom synchronization log according to an embodiment of the invention;
FIG. 8 is a schematic diagram of an exemplary scenario for data synchronization according to an embodiment of the present invention;
FIG. 9 is a flow chart of a method of data synchronization in the scenario shown in FIG. 8, in accordance with an embodiment of the present invention;
FIG. 10 is a block diagram of an apparatus for data synchronization of a client device according to an embodiment of the present invention; and
fig. 11 is a structural diagram of an apparatus for data synchronization of a client device according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
Fig. 1 is a flowchart of a method for data synchronization according to an embodiment of the present invention, which can be used for various client devices, such as PCs (personal computers), smartphones, tablets, and the like. As shown in fig. 1, the method may include the following steps.
In step S110, a request is sent to the server apparatus, and an operation interface sent by the server apparatus in response to the request is received.
For example, when a synchronization-related web page is opened on a client device, the client device sends an http request to a server device. The server device extracts the operation interface and sends the operation interface to the client device.
In step S120, the received operation interface is presented.
The client device displays the received operation interface, for example, the operation interface as shown in fig. 2, in a display or a screen. The operation interface records the time of the last data synchronization and the starting date and the ending date of the last execution.
In addition, in another example, the execution condition of each time of synchronizing data, the synchronized IP, the port configuration, the fixed setting condition, and the like can also be checked in the operation interface.
In step S130, after receiving the input synchronization command from the operation interface, the client program is called.
For example, when a "synchronize" button in the operation interface is clicked, and a synchronization instruction is received from the operation interface, the client device may call the client program by using an object and a method built in the browser.
In this way, the operation interface can be obtained by accessing the server device, the client program is called by operating in the operation interface to send the synchronous data to the server device, and the server device carries out data synchronization.
In step S140, synchronized data is obtained from a variety of data sources by the client program.
In one embodiment, the obtaining of synchronized data from multiple data sources by the client program may include the client program obtaining multiple types of synchronized data from at least two of a database, an application program, and a file system using Java technology and/or C + + technology.
For example, the client program may obtain data of different data types and different data structures from different data sources such as a database, an application program (e.g., invoicing software), a file system, and the like through java or C + +. For example, the different types of structured data may include character-type, date-type, numerical-type, etc. data in a database, and the different types of unstructured data may include pictures, videos, text files, word documents, etc. in a file system.
Therefore, data of different data sources, data of different types and data of different structures can be synchronized, and the diversity of data synchronization is improved.
In step S150, the obtained synchronization data is encapsulated into a data packet, and the data packet is transmitted to the server apparatus for data synchronization.
For example, after the client program obtains the data, the client program transmits the data packet to the server device through network encryption, data encoding and encapsulation, and by establishing a socket link channel with the server device. After receiving the data packet, the server device decrypts and decodes the data packet, analyzes the data packet to obtain data, converts the data into a format for synchronization, and synchronizes the data after format conversion to a database or a file system or other application systems. The security of data transmission can be improved by encrypting through an encryption method.
By the technical scheme, complete synchronous data can be obtained, all data needing to be synchronized are synchronized into the system, and the diversity of data synchronization is improved.
In one embodiment, as shown in FIG. 3, the method may further include the following steps.
In step S302, an input synchronization condition is received from the operation interface.
In step S304, the received synchronization condition is encapsulated into a packet, which is transmitted to the server apparatus to save the synchronization condition.
For example, a user inputs a synchronization condition in an operation interface, and the client device transmits a data packet carrying the synchronization condition to the server device through network encryption, data encoding and encapsulation, and a socket link channel established with the server device. After receiving the data packet, the server equipment decrypts the data packet, analyzes the data packet to obtain a synchronization condition, stores the synchronization condition, and directly loads the maintained synchronization condition for data synchronization during synchronization.
Therefore, when the user synchronizes data, the server equipment can automatically load the synchronization condition, and the user does not need to input the synchronization condition every time, so that the use of the user is facilitated.
In one embodiment, as shown in fig. 4, the method may further include the following steps.
In step S402, the input log content item is received from the operation interface.
In step S404, the received log content item is packaged into a data packet, and the data packet is transmitted to the server apparatus.
In step S406, a synchronization log generated by the server device from the log content item is received.
In step S408, the received synchronization log is presented.
For example, a user may customize the synchronization log. The user inputs log content items such as an operator of the synchronization operation, operation time, elapsed time, execution result, failure reason, and the like through the operation interface. The client device passes the data packets carrying the log content items to the server device by network encryption, data encoding and encapsulation, and by establishing a socket link channel with the server device. And after receiving the data packet, the server equipment decrypts the data packet, and analyzes the data packet to obtain the log content item. The server device extracts relevant information from the log based on the log content item, generates a synchronization log using the relevant information, and sends the synchronization log to the client device. The client device receives the synchronization log and then performs presentation, and the presented synchronization log is as shown in fig. 5.
Therefore, the customized synchronous log can be provided according to the user requirement, and the use by the user is facilitated, so that the error positioning can be timely carried out when the abnormity occurs.
Fig. 6 is a flowchart of a method of data synchronization according to an embodiment of the present invention, which may be used for various server devices, such as an application server, a system server, and the like. As shown in fig. 6, the method may include the following steps.
In step S610, a request sent by the client device is received.
In step S620, in response to the request, the operation interface is extracted and sent to the client device.
In step S630, a data packet transmitted by the client device is received.
In step S640, the synchronization data is parsed from the data packet, the synchronization data is converted into a format for synchronization, and the format-converted synchronization data is synchronized into one or more systems.
For example, the client device sends an http request to the server device, and the server device receives the http request, extracts the operation interface in response to the http request, and sends the operation interface to the client device. And the user enables the client device to call the client program to send the synchronous data to the server device through the operation in the operation interface. For example, after the client program acquires the data, the client program transmits the data packet to the server device by network encryption, data encoding and encapsulation, and by establishing a socket link channel with the server device. And after receiving the data packet, the server equipment decrypts and decodes the data, and analyzes the data packet to obtain the data used for synchronization. The server device may perform format conversion on the data according to a correspondence between the set format and the system to be synchronized, so that the data after the format conversion is adapted to the system to be synchronized. The format-converted data is then synchronized to a corresponding system to be synchronized, such as a database or file system, or other application system.
The Netty open-source technology framework can be adopted, so that the plurality of client devices can be simultaneously transmitted to the server device, and the transmission efficiency is improved. Moreover, data can be encrypted and transmitted, and data security is enhanced.
In an embodiment, the method may further include parsing out the synchronization condition from the data packet, and storing the synchronization condition. Synchronizing the format-converted synchronization data to one or more systems may include loading the stored synchronization conditions, and synchronizing the format-converted synchronization data to one or more systems according to the synchronization conditions.
Therefore, when the user synchronizes data, the server equipment can automatically load the synchronization condition, and the user does not need to input the synchronization condition every time, so that the use of the user is facilitated.
In an embodiment, as shown in fig. 7, the method may further include the following steps.
In step S702, the log content item is parsed from the data packet.
In step S704, the corresponding log content information is called from the log content item, and a synchronization log is generated using the log content information.
In step S706, the synchronization log is transmitted to the client device.
Therefore, the customized synchronous log can be provided according to the user requirement, and the use by the user is facilitated, so that the error positioning can be timely carried out when the abnormity occurs.
FIG. 8 is a diagram of an exemplary scenario for data synchronization according to an embodiment of the present invention. The system for data synchronization comprises a client device and a server device, wherein the client device comprises a browser and a client program, and the client program can access a database, invoicing software and a file system in the client device. The client device and the server device establish connection through TCP/IP, and the server device can synchronize data of a file system, a database and other application systems of the system. As shown in fig. 9, the method in this embodiment may include the following steps.
In step S902, the browser of the client device transmits an http request to the server device. In step S904, the server device receives the http request, and extracts the operation interface. In step S906, the server device transmits the operation interface to the client device in response to the http request. In step S908, the client device receives the operation interface sent by the server device in response to the http request. In step S910, the browser of the client device presents the received operation interface, for example, the operation interface as shown in fig. 2. In step S912, when the "synchronize" button is clicked in the operation interface, a synchronization instruction is received from the operation interface, and the client device calls the client program using the object and method built in the browser. In step S914, the client program obtains a plurality of types of synchronization data from the database, the application program, and the file system using Java technology and/or C + + technology. In step S916, the client device receives the input synchronization condition from the operation interface. In step S918, the client device encapsulates the synchronization data and the synchronization condition encryption in a data packet, and transmits the data packet to the server device. In step S920, the server device receives the data packet sent by the client device, decrypts the data packet, and parses the synchronization data and the synchronization condition from the data packet. In step S922, the server device converts the synchronization data into a format used for synchronization, and synchronizes the format-converted synchronization data to a file system, a database, and other application systems in the system according to the synchronization condition. In step S924, the client device receives the input log content item from the operation interface. In step S926, the client apparatus encapsulates the received log content item into a data packet, and transmits the data packet to the server apparatus. In step S928, the server apparatus receives the data packet carrying the log content item, and parses the log content item from the data packet. In step S930, the server device calls corresponding log content information from the log content item, generates a synchronization log using the log content information, and transmits the synchronization log to the client device. In step S932, the client device receives the synchronization log generated by the server device from the log content item. In step S934, the browser of the client device renders the received synchronization log.
The above examples are only used to illustrate the technical solution of the present invention, and are not intended to limit the scope of the present invention.
Fig. 10 is a block diagram of an apparatus for data synchronization according to an embodiment of the present invention, which may be used for various client devices, such as a PC (personal computer), a smart phone, a tablet computer, and the like. As shown in fig. 10, the apparatus may include the following modules.
The communication module 1010 is configured to send a request to the server device, and receive an operation interface sent by the server device in response to the request.
A processing module 1020, configured to present the received operation interface, call a client program after receiving an input synchronization instruction from the operation interface, obtain synchronization data from multiple data sources through the client program, and package the obtained synchronization data into a data packet;
the communication module 1010 is further configured to send the data packet to a server device for data synchronization.
In one embodiment, the processing module 1020 is further configured to receive an input synchronization condition from the operation interface, and encapsulate the received synchronization condition into a data packet; the communication module 1010 is further configured to send the data packet to the server device to save the synchronization condition.
In an embodiment, the processing module 1020 is further configured to receive an input log content item from the operation interface, and package the received log content item into a data packet; the communication module 1010 is further configured to send the data packet to a server device, and receive a synchronization log generated by the server device according to the log content item; the processing module 1020 is also for presenting the received synchronization log.
In one embodiment, processing module 1020 is configured to obtain, by a client program, multiple types of synchronized data from at least two of a database, an application, and a file system using Java technology and/or C + + technology.
The above apparatus corresponds to the foregoing method for a client device, and specific embodiments may refer to the foregoing method for detailed description, which is not repeated herein.
By the technical scheme, complete synchronous data can be ensured to be obtained, each data to be synchronized is synchronized into the system, and the diversity of data synchronization is improved; when the user synchronizes data, the server equipment can automatically load the synchronization condition, and the user does not need to input the synchronization condition every time, so that the user can conveniently use the data; the customized synchronous log can be provided according to the needs of the user, so that the user can use the synchronous log conveniently, and error positioning can be performed in time when an abnormality occurs.
Fig. 11 is a block diagram of an apparatus for data synchronization according to an embodiment of the present invention, which can be used for various server devices, such as an application server, a system server, and the like. As shown in fig. 11, the apparatus may include the following modules.
A receiving module 1110, configured to receive a request sent by a client device;
the processing module 1120 is used for responding to the request and extracting the operation interface;
a sending module 1130, configured to send the extracted operation interface to the client device;
the receiving module 1110 is further configured to receive a data packet sent by the client device;
the processing module 1120 is further configured to parse the synchronization data from the data packet, convert the synchronization data into a format for synchronization, and synchronize the format-converted synchronization data to one or more systems.
In an embodiment, the processing module 1120 is further configured to parse the synchronization condition from the data packet, store the synchronization condition, load the stored synchronization condition, and synchronize the format-converted synchronization data to one or more systems according to the synchronization condition.
In an embodiment, the processing module 1120 is further configured to parse a log content item from the data packet, retrieve corresponding log content information according to the log content item, and generate a synchronization log by using the log content information; the sending module 1130 is also configured to send the synchronization log to the client device.
The above apparatus corresponds to the foregoing method for a server device, and specific embodiments may refer to the foregoing method for detailed description, which is not described herein again.
By the technical scheme, complete synchronous data can be ensured to be obtained, each data to be synchronized is synchronized into the system, and the diversity of data synchronization is improved; when the user synchronizes data, the server equipment can automatically load the synchronization condition, and the user does not need to input the synchronization condition every time, so that the user can conveniently use the data; the customized synchronous log can be provided according to the needs of the user, so that the user can use the synchronous log conveniently, and error positioning can be performed in time when an abnormality occurs.
The preferred embodiments of the present invention have been described in detail with reference to the accompanying drawings, however, the present invention is not limited to the specific details of the above embodiments, and various simple modifications can be made to the technical solution of the present invention within the technical idea of the present invention, and these simple modifications are within the protective scope of the present invention.
It should be noted that the various technical features described in the above embodiments can be combined in any suitable manner without contradiction, and the invention is not described in any way for the possible combinations in order to avoid unnecessary repetition.
In addition, any combination of the various embodiments of the present invention is also possible, and the same should be considered as the disclosure of the present invention as long as it does not depart from the spirit of the present invention.
Claims (6)
1. A method of data synchronization for a client device, the method comprising:
sending a request to the server equipment, and receiving an operation interface sent by the server equipment in response to the request;
presenting the received operation interface;
after receiving an input synchronization instruction from an operation interface, calling a client program;
obtaining, by the client program, synchronized data from a plurality of data sources;
packaging the obtained synchronous data into a data packet, and sending the data packet to server equipment for data synchronization;
the method further comprises the following steps:
receiving input synchronization conditions from an operation interface;
encapsulating the received synchronization condition into a data packet, and sending the data packet to the server device to save the synchronization condition;
the method further comprises the following steps:
receiving input log content items from an operation interface;
packaging the received log content items into data packets, and sending the data packets to the server device;
receiving a synchronous log generated by the server equipment according to the log content item;
presenting the received synchronization log.
2. The method of claim 1, wherein obtaining, by the client program, synchronized data from a plurality of data sources comprises:
the client program obtains multiple types of synchronization data from at least two of the database, the application program, and the file system using Java technology and/or C + + technology.
3. A method of data synchronization for a server device, the method comprising:
receiving a request sent by client equipment;
responding to the request, extracting the operation interface, and sending the operation interface to the client equipment;
receiving a data packet sent by client equipment;
analyzing synchronous data from the data packet, converting the synchronous data into a format used for synchronization, and synchronizing the format-converted synchronous data into one or more systems;
the method further comprises the following steps:
analyzing a synchronization condition from a data packet, and storing the synchronization condition;
the synchronizing the format-converted synchronization data into one or more systems comprises:
loading the stored synchronous conditions, and synchronizing the synchronous data after format conversion into one or more systems according to the synchronous conditions;
the method further comprises the following steps:
analyzing a log content item from the data packet;
calling corresponding log content information according to the log content items, and generating a synchronous log by using the log content information;
the synchronization log is sent to the client device.
4. An apparatus for data synchronization for a client device, the apparatus comprising:
the communication module is used for sending a request to the server equipment and receiving an operation interface sent by the server equipment in response to the request;
the processing module is used for presenting the received operation interface, calling a client program after receiving an input synchronization instruction from the operation interface, acquiring synchronous data from various data sources through the client program, and packaging the acquired synchronous data into a data packet;
the communication module is also used for sending the data packet to the server equipment for data synchronization;
the processing module is also used for receiving input synchronization conditions from the operation interface and packaging the received synchronization conditions into a data packet;
the communication module is also used for sending the data packet to the server equipment so as to store the synchronization condition;
the processing module is further used for receiving input log content items from the operation interface and packaging the received log content items into data packets;
the communication module is also used for sending the data packet to the server equipment and receiving a synchronous log generated by the server equipment according to the log content item;
the processing module is further configured to present the received synchronization log.
5. The apparatus according to claim 4, wherein the processing module is configured to obtain multiple types of synchronization data from at least two of the database, the application program, and the file system via the client program using Java technology and/or C + + technology.
6. An apparatus for data synchronization for a server device, the apparatus comprising:
the receiving module is used for receiving a request sent by the client equipment;
the processing module is used for responding to the request and extracting the operation interface;
the sending module is used for sending the extracted operation interface to the client equipment;
the receiving module is also used for receiving a data packet sent by the client device;
the processing module is also used for analyzing the synchronous data from the data packet, converting the synchronous data into a format used for synchronization, and synchronizing the format-converted synchronous data into one or more systems; the processing module is also used for analyzing the synchronization condition from the data packet, storing the synchronization condition, loading the stored synchronization condition, and synchronizing the format-converted synchronization data into one or more systems according to the synchronization condition; the processing module is also used for analyzing the log content items from the data packets, calling corresponding log content information according to the log content items and generating synchronous logs by using the log content information;
the sending module is further configured to send the synchronization log to the client device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610941440.6A CN107979631B (en) | 2016-10-25 | 2016-10-25 | Data synchronization method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610941440.6A CN107979631B (en) | 2016-10-25 | 2016-10-25 | Data synchronization method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107979631A CN107979631A (en) | 2018-05-01 |
CN107979631B true CN107979631B (en) | 2021-06-22 |
Family
ID=62005129
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610941440.6A Active CN107979631B (en) | 2016-10-25 | 2016-10-25 | Data synchronization method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107979631B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109858905B (en) * | 2018-12-21 | 2023-04-25 | 航天信息软件技术有限公司 | Cross-system electronic certificate processing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101477568A (en) * | 2009-02-12 | 2009-07-08 | 清华大学 | Integrated retrieval method for structured data and non-structured data |
CN101820449A (en) * | 2010-04-20 | 2010-09-01 | 江苏电力调度通信中心 | Cross-safety zone application service isolation platform |
CN102137123A (en) * | 2010-01-25 | 2011-07-27 | 腾讯科技(北京)有限公司 | Device and method for realizing process-to-process communication of different application programs on mobile terminal |
CN102891873A (en) * | 2011-07-21 | 2013-01-23 | 腾讯科技(深圳)有限公司 | Method for storing log data and log data storage system |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7191192B2 (en) * | 2002-09-30 | 2007-03-13 | International Business Machines Corporation | Metadirectory agents having extensible functions |
US8453191B2 (en) * | 2008-09-19 | 2013-05-28 | Texas Instruments Incorporated | Method of broadcasting audio and video data over a time-slicing network, an audio and video data processor and a DVB-H system |
CN101609610B (en) * | 2009-07-17 | 2011-06-15 | 中国民航大学 | Flight information data acquisition unit and processing method thereof |
CN102063502B (en) * | 2011-01-06 | 2013-07-31 | 天津神舟通用数据技术有限公司 | Method for realizing synchronization of data in heterogeneous database |
CN104282093B (en) * | 2013-07-04 | 2017-02-15 | 航天信息股份有限公司 | Tax-control equipment collective invoicing system and method |
CN104504094B (en) * | 2014-12-26 | 2018-03-30 | 中国石油集团工程设计有限责任公司北京分公司 | A kind of multiple data sources integrated management method and data management system for oil gas field |
-
2016
- 2016-10-25 CN CN201610941440.6A patent/CN107979631B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101477568A (en) * | 2009-02-12 | 2009-07-08 | 清华大学 | Integrated retrieval method for structured data and non-structured data |
CN102137123A (en) * | 2010-01-25 | 2011-07-27 | 腾讯科技(北京)有限公司 | Device and method for realizing process-to-process communication of different application programs on mobile terminal |
CN101820449A (en) * | 2010-04-20 | 2010-09-01 | 江苏电力调度通信中心 | Cross-safety zone application service isolation platform |
CN102891873A (en) * | 2011-07-21 | 2013-01-23 | 腾讯科技(深圳)有限公司 | Method for storing log data and log data storage system |
Also Published As
Publication number | Publication date |
---|---|
CN107979631A (en) | 2018-05-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10609009B2 (en) | Extended javascript object notation file generator circuitry and process | |
CN106549989B (en) | Data transmission method and system, user terminal and application server | |
HU223910B1 (en) | Method of transmitting information data from a sender to a reciever via a transcoder, method of transcoding information data, method of receiving transcoded information data, sender, receiver and transcoder | |
CN107529132B (en) | Method and device for transmitting data between Bluetooth device and application program | |
CN103763529B (en) | A kind of digital supervision plateform system and its method for quickly accessing warning device | |
CN106060787A (en) | A method, device and equipment for sending information | |
US11709722B2 (en) | Extensible communication framework and communication method supporting multiple communication protocols | |
CN108419046B (en) | Monitoring method and device for multi-channel video | |
CN105117344B (en) | A kind of Interface integration method of testing and system based on PB | |
CN107979631B (en) | Data synchronization method and device | |
US9294954B2 (en) | Method and system for online communication | |
CN110515910A (en) | Data processing method, device and computer-readable storage medium among heterogeneous systems | |
CN113934477A (en) | Theme rendering method and device, electronic equipment and computer-readable storage medium | |
CN112579235B (en) | Method, transcoding center, client, device and medium for internationalization of response data | |
EP3038390B1 (en) | Processing method and apparatus for signaling tracing | |
CN113472785B (en) | Data processing method and device, electronic equipment and readable storage medium | |
CN114186104A (en) | Recording, storage and query method, system and server of protocol data | |
CN103428280A (en) | Mobile terminal based mobile service data acquisition method and system | |
JP6471459B2 (en) | COMMUNICATION DEVICE, LOG PROCESSING PROGRAM, COMMUNICATION SYSTEM, AND LOG PROCESSING METHOD | |
CN105281976A (en) | Method and apparatus for monitoring transmission of proxy service data | |
CN105610595B (en) | A fault data acquisition system and remote equipment control system and corresponding method | |
CN104052628A (en) | Protocol packet detection method and protocol packet detection device | |
CN105306233B (en) | Terminal management method and system, server and terminal | |
CN112449212B (en) | Audio and video code stream processing method and device and control equipment | |
CN117440124A (en) | Method and system for realizing software split-screen electronic table board supporting domestic environment |
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 |