WO2018036327A1 - Data synchronization method and apparatus - Google Patents

Data synchronization method and apparatus Download PDF

Info

Publication number
WO2018036327A1
WO2018036327A1 PCT/CN2017/094103 CN2017094103W WO2018036327A1 WO 2018036327 A1 WO2018036327 A1 WO 2018036327A1 CN 2017094103 W CN2017094103 W CN 2017094103W WO 2018036327 A1 WO2018036327 A1 WO 2018036327A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
request
data synchronization
terminal
terminal system
Prior art date
Application number
PCT/CN2017/094103
Other languages
French (fr)
Chinese (zh)
Inventor
何敬
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018036327A1 publication Critical patent/WO2018036327A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Definitions

  • the present disclosure relates to the field of computer technology, for example, to a data synchronization method and apparatus.
  • each heterogeneous system typically has its own data management module and data format.
  • the data management interface between multiple heterogeneous systems is not centralized, the data of each heterogeneous system is an information island, so that the data managed by the heterogeneous system can only be performed in each heterogeneous system.
  • the operation brings inconvenience to the user.
  • data synchronization between multiple heterogeneous systems is required to achieve unified management of user data in multiple heterogeneous systems.
  • the related art adopts a heterogeneous system as a subordinate system and sets a superordinate system for a plurality of subordinate systems.
  • the data is increased in the upper system.
  • Delete and modify operations and the superior system is responsible for adding, deleting, and modifying data to all subordinate systems.
  • the synchronized data flows from the superior system to the lower system in one direction, and the lower system can only passively accept the data synchronization, and cannot actively initiate the data synchronization request. Therefore, the data synchronization method between heterogeneous systems in the related art is not flexible and convenient in use, and has limited limitations.
  • the present disclosure provides a data synchronization method and apparatus, which can solve the problem that the related system can only synchronize data from a superior system of a heterogeneous system to multiple heterogeneous systems, and multiple heterogeneous systems can only passively accept data synchronization.
  • the present disclosure provides a data synchronization method, the step of performing on the synchronization system side includes: recording system information of a plurality of terminal systems registered to a synchronization network, forming a registration list; receiving a data synchronization request sent by the terminal system; The registration list forwards the data synchronization request to a terminal system other than the terminal system that transmits the data synchronization request to perform data synchronization within the synchronization network.
  • the method further includes: determining, according to the registration list, whether the terminal system that sends the data synchronization request is legally registered; and if it is legally registered, forwarding to the other terminal system according to the registration list.
  • the data synchronization request is a request for forwarding to the terminal system.
  • the method Before forwarding the data synchronization request to the terminal system other than the terminal system that sends the data synchronization request, the method further includes: converting the data format of the data synchronization request to the other terminal system. The recognized data format.
  • the data synchronization request is a request formed by triggering an increase, deletion or modification operation of the data in the terminal system that sends the data synchronization request.
  • the present disclosure also provides a data synchronization method, the step of performing on the terminal system side includes: transmitting system information of the terminal system to the synchronization system to complete synchronization network registration; and transmitting a data synchronization request of the terminal system to the a synchronization system, by which the data synchronization request is forwarded to other terminal systems in the synchronization network; and a data synchronization request from the other terminal systems in the synchronization network forwarded by the synchronization system is received.
  • the method further includes: converting the data format of the data synchronization request of the terminal system into a data format recognizable by other terminal systems in the synchronization network. .
  • the method further includes: converting the received data format of the data synchronization request into data identifiable by the terminal system format.
  • the data synchronization request of the terminal system is a request formed by triggering an increase, deletion or modification operation of data in the terminal system; and the data synchronization request of the other terminal system is an increase of trigger data in other terminal systems.
  • the present disclosure provides a data synchronization device, which is disposed on a synchronization system side, and includes: a recording module configured to record system information of a plurality of terminal systems registered to a synchronization network to form a registration list; and a first receiving module configured to receive a a data synchronization request sent by the terminal system; the first sending module is configured to forward the data synchronization request to other terminal systems other than the terminal system that sends the data synchronization request according to the registration list, in the synchronization Data synchronization within the network.
  • the first sending module is configured to: before the forwarding of the data synchronization request to the terminal system other than the terminal system that sends the data synchronization request, determine the sending station according to the registration list Whether the terminal system of the data synchronization request is legally registered; if legally registered, forwarding the data synchronization request to the other terminal system according to the registration list.
  • the first sending module is configured to: before the forwarding the data synchronization request to the terminal system other than the terminal system that sends the data synchronization request, the data format of the data synchronization request Convert to a data format identifiable by the other terminal system.
  • the data synchronization request is a request formed by triggering an increase, deletion or modification operation of the data in the terminal system that sends the data synchronization request.
  • the present disclosure further provides a data synchronization device, which is disposed on the terminal system side, and includes: a registration module, configured to send system information of the terminal system to the synchronization system to complete synchronization network registration; and the second sending module is configured to a data synchronization request of the terminal system is sent to the synchronization system, and the data synchronization request is forwarded by the synchronization system to other terminal systems in the synchronization network; and the second receiving module is configured to receive the synchronization A data synchronization request from the other terminal systems in the synchronization network forwarded by the system.
  • a registration module configured to send system information of the terminal system to the synchronization system to complete synchronization network registration
  • the second sending module is configured to a data synchronization request of the terminal system is sent to the synchronization system, and the data synchronization request is forwarded by the synchronization system to other terminal systems in the synchronization network
  • the second receiving module is configured to receive the synchronization A data synchronization request from the other terminal systems in
  • the second sending module is configured to convert the data format of the data synchronization request of the terminal system into the synchronous network before sending the data synchronization request of the terminal system to the synchronization system. Data formats identifiable by other end systems.
  • the second receiving module is configured to: after receiving the data synchronization request from the other terminal systems in the synchronization network that is forwarded by the synchronization system, convert the data format of the received data synchronization request It is a data format identifiable by the terminal system.
  • the data synchronization request of the terminal system is a request formed by triggering an increase, deletion or modification operation of data in the terminal system; the data synchronization request of the other terminal system is an increase of trigger data in other terminal systems, A request formed by deleting or modifying an operation.
  • the present disclosure also provides a computer readable storage medium storing computer executable instructions for use in any of the methods of data synchronization described above.
  • the plurality of terminal systems of the present disclosure are respectively connected to the synchronization system; the plurality of terminal systems are peer-to-peer relationships, and each terminal system can initiate a data synchronization request, and the data synchronization request is forwarded by the synchronization system in the entire network, and the data is received.
  • the terminal system of the data synchronization request performs the data synchronization request, and synchronizes the data within the entire network by forwarding the data synchronization request in the entire network.
  • FIG. 1 is a schematic structural diagram of data synchronization between heterogeneous systems in the related art
  • FIG. 2 is a structural diagram of a synchronous network system according to a first embodiment
  • FIG. 3 is a flowchart of a data synchronization method on a terminal system side according to a second embodiment
  • FIG. 4 is a flowchart of a data synchronization method on the synchronization system side according to the third embodiment
  • Figure 5 is a flow chart showing the steps of synchronization network registration according to the fourth embodiment
  • Figure 6 is a flow chart showing the steps of adding user data according to the fifth embodiment
  • Figure 7 is a timing chart of adding user data according to the fifth embodiment.
  • FIG. 8 is a schematic diagram of a user management interface of a heterogeneous system initiating a data synchronization request according to a fifth embodiment
  • FIG. 9 is a schematic diagram of a user management interface of a heterogeneous system receiving a data synchronization request according to a fifth embodiment
  • Figure 10 is a flow chart showing the steps of user data modification according to the sixth embodiment.
  • Figure 11 is a flow chart showing the steps of user data deletion according to the seventh embodiment.
  • Figure 12 is a configuration diagram of a data synchronization device on the terminal system side according to the eighth embodiment.
  • Figure 13 is a configuration diagram of a data synchronization device on the synchronization system side according to the ninth embodiment.
  • Figure 14 is a diagram showing the hardware configuration of a terminal system according to a tenth embodiment.
  • FIG. 2 is a structural diagram of a synchronous network system according to the first embodiment.
  • the synchronous network system includes: one synchronization system node and a plurality of terminal system nodes.
  • a plurality of terminal system nodes are respectively connected to the synchronization system node.
  • the plurality of terminal system nodes may be heterogeneous systems, and data synchronization between heterogeneous systems may be implemented based on the embodiment.
  • the synchronization system node and the plurality of terminal system nodes are connected by an Enterprise Media Bus (EMB).
  • EMB Enterprise Media Bus
  • the synchronization system node Switcher is configured to receive a data synchronization request initiated by any terminal system node, and forward the data synchronization request to the entire network (within the synchronous network system).
  • the data synchronization request carries data that needs to be synchronized. Therefore, data synchronization of the entire network can be implemented according to the data synchronization request forwarded by the entire network.
  • the data synchronization request includes: data addition, deletion, and modification requests.
  • Each terminal system node includes the following two aspects of functionality.
  • the terminal system node is configured to send a data synchronization request generated by the terminal system node to Switcher forwards the data synchronization request by the Switcher to the remaining terminal system nodes in the synchronous network system.
  • the terminal system node is configured to receive a data synchronization request forwarded by the Switcher, and perform a data synchronization operation at the terminal system node according to the data synchronization request.
  • multiple heterogeneous systems adopt different command formats, which results in data format of data synchronization request of multiple terminal system nodes.
  • the embodiment pre-configures the standard format of the data synchronization request, so that multiple terminal system nodes can convert the standard format into respective recognizable data formats, and convert each identifiable data format into standard format. Data format conversion operations can be performed in the Switcher or in multiple terminal system nodes.
  • the Switcher may convert the data synchronization request into a data synchronization request having a standard format before forwarding the data synchronization request; the multiple terminal system nodes receive After the data synchronization request forwarded by the Switcher, the standard format of the data synchronization request is converted into a data format recognizable by the terminal system node.
  • the terminal system node converts the data format of the data synchronization request into a standard format before transmitting the data synchronization request to the Switcher; the terminal system node synchronizes the data after receiving the data synchronization request forwarded by the Switcher.
  • the requested data format is converted to a data format that the end system node can recognize.
  • the second method can reduce the processing pressure of the Switcher.
  • each terminal system node includes: a sequentially connected adapter, a server and a user management client, and a database connecting the server.
  • the database is used to store user data.
  • the user management client is responsible for generating data synchronization requests.
  • the server is responsible for data processing of user data in the database and forwarding of data synchronization requests between the user management client and the adapter.
  • the adapter is responsible for the format conversion of the data synchronization request. Since not all devices and modules in the terminal system node can correctly identify the standard format, the adapter needs to format the data synchronization request.
  • a data synchronization request may be initiated in any terminal system node of the entire network, and unified management of data of the entire network is implemented in each terminal system node; this embodiment does not need to be managed in one centralized node, but may be in the entire network.
  • Each node is managed separately, which not only synchronizes the data of the whole network, but also facilitates the user's use, and improves the ease of use of data management operations.
  • FIG. 3 is a flowchart of a data synchronization method on the terminal system side according to the second embodiment.
  • system information of the terminal system is sent to the synchronization system to complete synchronization network registration.
  • the terminal system refers to the terminal system of the local end.
  • the terminal system can be a heterogeneous system.
  • the terminal system is the terminal system node in Figure 2.
  • the system information includes: an Internet Protocol (IP) address of the terminal system, a Media Access Control (Mac) address, and a port number.
  • IP Internet Protocol
  • Mac Media Access Control
  • a registration request is sent to the synchronization system, where the registration request carries the system information of the terminal system; the synchronization system completes the registration of the terminal system according to the registration request sent by the terminal system, the registration is completed, and the terminal system accesses the synchronization network. .
  • the data synchronization request of the terminal system is sent to the synchronization system, and the data synchronization request is forwarded to other terminal systems in the synchronization network by the synchronization system.
  • the data synchronization request of the terminal system is a request formed by triggering an increase, deletion or modification operation of data in the terminal system.
  • the data synchronization request is used to control the terminal system to add, delete or modify data.
  • the data synchronization request includes: system information of the terminal system, and data added, deleted, or modified. This data can be user data.
  • the types of data synchronization requests include: data addition requests, data deletion requests, and data modification requests.
  • the method comprises: converting the data format of the data synchronization request of the terminal system into a data format recognizable by other terminal systems in the synchronization network.
  • the data format identifiable by other terminal systems can be a standard format. Any end system in the synchronous network can convert the local format to a standard format or convert the standard format to a local format.
  • the local format refers to the data format adopted by the local terminal system. Multiple devices and modules in the terminal system can correctly identify the local format.
  • a command configuration file can be configured in the terminal system. This command configuration file provides commands for adding, deleting, and modifying data, the local and standard formats for each command, and the command interface. Among them, the command refers to the data synchronization request.
  • the command interface points to the synchronization system, which is the synchronization system Switcher in Figure 2.
  • the data synchronization request of other terminal systems is a request formed by triggering an increase, deletion or modification operation of data in other terminal systems.
  • Other terminal systems have already completed registration in the synchronization system.
  • the method further includes: converting the data format of the received data synchronization request into a data format recognizable by the terminal system.
  • the data format of the received data synchronization request is a standard format, and the terminal system needs to convert the standard format into a local format, so that multiple devices and modules in the terminal system can identify the data synchronization request.
  • the data synchronization request After receiving the data synchronization request of the other terminal system, the data synchronization request is executed, and the data is added, deleted, or modified according to the data carried in the data synchronization request, so that the data of the other terminal systems is synchronized in the terminal system.
  • the standard format of the data synchronization request can be converted into a data format recognizable by the terminal system, and then The data is added, deleted or modified to achieve synchronization of the data within the synchronous network.
  • a data synchronization request may be initiated at each terminal system, or a data synchronization request may be received on each terminal system to perform a network-wide user. management.
  • the embodiment Based on the above synchronous network system, the embodiment provides a data synchronization method performed on the synchronous system side.
  • 4 is a flowchart of a data synchronization method on the synchronization system side according to the third embodiment.
  • system information of a plurality of terminal systems registered to the synchronization network is recorded to form a registration list.
  • the system information of the terminal system is extracted from the registration request, the system information of the terminal system is updated to the registration list, and the network registration of the terminal system is completed.
  • a unique registration number is generated for the terminal system according to the system information of the terminal system and recorded in the registration list.
  • the registration list records system information of multiple terminal systems accessing the synchronization network, traverses the registration list, and acquires system information of other terminal systems other than the terminal system that sends the data synchronization request, and performs system information according to other terminal systems respectively. Addressing, forwarding the data synchronization request to other terminal systems, so that other terminal systems perform the data synchronization request after receiving the data synchronization request, and perform data addition, deletion or modification, thereby realizing data in the synchronous network range. Synchronization within.
  • the method further includes: determining, according to the registration list, whether the terminal system that sends the data synchronization request is legally registered. If it is legally registered, the data synchronization request is forwarded to other terminal systems other than the terminal system that sends the data synchronization request according to the registration list; if there is no legal registration, the data synchronization request is discarded.
  • the registration list includes system information of the terminal system that sends the data synchronization request, it is determined that the terminal system has been legally registered.
  • the method further includes: converting the data format of the data synchronization request into a data format recognizable by other terminal systems.
  • the data format of the data synchronization request is converted into a standard format, so that other terminals can convert the standard format into a local format recognizable by the terminal system.
  • user data synchronization can be performed on heterogeneous systems in the access synchronization network in real time, and user data synchronization can be implemented in the entire network.
  • user data synchronization can be implemented in the entire network.
  • FIG. 5 is a flow chart of the steps of synchronous network registration according to the fourth embodiment.
  • a Switcher configuration file is configured in multiple heterogeneous systems.
  • the Switcher configuration file is used to initiate network registration with the Switcher.
  • the Switcher configuration file includes: Switcher address information.
  • the address information includes: the IP address of the Switcher, the Mac address, and the port number. Configure the Switcher configuration file on each heterogeneous system that needs to access the synchronization network to point the heterogeneous system to the Switcher.
  • the heterogeneous system applying for registration sends a registration request to the Switcher according to the Switcher configuration file during the startup process.
  • the registration request includes system information such as the IP address, Mac address, and port number of the heterogeneous system.
  • start Switcher In a synchronous network, start Switcher first, and then start multiple heterogeneous systems in turn.
  • a heterogeneous system sends a registration request to the Switcher, if the Switcher has not been started, the heterogeneous system request will throw an exception. After the trap is caught, the heterogeneous system will send an exception request to the Switcher.
  • the registration request is accepted by Switcher.
  • the Switcher receives the registration request, and updates the system information of the heterogeneous system carried in the registration request to the registration list.
  • the Switcher generates a registration number based on the IP address, Mac address, and port number of the heterogeneous system carried in the registration request.
  • the registration number is unique.
  • the Switcher maintains a registration list in the memory of the Switcher.
  • Switcher updates the IP address, Mac address and port number of the heterogeneous system and the registration number of the heterogeneous system to the registration list. If the same heterogeneous system is repeatedly registered, Switcher ignores the registration request for that heterogeneous system.
  • Switcher feeds back the registration result to the heterogeneous system applying for registration.
  • the registration result is registration success or registration failure. If the heterogeneous system has been repeatedly registered, it can send a prompt for repeated registration.
  • the Switcher feeds back the registration result based on the system information carried in the registration request.
  • the heterogeneous system applying for registration ends the registration process after receiving the registration result.
  • the Switcher can know the information of multiple heterogeneous systems that have successfully accessed the synchronous network.
  • the switcher forwards the data synchronization request, it can complete the registration according to the maintenance registration list. The addressing of the system.
  • FIG. 6 is a flow chart showing the steps of adding user data according to the fifth embodiment.
  • Fig. 7 is a timing chart of adding user data according to the fifth embodiment. Since the steps performed by the heterogeneous system receiving the data synchronization request are substantially the same, only one heterogeneous system n, n receiving n data synchronization request, is shown schematically in FIG.
  • the user management client of the heterogeneous system acquires the increased user data to form a user data increase request.
  • User data includes: username, password, contact information, and address.
  • User data increase requests include: system information of heterogeneous systems and increased user information.
  • each heterogeneous system there is a user management client, in which the user management client can fill in the addition, deletion and modification of user data; click the corresponding add, delete or modify button to trigger the addition, deletion or modification operation; After the deletion, deletion, or modification operation is triggered, the user management client forms a data synchronization request according to the user data added, deleted, or modified by the user request, and submits the data synchronization request to the server of the heterogeneous system.
  • User data is stored in a database of a heterogeneous system; the user management client can provide a user management interface in which user data is added, deleted, and modified to form a corresponding data synchronization request.
  • the user management interface is shown in Figure 8.
  • the user management client obtains user data newly added by the user in the user management interface, forms a user data increase request according to the added user data, and submits the request to the server of the heterogeneous system.
  • the server of the heterogeneous system receives the user data increase request sent by the user management client, and forwards the user increase request to the adapter.
  • the server is used to process user data. After receiving the user data increase request, the server performs user data increase processing according to the user data carried in the user data increase request, and inserts the user data into the database.
  • the adapter is used for data format conversion of data synchronization requests.
  • the adapter of the heterogeneous system converts the data format of the user data addition request into a standard format.
  • the data synchronization request of multiple heterogeneous systems adopts different data formats.
  • the user data addition request initially formed by the user management client can be identified only by the heterogeneous system at the local end, so that other heterogeneous systems in the synchronous network can also be identified.
  • the user data addition request, the adapter converts the data format of the user data addition request into a pre-configured standard format, and the identification format is a data format that all heterogeneous systems can recognize.
  • the adapter of the heterogeneous system sends the formatted user data increase request to the Switcher.
  • the switcher receives the user data increase request, and after determining that the heterogeneous system that sends the user data increase request is a legally registered heterogeneous system, forwarding the user data increase request to the remaining heterogeneous systems in the synchronous network. .
  • the switcher obtains the system information of the heterogeneous system from the user data increase request, according to the maintenance note.
  • the book list determines whether the heterogeneous system is a legally registered heterogeneous system, and if so, forwards the user data increase request, and if not, discards the user data increase request.
  • the Switcher parses the received user data increase request, obtains the system information in the user data increase request, and queries whether the system information exists in the registration list, and if yes, determines that the heterogeneous system that sends the user data increase request is A legally registered heterogeneous system, if not present, determines that the heterogeneous system that sent the user data increase request is a heterogeneous system that is not registered. After determining that the heterogeneous system is a legally registered heterogeneous system, traversing the registration list, obtaining system information of the heterogeneous systems other than the heterogeneous system from the registration list, and addressing according to system information of the remaining heterogeneous systems , forward the user data increase request.
  • the registration list maintained by Switcher includes system information a, b, c, d, and e; heterogeneous system A sends a user data increase request to Switcher; Switcher parses the user data increase request to obtain the system in the user data increase request.
  • the information is a. After querying the registration list and finding that a is included in the registration list, it is determined that the heterogeneous system A is a legally registered heterogeneous system, and then traversing the registration list to obtain other system information b, c, d and other than a. e;
  • the Switcher addresses based on system information b, c, d, and e to forward the user data addition request.
  • the remaining heterogeneous systems perform data format conversion on the user data increase request in the respective adapters, and the respective server performs the user according to the format converted user data increase request. Data increase processing.
  • the adapter of each heterogeneous system parses the user data increase request, and converts the standard format of the user data increase request into a locally recognizable The data format, the adapter forwards the formatted user data increase request to the server, the server extracts the added user data, completes the increase of the user data in the database, and further increases the synchronization of the user data in the synchronous network.
  • the server of the heterogeneous system can transmit the user data carried in the user data increase request to the user management client for display in the user management interface, as shown in FIG. 9 .
  • the server adds user data, if it finds that the user data already exists in the database, the user data that already exists in the database is overwritten by the newly received user data.
  • the result of the processing is that the user data is successfully added or the user data is increased. If the newly received user data is used to overwrite the user data that already exists locally, the processing result is that the user data is successfully added.
  • the heterogeneous system that sends the user data addition request can display the processing results of multiple heterogeneous systems in the user management client after receiving the processing results of multiple heterogeneous systems fed back by the Switcher.
  • FIG. 10 is a flow chart showing the steps of user data modification according to the sixth embodiment.
  • the user management client of the heterogeneous system acquires the modified user data to form a user data modification request.
  • the user data modification request includes: system information of the heterogeneous system and the modified user information.
  • the user data is stored in the database of the heterogeneous system, and the user can modify the user data in the user management client of the heterogeneous system; the user management client of the heterogeneous system obtains the user data modified by the user in the user management interface, according to The modified user data forms a user data modification request and is submitted to the server of the heterogeneous system.
  • the server of the heterogeneous system receives the user data modification request sent by the user management client, and forwards the user data modification request to the adapter.
  • the server After receiving the user data modification request, the server performs user data modification processing according to the user data carried in the user data modification request, and modifies the corresponding user data in the database.
  • the adapter of the heterogeneous system converts the data format of the user data modification request into a standard format.
  • the adapter of the heterogeneous system sends the formatted user data modification request to the Switcher.
  • the switcher receives the user data modification request, and after determining that the heterogeneous system that sends the user data modification request is a legally registered heterogeneous system, forwarding the user data modification request to the remaining heterogeneous systems in the synchronous network. .
  • the remaining heterogeneous systems after receiving the user data modification request, perform data format conversion on the user data modification request in the respective adapters, and the respective server performs the user according to the format converted user data modification request. Data modification processing.
  • the server of the heterogeneous system performs the user data modification process, if the user data requesting modification is not found in the database, the user data carried in the user data modification request is inserted into the database as new user data.
  • the result of the processing is that the user data is successfully modified or the user data modification fails. If the user data is inserted into the database as new user data, the processing result is that the user data is successfully modified.
  • the heterogeneous system that sends the user data modification request can display the processing results of multiple heterogeneous systems in the user management client.
  • Figure 11 is a flow chart showing the steps of user data deletion in accordance with the seventh embodiment.
  • the user management client of the heterogeneous system acquires the deleted user data to form a user data deletion request.
  • the user data deletion request includes system information of the heterogeneous system and user data that needs to be deleted.
  • the user fills in the user data that needs to be deleted in the user management client, and the user management client generates a user data deletion request according to the user data that needs to be deleted, and sends the user data deletion request to the server.
  • the server of the heterogeneous system receives the user data deletion request sent by the user management client, and forwards the user data deletion request to the adapter.
  • the server receives the user data deletion request, deletes the user data that needs to be deleted in the database, and forwards the user data deletion request to the adapter.
  • the adapter of the heterogeneous system converts the data format of the user data deletion request into a standard format.
  • the adapter of the heterogeneous system sends the formatted user data deletion request to the Switcher.
  • the switch receives the user data deletion request, and after determining that the heterogeneous system that sends the user data deletion request is a legally registered heterogeneous system, the user data deletion request is forwarded to the remaining heterogeneous systems in the synchronous network. .
  • the remaining heterogeneous systems after receiving the user data deletion request, perform data format conversion on the user data deletion request in the respective adapters, and execute the user according to the formatted user data deletion request by the respective server. Data deletion processing.
  • the user data deletion request may be ignored.
  • the remaining heterogeneous systems feed back the processing results to the Switcher.
  • the Switcher returns the processing results of all heterogeneous systems to the heterogeneous system that sends the user data deletion request.
  • the result of the processing is that the user data deletion succeeds or the user data deletion fails. If the user data does not exist in the database, the processing result is that the user data deletion is successful.
  • the heterogeneous system that sends the user data deletion request can display it in the user management client after receiving the processing result of multiple heterogeneous systems fed back by Switcher.
  • FIG. 12 is a configuration diagram of the data synchronization apparatus on the terminal system side according to the eighth embodiment.
  • the data synchronization device on the terminal system side may include the following modules.
  • the registration module 1210 is configured to send system information of the terminal system to the synchronization system to complete synchronization network registration.
  • the second sending module 1220 is configured to send a data synchronization request of the terminal system to the synchronization system, and forward the data synchronization request to other terminal systems in the synchronization network by using the synchronization system.
  • the data synchronization request of the terminal system is a request formed by triggering an increase, deletion or modification operation of data in the terminal system.
  • the second receiving module 1230 is configured to receive a data synchronization request that is forwarded by the synchronization system from other terminal systems in the synchronization network.
  • the data synchronization request of other terminal systems is a request formed by triggering the addition, deletion or modification of data in other terminal systems.
  • the second sending module 1220 is configured to: convert the data format of the data synchronization request of the terminal system to the data system before sending the data synchronization request of the terminal system to the synchronization system Synchronize data formats identifiable by other end systems in the network.
  • the second receiving module 1230 is configured to: after receiving the data synchronization request forwarded by the synchronization system from other terminal systems in the synchronization network, the data synchronization request to be received
  • the data format is converted into a data format recognizable by the terminal system.
  • FIG. 13 is a configuration diagram of the data synchronizing apparatus on the synchronous system side according to the ninth embodiment.
  • the data synchronization device on the synchronization system side may include the following modules.
  • the recording module 1310 is configured to record system information of a plurality of terminal systems registered to the synchronization network to form a registration list.
  • the first receiving module 1320 is configured to receive a data synchronization request sent by the terminal system.
  • the data synchronization request is a request formed by triggering an addition, deletion or modification operation of data in a terminal system that transmits the data synchronization request.
  • the first sending module 1330 is configured to forward the data synchronization request to other terminal systems other than the terminal system that sends the data synchronization request according to the registration list to perform data synchronization within the synchronous network.
  • the first sending module 1330 is configured to: before forwarding the data synchronization request to the terminal system other than the terminal system that sends the data synchronization request, according to the registration list, Determining whether the terminal system that sends the data synchronization request is legally registered; if it is legally registered, forwarding the data synchronization request to a terminal system other than the terminal system that sends the data synchronization request according to the registration list.
  • the first sending module 1330 is configured to: synchronize the data before forwarding the data synchronization request to the terminal system other than the terminal system that sends the data synchronization request.
  • the requested data format is converted to a data format identifiable by the other terminal system.
  • the embodiment further provides a computer readable storage medium storing computer executable instructions for performing the above method.
  • FIG. 14 is a schematic diagram showing the hardware structure of a terminal system according to the present embodiment.
  • the terminal system includes: one or more processors 1410 and a memory 1420.
  • a processor 1410 is taken as an example in FIG.
  • the terminal system may further include: an input device 1430 and an output device 1440.
  • the processor 1410, the memory 1420, the input device 1430, and the output device 1440 in the terminal system may be connected by a bus or other means, and the bus connection is taken as an example in FIG.
  • Input device 1430 can receive input numeric or character information and generate key signal inputs related to user settings and function control of the end system.
  • the output device 1440 can include a display device such as a display screen.
  • the memory 1420 is a computer readable storage medium that can be used to store software programs, computer executable programs, and modules.
  • the processor 1410 executes a plurality of functional applications and data processing by executing software programs, instructions, and modules stored in the memory 1420 to implement any one of the above embodiments.
  • the memory 1420 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the electronic device, and the like.
  • the memory may include volatile memory such as random access memory (RAM), and may also include non-volatile memory such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
  • Memory 1420 can be a non-transitory computer storage medium or a transitory computer storage medium.
  • the non-transitory computer storage medium such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • memory 1420 can optionally include memory remotely located relative to processor 1410, which can be connected to the electronic device over a network. Examples of the above networks may include the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the terminal system of this embodiment may further include communication means for transmitting and receiving information through the communication network.
  • the terminal system of this embodiment may further include an adapter for format conversion of the data synchronization request.
  • a person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by executing related hardware by a computer program, and the program can be stored in a non-transitory computer readable storage medium.
  • the program when executed, may include the flow of an embodiment of the method as described above, wherein the non-transitory computer readable storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM). Wait.
  • the data synchronization method and device respectively connect a plurality of terminal systems to a synchronization system; a plurality of terminal systems are peer-to-peer relationships, and each terminal system can initiate a data synchronization request, and the data synchronization request is performed by the synchronization system on the entire network.
  • the intra-area forwarding, the terminal system that receives the data synchronization request performs the data synchronization request, and synchronizes the data within the entire network by forwarding the data synchronization request in the entire network.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A data synchronization method and an apparatus. The steps executed by the method on a synchronization system side comprise: recording system information registered to a plurality of terminal systems of a synchronous network to form a registration list; receiving a data synchronization request sent by one terminal system; and according to the registration list, forwarding the data synchronization request to other terminal systems. The steps executed by the method on the terminal system side comprise: sending system information about this terminal system to the synchronization system to complete synchronization network registration; sending the data synchronization request of this terminal system to the synchronization system, and forwarding, via the synchronization system, the data synchronization request to other terminal systems in the synchronous network; and receiving the data synchronization request, sent by the synchronization system, from other terminal systems in the synchronous network.

Description

数据同步方法和装置Data synchronization method and device 技术领域Technical field
本公开涉及计算机技术领域,例如涉及一种数据同步方法和装置。The present disclosure relates to the field of computer technology, for example, to a data synchronization method and apparatus.
背景技术Background technique
随着信息技术的高速发展,异构系统越来越复杂,越来越庞大,且接口越来越多。由于多个异构系统所使用的基础开发技术不同,因此每个异构系统通常都有自己的数据管理模块和数据格式。With the rapid development of information technology, heterogeneous systems are becoming more and more complex, more and more large, and more and more interfaces. Because of the different underlying development technologies used by multiple heterogeneous systems, each heterogeneous system typically has its own data management module and data format.
由于多个异构系统之间的数据管理接口没有实现集中管理,所以每个异构系统的数据都是信息孤岛,这样只能在每个异构系统中才能对该异构系统管理的数据进行操作,给用户带来了不便。为了解决该问题,需要在多个异构系统之间进行数据同步,以实现对多个异构系统中的用户数据的统一管理。Since the data management interface between multiple heterogeneous systems is not centralized, the data of each heterogeneous system is an information island, so that the data managed by the heterogeneous system can only be performed in each heterogeneous system. The operation brings inconvenience to the user. In order to solve this problem, data synchronization between multiple heterogeneous systems is required to achieve unified management of user data in multiple heterogeneous systems.
为了实现异构系统之间的数据同步,相关技术中的做法是将异构系统作为下级系统,并为多个下级系统设置一个上级系统,如图1所示,在上级系统进行数据的增加、删除和修改操作,并由上级系统负责向所有下级系统同步增加、删除和修改数据。在此过程中,同步的数据单向的从上级系统向下级系统流动,下级系统只能被动地接受数据同步,而无法主动发起数据同步请求。因此,相关技术中异构系统之间的数据同步方法在使用时不够灵活方便,而且局限性大。In order to realize data synchronization between heterogeneous systems, the related art adopts a heterogeneous system as a subordinate system and sets a superordinate system for a plurality of subordinate systems. As shown in FIG. 1, the data is increased in the upper system. Delete and modify operations, and the superior system is responsible for adding, deleting, and modifying data to all subordinate systems. In this process, the synchronized data flows from the superior system to the lower system in one direction, and the lower system can only passively accept the data synchronization, and cannot actively initiate the data synchronization request. Therefore, the data synchronization method between heterogeneous systems in the related art is not flexible and convenient in use, and has limited limitations.
发明内容Summary of the invention
本公开提供一种数据同步方法和装置,可以解决相关技术中只能由异构系统的上级系统向多个异构系统同步数据,而多个异构系统只能被动接受数据同步的问题。The present disclosure provides a data synchronization method and apparatus, which can solve the problem that the related system can only synchronize data from a superior system of a heterogeneous system to multiple heterogeneous systems, and multiple heterogeneous systems can only passively accept data synchronization.
本公开提供了一种数据同步方法,在同步系统侧执行的步骤包括:记录注册到同步网络的多个终端系统的系统信息,形成注册列表;接收一个终端系统发送的数据同步请求;根据所述注册列表,向除了发送所述数据同步请求的终端系统之外的其他终端系统转发所述数据同步请求,以在所述同步网络范围内进行数据同步。The present disclosure provides a data synchronization method, the step of performing on the synchronization system side includes: recording system information of a plurality of terminal systems registered to a synchronization network, forming a registration list; receiving a data synchronization request sent by the terminal system; The registration list forwards the data synchronization request to a terminal system other than the terminal system that transmits the data synchronization request to perform data synchronization within the synchronization network.
其中,在所述向除了发送所述数据同步请求的终端系统之外的其他终端系 统转发所述数据同步请求之前,还包括:根据所述注册列表,判断发送所述数据同步请求的终端系统是否合法注册;如果合法注册,则根据所述注册列表,向所述其他终端系统转发所述数据同步请求。Wherein, in the terminal system other than the terminal system that transmits the data synchronization request Before forwarding the data synchronization request, the method further includes: determining, according to the registration list, whether the terminal system that sends the data synchronization request is legally registered; and if it is legally registered, forwarding to the other terminal system according to the registration list. The data synchronization request.
其中,在所述向除了发送所述数据同步请求的终端系统之外的其他终端系统转发所述数据同步请求之前,还包括:将所述数据同步请求的数据格式转换为所述其他终端系统可识别的数据格式。Before forwarding the data synchronization request to the terminal system other than the terminal system that sends the data synchronization request, the method further includes: converting the data format of the data synchronization request to the other terminal system. The recognized data format.
其中,所述数据同步请求是在发送所述数据同步请求的终端系统中触发数据的增加、删除或修改操作而形成的请求。The data synchronization request is a request formed by triggering an increase, deletion or modification operation of the data in the terminal system that sends the data synchronization request.
本公开还提供了一种数据同步方法,在终端系统侧执行的步骤包括:将本终端系统的系统信息发送给同步系统,以完成同步网络注册;将本终端系统的数据同步请求发送给所述同步系统,通过所述同步系统将所述数据同步请求转发给所述同步网络中的其他终端系统;以及,接收所述同步系统转发的来自所述同步网络中其他终端系统的数据同步请求。The present disclosure also provides a data synchronization method, the step of performing on the terminal system side includes: transmitting system information of the terminal system to the synchronization system to complete synchronization network registration; and transmitting a data synchronization request of the terminal system to the a synchronization system, by which the data synchronization request is forwarded to other terminal systems in the synchronization network; and a data synchronization request from the other terminal systems in the synchronization network forwarded by the synchronization system is received.
其中,在所述将本终端系统的数据同步请求发送给所述同步系统之前,还包括:将本终端系统的数据同步请求的数据格式转换为所述同步网络中其他终端系统可识别的数据格式。Before the sending the data synchronization request of the terminal system to the synchronization system, the method further includes: converting the data format of the data synchronization request of the terminal system into a data format recognizable by other terminal systems in the synchronization network. .
其中,在所述接收所述同步系统转发的来自所述同步网络中其他终端系统的数据同步请求之后,还包括:将接收的所述数据同步请求的数据格式转换为本终端系统可识别的数据格式。After the receiving the data synchronization request from the other terminal system in the synchronization network that is forwarded by the synchronization system, the method further includes: converting the received data format of the data synchronization request into data identifiable by the terminal system format.
其中,所述本终端系统的数据同步请求是在本终端系统中触发数据的增加、删除或修改操作而形成的请求;所述其他终端系统的数据同步请求是在其他终端系统中触发数据的增加、删除或修改操作而形成的请求。The data synchronization request of the terminal system is a request formed by triggering an increase, deletion or modification operation of data in the terminal system; and the data synchronization request of the other terminal system is an increase of trigger data in other terminal systems. A request formed by deleting, modifying, or modifying an operation.
本公开提供了一种数据同步装置,设置在同步系统侧,包括:记录模块,设置为记录注册到同步网络的多个终端系统的系统信息,形成注册列表;第一接收模块,用于接收一个终端系统发送的数据同步请求;第一发送模块,设置为根据所述注册列表,向除了发送所述数据同步请求的终端系统之外的其他终端系统转发所述数据同步请求,以在所述同步网络范围内进行数据同步。The present disclosure provides a data synchronization device, which is disposed on a synchronization system side, and includes: a recording module configured to record system information of a plurality of terminal systems registered to a synchronization network to form a registration list; and a first receiving module configured to receive a a data synchronization request sent by the terminal system; the first sending module is configured to forward the data synchronization request to other terminal systems other than the terminal system that sends the data synchronization request according to the registration list, in the synchronization Data synchronization within the network.
其中,所述第一发送模块,是设置为:在所述向除了发送所述数据同步请求的终端系统之外的其他终端系统转发所述数据同步请求之前,根据所述注册列表,判断发送所述数据同步请求的终端系统是否合法注册;如果合法注册,则根据所述注册列表,向所述其他终端系统转发所述数据同步请求。 The first sending module is configured to: before the forwarding of the data synchronization request to the terminal system other than the terminal system that sends the data synchronization request, determine the sending station according to the registration list Whether the terminal system of the data synchronization request is legally registered; if legally registered, forwarding the data synchronization request to the other terminal system according to the registration list.
其中,所述第一发送模块,是设置为:在所述向除了发送所述数据同步请求的终端系统之外的其他终端系统转发所述数据同步请求之前,将所述数据同步请求的数据格式转换为所述其他终端系统可识别的数据格式。The first sending module is configured to: before the forwarding the data synchronization request to the terminal system other than the terminal system that sends the data synchronization request, the data format of the data synchronization request Convert to a data format identifiable by the other terminal system.
其中,所述数据同步请求是在发送所述数据同步请求的终端系统中触发数据的增加、删除或修改操作而形成的请求。The data synchronization request is a request formed by triggering an increase, deletion or modification operation of the data in the terminal system that sends the data synchronization request.
本公开还提供了一种数据同步装置,设置在终端系统侧,包括:注册模块,设置为将本终端系统的系统信息发送给同步系统,以完成同步网络注册;第二发送模块,设置为将本终端系统的数据同步请求发送给所述同步系统,通过所述同步系统将所述数据同步请求转发给所述同步网络中的其他终端系统;以及,第二接收模块,设置为接收所述同步系统转发的来自所述同步网络中其他终端系统的数据同步请求。The present disclosure further provides a data synchronization device, which is disposed on the terminal system side, and includes: a registration module, configured to send system information of the terminal system to the synchronization system to complete synchronization network registration; and the second sending module is configured to a data synchronization request of the terminal system is sent to the synchronization system, and the data synchronization request is forwarded by the synchronization system to other terminal systems in the synchronization network; and the second receiving module is configured to receive the synchronization A data synchronization request from the other terminal systems in the synchronization network forwarded by the system.
其中,所述第二发送模块,是设置为:在所述将本终端系统的数据同步请求发送给所述同步系统之前,将本终端系统的数据同步请求的数据格式转换为所述同步网络中其他终端系统可识别的数据格式。The second sending module is configured to convert the data format of the data synchronization request of the terminal system into the synchronous network before sending the data synchronization request of the terminal system to the synchronization system. Data formats identifiable by other end systems.
其中,所述第二接收模块,是设置为:在所述接收所述同步系统转发的来自所述同步网络中其他终端系统的数据同步请求之后,将接收的所述数据同步请求的数据格式转换为本终端系统可识别的数据格式。The second receiving module is configured to: after receiving the data synchronization request from the other terminal systems in the synchronization network that is forwarded by the synchronization system, convert the data format of the received data synchronization request It is a data format identifiable by the terminal system.
其中,所述本终端系统的数据同步请求是在本终端系统中触发数据的增加、删除或修改操作而形成的请求;所述其他终端系统的数据同步请求是其他终端系统中触发数据的增加、删除或修改操作而形成的请求。The data synchronization request of the terminal system is a request formed by triggering an increase, deletion or modification operation of data in the terminal system; the data synchronization request of the other terminal system is an increase of trigger data in other terminal systems, A request formed by deleting or modifying an operation.
本公开还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于上述任一种数据同步的方法。The present disclosure also provides a computer readable storage medium storing computer executable instructions for use in any of the methods of data synchronization described above.
本公开的多个终端系统分别连接同步系统;多个终端系统是对等关系,每个终端系统都可以发起数据同步请求,该数据同步请求由同步系统负责在全网范围内转发,接收到该数据同步请求的终端系统执行该数据同步请求,通过在全网范围内转发数据同步请求的方式,实现数据在全网范围内的同步。The plurality of terminal systems of the present disclosure are respectively connected to the synchronization system; the plurality of terminal systems are peer-to-peer relationships, and each terminal system can initiate a data synchronization request, and the data synchronization request is forwarded by the synchronization system in the entire network, and the data is received. The terminal system of the data synchronization request performs the data synchronization request, and synchronizes the data within the entire network by forwarding the data synchronization request in the entire network.
附图说明DRAWINGS
图1是相关技术中在异构系统之间进行数据同步的结构示意图;1 is a schematic structural diagram of data synchronization between heterogeneous systems in the related art;
图2是根据第一实施例的同步网络系统的结构图;2 is a structural diagram of a synchronous network system according to a first embodiment;
图3是根据第二实施例的终端系统侧的数据同步方法的流程图; 3 is a flowchart of a data synchronization method on a terminal system side according to a second embodiment;
图4是根据第三实施例的同步系统侧的数据同步方法的流程图;4 is a flowchart of a data synchronization method on the synchronization system side according to the third embodiment;
图5是根据第四实施例的同步网络注册的步骤流程图;Figure 5 is a flow chart showing the steps of synchronization network registration according to the fourth embodiment;
图6是根据第五实施例的增加用户数据的步骤流程图;Figure 6 is a flow chart showing the steps of adding user data according to the fifth embodiment;
图7是根据第五实施例的增加用户数据的时序图;Figure 7 is a timing chart of adding user data according to the fifth embodiment;
图8是根据第五实施例的发起数据同步请求的异构系统的用户管理界面的示意图;8 is a schematic diagram of a user management interface of a heterogeneous system initiating a data synchronization request according to a fifth embodiment;
图9是根据第五实施例的接收数据同步请求的异构系统的用户管理界面的示意图;9 is a schematic diagram of a user management interface of a heterogeneous system receiving a data synchronization request according to a fifth embodiment;
图10是根据第六实施例的用户数据修改的步骤流程图;Figure 10 is a flow chart showing the steps of user data modification according to the sixth embodiment;
图11是根据第七实施例的用户数据删除的步骤流程图;Figure 11 is a flow chart showing the steps of user data deletion according to the seventh embodiment;
图12是根据第八实施例的终端系统侧的数据同步装置的结构图;Figure 12 is a configuration diagram of a data synchronization device on the terminal system side according to the eighth embodiment;
图13是根据第九实施例的同步系统侧的数据同步装置的结构图;Figure 13 is a configuration diagram of a data synchronization device on the synchronization system side according to the ninth embodiment;
图14是根据第十实施例的终端系统的硬件结构示意图。Figure 14 is a diagram showing the hardware configuration of a terminal system according to a tenth embodiment.
具体实施方式detailed description
以下结合附图以及实施例,对本公开进行详细说明The present disclosure will be described in detail below with reference to the accompanying drawings and embodiments.
第一实施例First embodiment
本实施例提供了一种同步网络系统。图2为根据第一实施例的同步网络系统的结构图。This embodiment provides a synchronous network system. Fig. 2 is a structural diagram of a synchronous network system according to the first embodiment.
在同步网络系统中包括:一个同步系统节点和多个终端系统节点。多个终端系统节点分别连接同步系统节点。多个终端系统节点可以是异构系统,基于本实施例可以实现在异构系统之间进行数据同步。The synchronous network system includes: one synchronization system node and a plurality of terminal system nodes. A plurality of terminal system nodes are respectively connected to the synchronization system node. The plurality of terminal system nodes may be heterogeneous systems, and data synchronization between heterogeneous systems may be implemented based on the embodiment.
在本实施例中,同步系统节点和多个终端系统节点之间通过企业媒体总线(Enterprise Media Bus,EMB)连接。In this embodiment, the synchronization system node and the plurality of terminal system nodes are connected by an Enterprise Media Bus (EMB).
同步系统节点Switcher,用于接收任一终端系统节点发起的数据同步请求,将数据同步请求进行全网(同步网络系统范围内)转发。数据同步请求中携带需要同步的数据,因此根据全网转发的数据同步请求,可以实现全网数据同步。该数据同步请求包括:数据增加、删除和修改请求。The synchronization system node Switcher is configured to receive a data synchronization request initiated by any terminal system node, and forward the data synchronization request to the entire network (within the synchronous network system). The data synchronization request carries data that needs to be synchronized. Therefore, data synchronization of the entire network can be implemented according to the data synchronization request forwarded by the entire network. The data synchronization request includes: data addition, deletion, and modification requests.
每个终端系统节点包括以下两个方面的功能。Each terminal system node includes the following two aspects of functionality.
一方面,终端系统节点用于将该终端系统节点生成的数据同步请求发送到 Switcher,由Switcher将该数据同步请求转发给同步网络系统中其余的终端系统节点。In one aspect, the terminal system node is configured to send a data synchronization request generated by the terminal system node to Switcher forwards the data synchronization request by the Switcher to the remaining terminal system nodes in the synchronous network system.
另一方面,终端系统节点用于接收Switcher转发的数据同步请求,并根据该数据同步请求在该终端系统节点执行数据同步操作。On the other hand, the terminal system node is configured to receive a data synchronization request forwarded by the Switcher, and perform a data synchronization operation at the terminal system node according to the data synchronization request.
由于多个终端系统节点的开发技术可能是不同的,尤其在异构系统组成的同步网络中,多个异构系统采用的命令格式不同,这导致多个终端系统节点的数据同步请求的数据格式不同,为了实现数据同步,本实施例预先配置数据同步请求的标准格式,使多个终端系统节点都能够将该标准格式转换为各自能够识别的数据格式,以及将各自能够识别的数据格式转换成标准格式。数据格式的转换操作可以在Switcher中执行,也可以在多个终端系统节点中执行。Since the development techniques of multiple terminal system nodes may be different, especially in a synchronous network composed of heterogeneous systems, multiple heterogeneous systems adopt different command formats, which results in data format of data synchronization request of multiple terminal system nodes. Differently, in order to achieve data synchronization, the embodiment pre-configures the standard format of the data synchronization request, so that multiple terminal system nodes can convert the standard format into respective recognizable data formats, and convert each identifiable data format into standard format. Data format conversion operations can be performed in the Switcher or in multiple terminal system nodes.
在第一种方式中,Switcher可以在接收到终端系统节点发送的数据同步请求之后,在转发数据同步请求之前,将该数据同步请求转换为具有标准格式的数据同步请求;多个终端系统节点接收到Switcher转发的数据同步请求之后,将该数据同步请求的标准格式转换为该终端系统节点能够识别的数据格式。In the first mode, after receiving the data synchronization request sent by the terminal system node, the Switcher may convert the data synchronization request into a data synchronization request having a standard format before forwarding the data synchronization request; the multiple terminal system nodes receive After the data synchronization request forwarded by the Switcher, the standard format of the data synchronization request is converted into a data format recognizable by the terminal system node.
在第二种方式中,终端系统节点在向Switcher发送数据同步请求之前,将该数据同步请求的数据格式转换为标准格式;终端系统节点在接收到Switcher转发的数据同步请求之后,将该数据同步请求的数据格式转换为该终端系统节点能够识别的数据格式。与第一种方式相比,第二种方式可以降低Switcher的处理压力。In the second mode, the terminal system node converts the data format of the data synchronization request into a standard format before transmitting the data synchronization request to the Switcher; the terminal system node synchronizes the data after receiving the data synchronization request forwarded by the Switcher. The requested data format is converted to a data format that the end system node can recognize. Compared with the first method, the second method can reduce the processing pressure of the Switcher.
可选地,每个终端系统节点都包括:顺次连接的适配器、服务端和用户管理客户端,以及连接服务端的数据库。数据库用于存储用户数据。用户管理客户端负责生成数据同步请求。服务端负责对数据库中的用户数据进行数据处理,以及在用户管理客户端和适配器之间转发数据同步请求。适配器负责数据同步请求的格式转换。由于在终端系统节点中并不是所有设备和模块都可以正确识别出标准格式,所以需要适配器对数据同步请求进行格式转换。Optionally, each terminal system node includes: a sequentially connected adapter, a server and a user management client, and a database connecting the server. The database is used to store user data. The user management client is responsible for generating data synchronization requests. The server is responsible for data processing of user data in the database and forwarding of data synchronization requests between the user management client and the adapter. The adapter is responsible for the format conversion of the data synchronization request. Since not all devices and modules in the terminal system node can correctly identify the standard format, the adapter needs to format the data synchronization request.
本实施例可以在全网任一终端系统节点发起数据同步请求,在每个终端系统节点实现对全网数据的统一管理;本实施例不需要在一个集中节点进行管理,而是可以在全网每一个节点分别进行管理,这样既实现了全网数据的同步,方便用户使用,又提高了数据管理操作的易用性。In this embodiment, a data synchronization request may be initiated in any terminal system node of the entire network, and unified management of data of the entire network is implemented in each terminal system node; this embodiment does not need to be managed in one centralized node, but may be in the entire network. Each node is managed separately, which not only synchronizes the data of the whole network, but also facilitates the user's use, and improves the ease of use of data management operations.
第二实施例 Second embodiment
基于上述同步网络系统(也可以简称为同步网络),本实施例提供了一种在终端系统侧执行的数据同步方法。图3是根据第二实施例的终端系统侧的数据同步方法的流程图。Based on the foregoing synchronous network system (which may also be simply referred to as a synchronous network), this embodiment provides a data synchronization method performed on the terminal system side. Fig. 3 is a flowchart of a data synchronization method on the terminal system side according to the second embodiment.
在S310中,将本终端系统的系统信息发送给同步系统,以完成同步网络注册。In S310, system information of the terminal system is sent to the synchronization system to complete synchronization network registration.
本终端系统是指本端的终端系统。终端系统可以是异构系统。终端系统即是图2中的终端系统节点。The terminal system refers to the terminal system of the local end. The terminal system can be a heterogeneous system. The terminal system is the terminal system node in Figure 2.
系统信息包括:终端系统的互联网协议(Internet Protocol,IP)地址、媒体访问控制(Media Access Control,Mac)地址和端口号。The system information includes: an Internet Protocol (IP) address of the terminal system, a Media Access Control (Mac) address, and a port number.
在终端系统启动过程中向同步系统发送注册请求,该注册请求中携带终端系统的系统信息;同步系统根据终端系统发送的注册请求,完成该终端系统的注册,注册完成,终端系统接入同步网络。During the startup process of the terminal system, a registration request is sent to the synchronization system, where the registration request carries the system information of the terminal system; the synchronization system completes the registration of the terminal system according to the registration request sent by the terminal system, the registration is completed, and the terminal system accesses the synchronization network. .
在S320中,将本终端系统的数据同步请求发送给同步系统,通过同步系统将数据同步请求转发给同步网络中的其他终端系统。In S320, the data synchronization request of the terminal system is sent to the synchronization system, and the data synchronization request is forwarded to other terminal systems in the synchronization network by the synchronization system.
本终端系统的数据同步请求是在本终端系统中触发数据的增加、删除或修改操作而形成的请求。数据同步请求用于控制终端系统增加、删除或修改数据。数据同步请求包括:终端系统的系统信息,以及增加、删除或修改的数据。该数据可以是用户数据。数据同步请求的种类包括:数据增加请求、数据删除请求和数据修改请求。The data synchronization request of the terminal system is a request formed by triggering an increase, deletion or modification operation of data in the terminal system. The data synchronization request is used to control the terminal system to add, delete or modify data. The data synchronization request includes: system information of the terminal system, and data added, deleted, or modified. This data can be user data. The types of data synchronization requests include: data addition requests, data deletion requests, and data modification requests.
由于接入同步网络的多个终端系统的开发技术不同,所以多个终端系统可识别的数据格式可能不同,在本实施例中,在将本终端系统的数据同步请求发送给同步系统之前,还包括:将本终端系统的数据同步请求的数据格式转换为同步网络中其他终端系统可识别的数据格式。Since the development technologies of the plurality of terminal systems accessing the synchronization network are different, the data formats identifiable by the plurality of terminal systems may be different. In this embodiment, before the data synchronization request of the terminal system is sent to the synchronization system, The method comprises: converting the data format of the data synchronization request of the terminal system into a data format recognizable by other terminal systems in the synchronization network.
其他终端系统可识别的数据格式可以是标准格式。同步网络中任意终端系统可以将本地格式转换为标准格式,或者将标准格式转换为本地格式。本地格式是指本端的终端系统所采用的数据格式,终端系统中的多个设备和模块都可以正确识别出本地格式。可选地,可以在终端系统中配置命令配置文件。该命令配置文件提供增加、删除和修改数据使用的命令,每种命令的本地格式和标准格式,以及命令接口。其中,命令是指数据同步请求。命令接口指向同步系统,即图2中的同步系统Switcher。The data format identifiable by other terminal systems can be a standard format. Any end system in the synchronous network can convert the local format to a standard format or convert the standard format to a local format. The local format refers to the data format adopted by the local terminal system. Multiple devices and modules in the terminal system can correctly identify the local format. Optionally, a command configuration file can be configured in the terminal system. This command configuration file provides commands for adding, deleting, and modifying data, the local and standard formats for each command, and the command interface. Among them, the command refers to the data synchronization request. The command interface points to the synchronization system, which is the synchronization system Switcher in Figure 2.
在S330中,接收同步系统转发的来自同步网络中其他终端系统的数据同步 请求。In S330, receiving data synchronization from other terminal systems in the synchronous network forwarded by the synchronization system request.
其他终端系统的数据同步请求是在其他终端系统中触发数据的增加、删除或修改操作而形成的请求。其他终端系统已经在同步系统中完成注册。The data synchronization request of other terminal systems is a request formed by triggering an increase, deletion or modification operation of data in other terminal systems. Other terminal systems have already completed registration in the synchronization system.
在接收同步系统转发的来自同步网络中其他终端系统的数据同步请求之后,还包括:将接收的数据同步请求的数据格式转换为本终端系统可识别的数据格式。可选地,接收到的数据同步请求的数据格式为标准格式,终端系统需要将该标准格式转换为本地格式,使终端系统中的多个设备和模块都可以识别出数据同步请求。After receiving the data synchronization request from the other terminal systems in the synchronization network that is forwarded by the synchronization system, the method further includes: converting the data format of the received data synchronization request into a data format recognizable by the terminal system. Optionally, the data format of the received data synchronization request is a standard format, and the terminal system needs to convert the standard format into a local format, so that multiple devices and modules in the terminal system can identify the data synchronization request.
在接收到其他终端系统的数据同步请求之后,执行该数据同步请求,根据数据同步请求中携带的数据,完成数据的增加、删除或修改,实现其他终端系统的数据在本终端系统中的同步。After receiving the data synchronization request of the other terminal system, the data synchronization request is executed, and the data is added, deleted, or modified according to the data carried in the data synchronization request, so that the data of the other terminal systems is synchronized in the terminal system.
本实施例通过在同步网络中交互标准格式的数据同步请求,可以使其他终端系统接收到该数据同步请求之后,都可以将数据同步请求的标准格式转换为该终端系统可识别的数据格式,然后执行数据的增加、删除或修改操作,进而实现了数据在同步网络范围内的同步。In this embodiment, by interacting with the data synchronization request in the standard format in the synchronization network, after the other terminal systems receive the data synchronization request, the standard format of the data synchronization request can be converted into a data format recognizable by the terminal system, and then The data is added, deleted or modified to achieve synchronization of the data within the synchronous network.
在本实施例中,多个终端系统是对等的,没有上下级关系,可以在每个终端系统处发起数据同步请求,也可以在每个终端系统上接收数据同步请求,以进行全网用户管理。In this embodiment, multiple terminal systems are peer-to-peer, without a subordinate relationship, a data synchronization request may be initiated at each terminal system, or a data synchronization request may be received on each terminal system to perform a network-wide user. management.
第三实施例Third embodiment
基于上述同步网络系统,本实施例提供了一种在同步系统侧执行的数据同步方法。图4是根据第三实施例的同步系统侧的数据同步方法的流程图。Based on the above synchronous network system, the embodiment provides a data synchronization method performed on the synchronous system side. 4 is a flowchart of a data synchronization method on the synchronization system side according to the third embodiment.
在S410中,记录注册到同步网络的多个终端系统的系统信息,形成注册列表。In S410, system information of a plurality of terminal systems registered to the synchronization network is recorded to form a registration list.
注册列表中记录了接入同步网络的多个终端系统的信息。Information on multiple terminal systems accessing the synchronization network is recorded in the registration list.
在接收到终端系统发送的注册请求之后,从注册请求中提取出终端系统的系统信息,将该终端系统的系统信息更新到注册列表中,完成该终端系统的网络注册。可选地,根据终端系统的系统信息,为该终端系统生成唯一的注册号并记录在注册列表中。After receiving the registration request sent by the terminal system, the system information of the terminal system is extracted from the registration request, the system information of the terminal system is updated to the registration list, and the network registration of the terminal system is completed. Optionally, a unique registration number is generated for the terminal system according to the system information of the terminal system and recorded in the registration list.
在S420中,接收一个终端系统发送的数据同步请求。In S420, a data synchronization request sent by the terminal system is received.
在S430中,根据注册列表,向除了发送数据同步请求的终端系统之外的其 他终端系统转发该数据同步请求,以在同步网络范围内进行数据同步。In S430, according to the registration list, to the terminal system other than the terminal system that transmits the data synchronization request His terminal system forwards the data synchronization request to synchronize data within the synchronous network.
注册列表记录了接入同步网络的多个终端系统的系统信息,遍历该注册列表,获取除了发送数据同步请求的终端系统之外的其他终端系统的系统信息,分别根据其他终端系统的系统信息进行寻址,向其他终端系统转发该数据同步请求,以使其他的终端系统在接收到该数据同步请求之后,执行该数据同步请求,进行数据的增加、删除或修改,进而实现数据在同步网络范围内的同步。The registration list records system information of multiple terminal systems accessing the synchronization network, traverses the registration list, and acquires system information of other terminal systems other than the terminal system that sends the data synchronization request, and performs system information according to other terminal systems respectively. Addressing, forwarding the data synchronization request to other terminal systems, so that other terminal systems perform the data synchronization request after receiving the data synchronization request, and perform data addition, deletion or modification, thereby realizing data in the synchronous network range. Synchronization within.
在向除了发送数据同步请求的终端系统之外的其他终端系统转发数据同步请求之前,还包括:根据注册列表,判断发送数据同步请求的终端系统是否合法注册。如果合法注册,则根据注册列表,向除了发送数据同步请求的终端系统之外的其他终端系统转发数据同步请求;如果没有合法注册,则舍弃该数据同步请求。可选地,如果注册列表中包括发送数据同步请求的终端系统的系统信息,则判定该终端系统已经合法注册。Before forwarding the data synchronization request to the terminal system other than the terminal system that sends the data synchronization request, the method further includes: determining, according to the registration list, whether the terminal system that sends the data synchronization request is legally registered. If it is legally registered, the data synchronization request is forwarded to other terminal systems other than the terminal system that sends the data synchronization request according to the registration list; if there is no legal registration, the data synchronization request is discarded. Optionally, if the registration list includes system information of the terminal system that sends the data synchronization request, it is determined that the terminal system has been legally registered.
在向除了发送数据同步请求的终端系统之外的其他终端系统转发数据同步请求之前,还包括:将数据同步请求的数据格式转换为其他终端系统可识别的数据格式。可选地,将数据同步请求的数据格式转换为标准格式,使其他终端可以将标准格式转换为该终端系统可识别的本地格式。Before forwarding the data synchronization request to the terminal system other than the terminal system that sends the data synchronization request, the method further includes: converting the data format of the data synchronization request into a data format recognizable by other terminal systems. Optionally, the data format of the data synchronization request is converted into a standard format, so that other terminals can convert the standard format into a local format recognizable by the terminal system.
在本实施例中S430之前的上述两个步骤先后顺次不做限定,也可为并列步骤。The above two steps before S430 in this embodiment are not limited in sequence, and may be a parallel step.
通过本实施例,可以实时地对接入同步网络中的异构系统进行用户数据同步,在全网范围内实现用户数据的同步。通过在同步网络中设置同步系统,使多个终端系统成为关系对等的节点,每个终端系统都可以发起数据同步请求,将增加、删除或修改的数据通过同步系统同步到全网范围内的多个终端系统。With this embodiment, user data synchronization can be performed on heterogeneous systems in the access synchronization network in real time, and user data synchronization can be implemented in the entire network. By setting up a synchronization system in the synchronous network, multiple terminal systems become nodes of a peer relationship, each terminal system can initiate a data synchronization request, and synchronize the added, deleted or modified data to the entire network through the synchronization system. Multiple terminal systems.
第四实施例Fourth embodiment
本实施例对异构系统进行同步网络注册的步骤进行描述,图5是根据第四实施例的同步网络注册的步骤流程图。This embodiment describes the steps of performing synchronous network registration for a heterogeneous system, and FIG. 5 is a flow chart of the steps of synchronous network registration according to the fourth embodiment.
在S510中,在多个异构系统中配置Switcher配置文件。In S510, a Switcher configuration file is configured in multiple heterogeneous systems.
Switcher配置文件用于向Switcher发起网络注册。The Switcher configuration file is used to initiate network registration with the Switcher.
在Switcher配置文件中包括:Switcher的地址信息。该地址信息包括:Switcher的IP地址、Mac地址和端口号。在每个需要接入同步网络的异构系统中配置Switcher配置文件,使异构系统指向Switcher。 The Switcher configuration file includes: Switcher address information. The address information includes: the IP address of the Switcher, the Mac address, and the port number. Configure the Switcher configuration file on each heterogeneous system that needs to access the synchronization network to point the heterogeneous system to the Switcher.
在S520中,申请注册的异构系统在启动过程中,根据Switcher配置文件向Switcher发送注册请求。In S520, the heterogeneous system applying for registration sends a registration request to the Switcher according to the Switcher configuration file during the startup process.
在注册请求中包括:异构系统的IP地址、Mac地址和端口号等系统信息。The registration request includes system information such as the IP address, Mac address, and port number of the heterogeneous system.
在同步网络中,先启动Switcher,再依次启动多个异构系统。在异构系统向Switcher发送注册请求时,如果Switcher尚未启动完毕,则异构系统请求会抛出异常,异构系统在捕获(catch)异常后进行异常处理,之后定时向Switcher发送注册请求,直至注册请求被Switcher受理为止。In a synchronous network, start Switcher first, and then start multiple heterogeneous systems in turn. When a heterogeneous system sends a registration request to the Switcher, if the Switcher has not been started, the heterogeneous system request will throw an exception. After the trap is caught, the heterogeneous system will send an exception request to the Switcher. The registration request is accepted by Switcher.
在S530中,Switcher接收注册请求,将注册请求中携带的异构系统的系统信息更新到注册列表中。In S530, the Switcher receives the registration request, and updates the system information of the heterogeneous system carried in the registration request to the registration list.
Switcher根据注册请求中携带的异构系统的IP地址、Mac地址和端口号生成注册号,该注册号具有唯一性。The Switcher generates a registration number based on the IP address, Mac address, and port number of the heterogeneous system carried in the registration request. The registration number is unique.
Switcher在Switcher的内存中维护注册列表。Switcher将异构系统的IP地址、Mac地址和端口号以及该异构系统的注册号更新到注册列表中。如果同一异构系统重复注册,则Switcher忽略该异构系统的注册请求。The Switcher maintains a registration list in the memory of the Switcher. Switcher updates the IP address, Mac address and port number of the heterogeneous system and the registration number of the heterogeneous system to the registration list. If the same heterogeneous system is repeatedly registered, Switcher ignores the registration request for that heterogeneous system.
在S540中,在注册完成后,Switcher向申请注册的异构系统反馈注册结果。In S540, after the registration is completed, Switcher feeds back the registration result to the heterogeneous system applying for registration.
注册结果为注册成功或注册失败。如果异构系统进行了重复注册可以发送重复注册的提示信息。The registration result is registration success or registration failure. If the heterogeneous system has been repeatedly registered, it can send a prompt for repeated registration.
Switcher根据注册请求中携带的系统信息反馈注册结果。The Switcher feeds back the registration result based on the system information carried in the registration request.
在S550中,申请注册的异构系统在接收到注册结果之后结束注册流程。In S550, the heterogeneous system applying for registration ends the registration process after receiving the registration result.
由于异构系统在Switcher完成注册才能成功接入同步网络,所以Switcher可以知道当前成功接入同步网络的多个异构系统的信息,Switcher在转发数据同步请求时,可以根据维护的注册列表完成异构系统的寻址。As the heterogeneous system is successfully registered to the synchronous network, the Switcher can know the information of multiple heterogeneous systems that have successfully accessed the synchronous network. When the switcher forwards the data synchronization request, it can complete the registration according to the maintenance registration list. The addressing of the system.
第五实施例Fifth embodiment
本实施例对增加用户数据的过程进行描述,图6是根据第五实施例的增加用户数据的步骤流程图。图7是根据第五实施例的增加用户数据的时序图。由于接收数据同步请求的异构系统所执行的步骤基本相同,因此图7中仅示意性的给出了一个接收数据同步请求的异构系统n,n大于1。This embodiment describes a process of adding user data, and FIG. 6 is a flow chart showing the steps of adding user data according to the fifth embodiment. Fig. 7 is a timing chart of adding user data according to the fifth embodiment. Since the steps performed by the heterogeneous system receiving the data synchronization request are substantially the same, only one heterogeneous system n, n receiving n data synchronization request, is shown schematically in FIG.
在S610中,异构系统的用户管理客户端获取增加的用户数据,形成用户数据增加请求。In S610, the user management client of the heterogeneous system acquires the increased user data to form a user data increase request.
用户数据包括:用户名、密码、联系方式和地址等。 User data includes: username, password, contact information, and address.
用户数据增加请求包括:异构系统的系统信息以及增加的用户信息。User data increase requests include: system information of heterogeneous systems and increased user information.
在每个异构系统中都设有用户管理客户端,在用户管理客户端中可以填写增加、删除和修改用户数据;点击相应的增加、删除或修改按钮可以触发增加、删除或修改操作;增加、删除或修改操作被触发后,用户管理客户端根据用户请求增加、删除或修改的用户数据形成数据同步请求并提交异构系统的服务端。In each heterogeneous system, there is a user management client, in which the user management client can fill in the addition, deletion and modification of user data; click the corresponding add, delete or modify button to trigger the addition, deletion or modification operation; After the deletion, deletion, or modification operation is triggered, the user management client forms a data synchronization request according to the user data added, deleted, or modified by the user request, and submits the data synchronization request to the server of the heterogeneous system.
在异构系统的数据库中存储用户数据;用户管理客户端可以提供用户管理界面,在该用户管理界面中进行用户数据的增加、删除和修改并形成相应的数据同步请求。User data is stored in a database of a heterogeneous system; the user management client can provide a user management interface in which user data is added, deleted, and modified to form a corresponding data synchronization request.
用户管理界面如图8所示。在本实施例中,用户管理客户端获取用户在用户管理界面中新增加的用户数据,根据该增加的用户数据形成用户数据增加请求并提交给异构系统的服务端。The user management interface is shown in Figure 8. In this embodiment, the user management client obtains user data newly added by the user in the user management interface, forms a user data increase request according to the added user data, and submits the request to the server of the heterogeneous system.
在S620中,该异构系统的服务端接收用户管理客户端发送的用户数据增加请求,并将该用户增加请求转发给适配器。In S620, the server of the heterogeneous system receives the user data increase request sent by the user management client, and forwards the user increase request to the adapter.
在每个异构系统中设有服务端和适配器。Servers and adapters are provided in each heterogeneous system.
服务端用于处理用户数据。服务端在接收到用户数据增加请求后,根据该用户数据增加请求中携带的用户数据,执行用户数据增加处理,将该用户数据插入到数据库中。The server is used to process user data. After receiving the user data increase request, the server performs user data increase processing according to the user data carried in the user data increase request, and inserts the user data into the database.
适配器用于对数据同步请求进行数据格式转换。The adapter is used for data format conversion of data synchronization requests.
在S630中,该异构系统的适配器将该用户数据增加请求的数据格式转换为标准格式。In S630, the adapter of the heterogeneous system converts the data format of the user data addition request into a standard format.
多个异构系统的数据同步请求所采用的数据格式不同,用户管理客户端最初形成的用户数据增加请求只有本端的异构系统能够识别,为了使同步网络中的其他异构系统也能够识别出该用户数据增加请求,适配器将该用户数据增加请求的数据格式转换为预先配置的标准格式,而该标识格式是所有异构系统都能够识别的数据格式。The data synchronization request of multiple heterogeneous systems adopts different data formats. The user data addition request initially formed by the user management client can be identified only by the heterogeneous system at the local end, so that other heterogeneous systems in the synchronous network can also be identified. The user data addition request, the adapter converts the data format of the user data addition request into a pre-configured standard format, and the identification format is a data format that all heterogeneous systems can recognize.
在S640中,该异构系统的适配器将格式转换后的用户数据增加请求发送给Switcher。In S640, the adapter of the heterogeneous system sends the formatted user data increase request to the Switcher.
在S650中,Switcher接收到该用户数据增加请求,在确定发送该用户数据增加请求的异构系统为合法注册的异构系统后,将该用户数据增加请求转发给同步网络中的其余异构系统。In S650, the switcher receives the user data increase request, and after determining that the heterogeneous system that sends the user data increase request is a legally registered heterogeneous system, forwarding the user data increase request to the remaining heterogeneous systems in the synchronous network. .
Switcher从该用户数据增加请求中获取异构系统的系统信息,根据维护的注 册列表,判断该异构系统是否为合法注册的异构系统,如果是,则转发该用户数据增加请求,如果否,则舍弃该用户数据增加请求。The switcher obtains the system information of the heterogeneous system from the user data increase request, according to the maintenance note. The book list determines whether the heterogeneous system is a legally registered heterogeneous system, and if so, forwards the user data increase request, and if not, discards the user data increase request.
可选地,Switcher解析接收到的用户数据增加请求,获取用户数据增加请求中的系统信息,查询注册列表中是否存在该系统信息,如果存在,则判定发送该用户数据增加请求的异构系统为合法注册的异构系统,如果不存在,则判定发送该用户数据增加请求的异构系统为没有注册的异构系统。在判定异构系统为合法注册的异构系统之后,遍历注册列表,从注册列表中获取除了该异构系统之外的其余异构系统的系统信息,根据其余异构系统的系统信息进行寻址,转发该用户数据增加请求。Optionally, the Switcher parses the received user data increase request, obtains the system information in the user data increase request, and queries whether the system information exists in the registration list, and if yes, determines that the heterogeneous system that sends the user data increase request is A legally registered heterogeneous system, if not present, determines that the heterogeneous system that sent the user data increase request is a heterogeneous system that is not registered. After determining that the heterogeneous system is a legally registered heterogeneous system, traversing the registration list, obtaining system information of the heterogeneous systems other than the heterogeneous system from the registration list, and addressing according to system information of the remaining heterogeneous systems , forward the user data increase request.
例如:Switcher维护的注册列表中包括系统信息a、b、c、d和e;异构系统A向Switcher发送用户数据增加请求;Switcher解析该用户数据增加请求,获取该用户数据增加请求中的系统信息为a,经过查询注册列表,发现注册列表中包含a,则确定异构系统A为合法注册的异构系统,之后遍历注册列表,获取除a之外的其余系统信息b、c、d和e;Switcher根据系统信息b、c、d和e进行寻址,以便转发该用户数据增加请求。For example, the registration list maintained by Switcher includes system information a, b, c, d, and e; heterogeneous system A sends a user data increase request to Switcher; Switcher parses the user data increase request to obtain the system in the user data increase request. The information is a. After querying the registration list and finding that a is included in the registration list, it is determined that the heterogeneous system A is a legally registered heterogeneous system, and then traversing the registration list to obtain other system information b, c, d and other than a. e; The Switcher addresses based on system information b, c, d, and e to forward the user data addition request.
在S660中,其余异构系统接收到该用户数据增加请求之后,在各自的适配器中对该用户数据增加请求进行数据格式转换,并由各自的服务端根据格式转换后的用户数据增加请求执行用户数据增加处理。In S660, after receiving the user data increase request, the remaining heterogeneous systems perform data format conversion on the user data increase request in the respective adapters, and the respective server performs the user according to the format converted user data increase request. Data increase processing.
在除了发送该用户数据增加请求的异构系统之外的其余异构系统中,每个异构系统的适配器对用户数据增加请求进行解析,将用户数据增加请求的标准格式转换为本地可识别的数据格式,适配器将格式转换后的用户数据增加请求转发给服务端,服务端提取出增加的用户数据,在数据库中完成用户数据的增加,进而实现了增加的用户数据在同步网络中的同步。In the heterogeneous system other than the heterogeneous system that sends the user data addition request, the adapter of each heterogeneous system parses the user data increase request, and converts the standard format of the user data increase request into a locally recognizable The data format, the adapter forwards the formatted user data increase request to the server, the server extracts the added user data, completes the increase of the user data in the database, and further increases the synchronization of the user data in the synchronous network.
可选地,由于异构系统的服务端可以将用户数据增加请求中携带的用户数据传递给用户管理客户端,以在用户管理界面中进行显示,如图9所示。Optionally, the server of the heterogeneous system can transmit the user data carried in the user data increase request to the user management client for display in the user management interface, as shown in FIG. 9 .
服务端在增加用户数据时,如果发现数据库中已经存在该用户数据,则使用新接收的用户数据覆盖数据库中已经存在的用户数据。When the server adds user data, if it finds that the user data already exists in the database, the user data that already exists in the database is overwritten by the newly received user data.
在S670中,其余异构系统分别将处理结果反馈给Switcher,Switcher将所有异构系统的处理结果返回发送用户数据增加请求的异构系统。In S670, the remaining heterogeneous systems feed back the processing results to the Switcher, and the Switcher returns the processing results of all heterogeneous systems to the heterogeneous system that sends the user data addition request.
处理结果为用户数据增加成功或者用户数据增加失败。如果使用新接收的用户数据覆盖本地已经存在的用户数据,则处理结果为用户数据增加成功。 The result of the processing is that the user data is successfully added or the user data is increased. If the newly received user data is used to overwrite the user data that already exists locally, the processing result is that the user data is successfully added.
发送用户数据增加请求的异构系统在接收到Switcher反馈的多个异构系统的处理结果之后,可以在用户管理客户端中显示多个异构系统的处理结果。The heterogeneous system that sends the user data addition request can display the processing results of multiple heterogeneous systems in the user management client after receiving the processing results of multiple heterogeneous systems fed back by the Switcher.
第六实施例Sixth embodiment
本实施例对修改用户数据的过程进行描述,图10是根据第六实施例的用户数据修改的步骤流程图。This embodiment describes a process of modifying user data, and FIG. 10 is a flow chart showing the steps of user data modification according to the sixth embodiment.
在S1010中,异构系统的用户管理客户端获取修改后的用户数据,形成用户数据修改请求。In S1010, the user management client of the heterogeneous system acquires the modified user data to form a user data modification request.
用户数据修改请求包括:异构系统的系统信息以及修改后的用户信息。The user data modification request includes: system information of the heterogeneous system and the modified user information.
在异构系统的数据库中存储有用户数据,用户可以在异构系统的用户管理客户端中修改用户数据;异构系统的用户管理客户端获取用户在用户管理界面中修改后的用户数据,根据该修改后的用户数据形成用户数据修改请求并提交异构系统的服务端。The user data is stored in the database of the heterogeneous system, and the user can modify the user data in the user management client of the heterogeneous system; the user management client of the heterogeneous system obtains the user data modified by the user in the user management interface, according to The modified user data forms a user data modification request and is submitted to the server of the heterogeneous system.
在S1020中,该异构系统的服务端接收用户管理客户端发送的用户数据修改请求,并将该用户数据修改请求转发给适配器。In S1020, the server of the heterogeneous system receives the user data modification request sent by the user management client, and forwards the user data modification request to the adapter.
服务端在接收到该用户数据修改请求后,根据该用户数据修改请求中携带的用户数据,执行用户数据修改处理,修改数据库中对应的用户数据。After receiving the user data modification request, the server performs user data modification processing according to the user data carried in the user data modification request, and modifies the corresponding user data in the database.
在S1030中,该异构系统的适配器将该用户数据修改请求的数据格式转换为标准格式。In S1030, the adapter of the heterogeneous system converts the data format of the user data modification request into a standard format.
在S1040中,该异构系统的适配器将格式转换后的用户数据修改请求发送给Switcher。In S1040, the adapter of the heterogeneous system sends the formatted user data modification request to the Switcher.
在S1050中,Switcher接收到该用户数据修改请求,在确定发送该用户数据修改请求的异构系统为合法注册的异构系统后,将该用户数据修改请求转发给同步网络中的其余异构系统。In S1050, the switcher receives the user data modification request, and after determining that the heterogeneous system that sends the user data modification request is a legally registered heterogeneous system, forwarding the user data modification request to the remaining heterogeneous systems in the synchronous network. .
在S1060中,其余异构系统接收到该用户数据修改请求之后,在各自的适配器中对该用户数据修改请求进行数据格式转换,并由各自的服务端根据格式转换后的用户数据修改请求执行用户数据修改处理。In S1060, after receiving the user data modification request, the remaining heterogeneous systems perform data format conversion on the user data modification request in the respective adapters, and the respective server performs the user according to the format converted user data modification request. Data modification processing.
多个异构系统的服务端在执行用户数据修改处理时,如果发现数据库中不存在请求修改的用户数据,则将用户数据修改请求中携带的用户数据作为新的用户数据插入到数据库中。When the server of the heterogeneous system performs the user data modification process, if the user data requesting modification is not found in the database, the user data carried in the user data modification request is inserted into the database as new user data.
在S1070中,其余异构系统分别将处理结果反馈给Switcher,Switcher将所 有异构系统的处理结果返回发送用户数据修改请求的异构系统。In S1070, the remaining heterogeneous systems feed back the processing results to Switcher. Switcher will The processing results of the heterogeneous system return to the heterogeneous system that sent the user data modification request.
处理结果为用户数据修改成功或者用户数据修改失败。如果将用户数据作为新的用户数据插入到数据库中,则处理结果为用户数据修改成功。The result of the processing is that the user data is successfully modified or the user data modification fails. If the user data is inserted into the database as new user data, the processing result is that the user data is successfully modified.
发送用户数据修改请求的异构系统在接收到Switcher反馈的多个异构系统的处理结果之后,可以在用户管理客户端中显示多个异构系统的处理结果。After receiving the processing result of multiple heterogeneous systems fed back by Switcher, the heterogeneous system that sends the user data modification request can display the processing results of multiple heterogeneous systems in the user management client.
第七实施例Seventh embodiment
本实施例对删除用户数据的过程进行描述。图11是根据第七实施例的用户数据删除的步骤流程图。This embodiment describes a process of deleting user data. Figure 11 is a flow chart showing the steps of user data deletion in accordance with the seventh embodiment.
在S1110中,异构系统的用户管理客户端获取删除的用户数据,形成用户数据删除请求。In S1110, the user management client of the heterogeneous system acquires the deleted user data to form a user data deletion request.
用户数据删除请求中包括异构系统的系统信息以及需要删除的用户数据。The user data deletion request includes system information of the heterogeneous system and user data that needs to be deleted.
用户在用户管理客户端中填写需要删除的用户数据,用户管理客户端根据需要删除的用户数据生成用户数据删除请求,并将该用户数据删除请求发送给服务端。The user fills in the user data that needs to be deleted in the user management client, and the user management client generates a user data deletion request according to the user data that needs to be deleted, and sends the user data deletion request to the server.
在S1120中,该异构系统的服务端接收用户管理客户端发送的用户数据删除请求,并将该用户数据删除请求转发给适配器。In S1120, the server of the heterogeneous system receives the user data deletion request sent by the user management client, and forwards the user data deletion request to the adapter.
服务端接收该用户数据删除请求,将需要删除的用户数据在数据库中删除,并将用户数据删除请求转发给适配器。The server receives the user data deletion request, deletes the user data that needs to be deleted in the database, and forwards the user data deletion request to the adapter.
在S1130中,该异构系统的适配器将该用户数据删除请求的数据格式转换为标准格式。In S1130, the adapter of the heterogeneous system converts the data format of the user data deletion request into a standard format.
在S1140中,该异构系统的适配器将格式转换后的用户数据删除请求发送给Switcher。In S1140, the adapter of the heterogeneous system sends the formatted user data deletion request to the Switcher.
在S1150中,Switcher接收到该用户数据删除请求,在确定发送该用户数据删除请求的异构系统为合法注册的异构系统后,将该用户数据删除请求转发给同步网络中的其余异构系统。In S1150, the switch receives the user data deletion request, and after determining that the heterogeneous system that sends the user data deletion request is a legally registered heterogeneous system, the user data deletion request is forwarded to the remaining heterogeneous systems in the synchronous network. .
在S1160中,其余异构系统接收到该用户数据删除请求之后,在各自的适配器中对该用户数据删除请求进行数据格式转换,并由各自的服务端根据格式转换后的用户数据删除请求执行用户数据删除处理。In S1160, after receiving the user data deletion request, the remaining heterogeneous systems perform data format conversion on the user data deletion request in the respective adapters, and execute the user according to the formatted user data deletion request by the respective server. Data deletion processing.
多个异构系统在执行用户数据删除处理时,如果发现数据库中不存在该用户数据,则可以忽略该用户数据删除请求。 When a plurality of heterogeneous systems perform user data deletion processing, if the user data is found to be absent in the database, the user data deletion request may be ignored.
在S1170中,其余异构系统分别将处理结果反馈给Switcher,Switcher将所有异构系统的处理结果返回发送用户数据删除请求的异构系统。In S1170, the remaining heterogeneous systems feed back the processing results to the Switcher. The Switcher returns the processing results of all heterogeneous systems to the heterogeneous system that sends the user data deletion request.
处理结果为用户数据删除成功或用户数据删除失败。如果数据库中不存在该用户数据,则处理结果为用户数据删除成功。The result of the processing is that the user data deletion succeeds or the user data deletion fails. If the user data does not exist in the database, the processing result is that the user data deletion is successful.
发送用户数据删除请求的异构系统在接收到Switcher反馈的多个异构系统的处理结果之后,可以在用户管理客户端中进行显示。The heterogeneous system that sends the user data deletion request can display it in the user management client after receiving the processing result of multiple heterogeneous systems fed back by Switcher.
第八实施例Eighth embodiment
本实施例提供了一种设置在终端系统侧的数据同步装置,图12是根据第八实施例的终端系统侧的数据同步装置的结构图。The present embodiment provides a data synchronization apparatus provided on the terminal system side, and FIG. 12 is a configuration diagram of the data synchronization apparatus on the terminal system side according to the eighth embodiment.
终端系统侧的数据同步装置,可以包括以下模块。The data synchronization device on the terminal system side may include the following modules.
注册模块1210,设置为将本终端系统的系统信息发送给同步系统,以完成同步网络注册。The registration module 1210 is configured to send system information of the terminal system to the synchronization system to complete synchronization network registration.
第二发送模块1220,设置为将本终端系统的数据同步请求发送给所述同步系统,通过所述同步系统将所述数据同步请求转发给所述同步网络中的其他终端系统。本终端系统的数据同步请求是在本终端系统中触发数据的增加、删除或修改操作而形成的请求。The second sending module 1220 is configured to send a data synchronization request of the terminal system to the synchronization system, and forward the data synchronization request to other terminal systems in the synchronization network by using the synchronization system. The data synchronization request of the terminal system is a request formed by triggering an increase, deletion or modification operation of data in the terminal system.
第二接收模块1230,设置为接收所述同步系统转发的来自所述同步网络中其他终端系统的数据同步请求。其他终端系统的数据同步请求是其他终端系统中触发数据的增加、删除或修改操作而形成的请求。The second receiving module 1230 is configured to receive a data synchronization request that is forwarded by the synchronization system from other terminal systems in the synchronization network. The data synchronization request of other terminal systems is a request formed by triggering the addition, deletion or modification of data in other terminal systems.
在一个实施例中,第二发送模块1220,是设置为:在所述将本终端系统的数据同步请求发送给所述同步系统之前,将本终端系统的数据同步请求的数据格式转换为所述同步网络中其他终端系统可识别的数据格式。In an embodiment, the second sending module 1220 is configured to: convert the data format of the data synchronization request of the terminal system to the data system before sending the data synchronization request of the terminal system to the synchronization system Synchronize data formats identifiable by other end systems in the network.
在另一实施例中,第二接收模块1230,是设置为:在所述接收所述同步系统转发的来自所述同步网络中其他终端系统的数据同步请求之后,将接收的所述数据同步请求的数据格式转换为本终端系统可识别的数据格式。In another embodiment, the second receiving module 1230 is configured to: after receiving the data synchronization request forwarded by the synchronization system from other terminal systems in the synchronization network, the data synchronization request to be received The data format is converted into a data format recognizable by the terminal system.
本实施例所述的装置的功能已经在图2~图11所示的方法实施例中进行了描述,故本实施例的描述中未详尽之处,可以参见前述实施例中的相关说明,在此不做赘述。The functions of the device in this embodiment have been described in the method embodiments shown in FIG. 2 to FIG. 11. Therefore, in the description of the present embodiment, reference may be made to the related description in the foregoing embodiment. This will not be repeated.
第九实施例 Ninth embodiment
本实施例提供了一种设置在同步系统侧的数据同步装置,图13是根据第九实施例的同步系统侧的数据同步装置的结构图。The present embodiment provides a data synchronizing apparatus provided on the synchronous system side, and FIG. 13 is a configuration diagram of the data synchronizing apparatus on the synchronous system side according to the ninth embodiment.
同步系统侧的数据同步装置,可以包括以下模块。The data synchronization device on the synchronization system side may include the following modules.
记录模块1310,设置为记录注册到同步网络的多个终端系统的系统信息,形成注册列表。The recording module 1310 is configured to record system information of a plurality of terminal systems registered to the synchronization network to form a registration list.
第一接收模块1320,设置为接收一个终端系统发送的数据同步请求。该数据同步请求是在发送所述数据同步请求的终端系统中触发数据的增加、删除或修改操作而形成的请求。The first receiving module 1320 is configured to receive a data synchronization request sent by the terminal system. The data synchronization request is a request formed by triggering an addition, deletion or modification operation of data in a terminal system that transmits the data synchronization request.
第一发送模块1330,设置为根据所述注册列表,向除了发送所述数据同步请求的终端系统之外的其他终端系统转发所述数据同步请求,以在所述同步网络范围内进行数据同步。The first sending module 1330 is configured to forward the data synchronization request to other terminal systems other than the terminal system that sends the data synchronization request according to the registration list to perform data synchronization within the synchronous network.
在一个实施例中,第一发送模块1330,是设置为:在所述向除了发送所述数据同步请求的终端系统之外的其他终端系统转发所述数据同步请求之前,根据所述注册列表,判断发送所述数据同步请求的终端系统是否合法注册;如果合法注册,则根据所述注册列表,向除了发送所述数据同步请求的终端系统之外的其他终端系统转发所述数据同步请求。In an embodiment, the first sending module 1330 is configured to: before forwarding the data synchronization request to the terminal system other than the terminal system that sends the data synchronization request, according to the registration list, Determining whether the terminal system that sends the data synchronization request is legally registered; if it is legally registered, forwarding the data synchronization request to a terminal system other than the terminal system that sends the data synchronization request according to the registration list.
在另一实施例中,第一发送模块1330,是设置为:在所述向除了发送所述数据同步请求的终端系统之外的其他终端系统转发所述数据同步请求之前,将所述数据同步请求的数据格式转换为所述其他终端系统可识别的数据格式。In another embodiment, the first sending module 1330 is configured to: synchronize the data before forwarding the data synchronization request to the terminal system other than the terminal system that sends the data synchronization request. The requested data format is converted to a data format identifiable by the other terminal system.
本实施例所述的装置的功能已经在图2~图11所示的方法实施例中进行了描述,故本实施例的描述中未详尽之处,可以参见前述实施例中的相关说明,在此不做赘述。The functions of the device in this embodiment have been described in the method embodiments shown in FIG. 2 to FIG. 11. Therefore, in the description of the present embodiment, reference may be made to the related description in the foregoing embodiment. This will not be repeated.
第十实施例Tenth embodiment
本实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述方法。The embodiment further provides a computer readable storage medium storing computer executable instructions for performing the above method.
图14是根据本实施例的一种终端系统的硬件结构示意图,如图14所示,该终端系统包括:一个或多个处理器1410和存储器1420。图14中以一个处理器1410为例。FIG. 14 is a schematic diagram showing the hardware structure of a terminal system according to the present embodiment. As shown in FIG. 14, the terminal system includes: one or more processors 1410 and a memory 1420. A processor 1410 is taken as an example in FIG.
所述终端系统还可以包括:输入装置1430和输出装置1440。 The terminal system may further include: an input device 1430 and an output device 1440.
所述终端系统中的处理器1410、存储器1420、输入装置1430和输出装置1440可以通过总线或者其他方式连接,图14中以通过总线连接为例。The processor 1410, the memory 1420, the input device 1430, and the output device 1440 in the terminal system may be connected by a bus or other means, and the bus connection is taken as an example in FIG.
输入装置1430可以接收输入的数字或字符信息,以及产生与终端系统的用户设置以及功能控制有关的键信号输入。输出装置1440可以包括显示屏等显示设备。 Input device 1430 can receive input numeric or character information and generate key signal inputs related to user settings and function control of the end system. The output device 1440 can include a display device such as a display screen.
存储器1420作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块。处理器1410通过运行存储在存储器1420中的软件程序、指令以及模块,从而执行多种功能应用以及数据处理,以实现上述实施例中的任意一种数据同步的方法。The memory 1420 is a computer readable storage medium that can be used to store software programs, computer executable programs, and modules. The processor 1410 executes a plurality of functional applications and data processing by executing software programs, instructions, and modules stored in the memory 1420 to implement any one of the above embodiments.
存储器1420可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器可以包括随机存取存储器(Random Access Memory,RAM)等易失性存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件或者其他非暂态固态存储器件。The memory 1420 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the electronic device, and the like. In addition, the memory may include volatile memory such as random access memory (RAM), and may also include non-volatile memory such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
存储器1420可以是非暂态计算机存储介质或暂态计算机存储介质。该非暂态计算机存储介质,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器1420可选包括相对于处理器1410远程设置的存储器,这些远程存储器可以通过网络连接至电子设备。上述网络的实例可以包括互联网、企业内部网、局域网、移动通信网及其组合。 Memory 1420 can be a non-transitory computer storage medium or a transitory computer storage medium. The non-transitory computer storage medium, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 1420 can optionally include memory remotely located relative to processor 1410, which can be connected to the electronic device over a network. Examples of the above networks may include the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
本实施例的终端系统还可以包括通信装置,通过通信网络传输和接收信息。The terminal system of this embodiment may further include communication means for transmitting and receiving information through the communication network.
本实施例的终端系统还可以包括适配器,用于数据同步请求的格式转换。The terminal system of this embodiment may further include an adapter for format conversion of the data synchronization request.
本领域普通技术人员可理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来执行相关的硬件来完成的,该程序可存储于一个非暂态计算机可读存储介质中,该程序在执行时,可包括如上述方法的实施例的流程,其中,该非暂态计算机可读存储介质可以为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by executing related hardware by a computer program, and the program can be stored in a non-transitory computer readable storage medium. The program, when executed, may include the flow of an embodiment of the method as described above, wherein the non-transitory computer readable storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM). Wait.
工业实用性 Industrial applicability
本公开提供的数据同步方法和装置,将多个终端系统分别连接同步系统;多个终端系统是对等关系,每个终端系统都可以发起数据同步请求,该数据同步请求由同步系统在全网范围内转发,接收到该数据同步请求的终端系统执行该数据同步请求,通过在全网范围内转发数据同步请求的方式,实现数据在全网范围内的同步。 The data synchronization method and device provided by the present disclosure respectively connect a plurality of terminal systems to a synchronization system; a plurality of terminal systems are peer-to-peer relationships, and each terminal system can initiate a data synchronization request, and the data synchronization request is performed by the synchronization system on the entire network. The intra-area forwarding, the terminal system that receives the data synchronization request performs the data synchronization request, and synchronizes the data within the entire network by forwarding the data synchronization request in the entire network.

Claims (17)

  1. 一种数据同步方法,在同步系统侧执行的步骤包括:A data synchronization method, the steps performed on the synchronous system side include:
    记录注册到同步网络的多个终端系统的系统信息,形成注册列表;Recording system information of a plurality of terminal systems registered to the synchronization network to form a registration list;
    接收一个终端系统发送的数据同步请求;Receiving a data synchronization request sent by the terminal system;
    根据所述注册列表,向除了发送所述数据同步请求的终端系统之外的其他终端系统转发所述数据同步请求,以在所述同步网络范围内进行数据同步。And according to the registration list, forwarding the data synchronization request to a terminal system other than the terminal system that sends the data synchronization request to perform data synchronization within the synchronization network.
  2. 如权利要求1所述的方法,其中,在所述向除了发送所述数据同步请求的终端系统之外的其他终端系统转发所述数据同步请求之前,还包括:The method of claim 1, wherein before the forwarding of the data synchronization request to the terminal system other than the terminal system that sends the data synchronization request, the method further includes:
    根据所述注册列表,判断发送所述数据同步请求的终端系统是否合法注册;Determining, according to the registration list, whether the terminal system that sends the data synchronization request is legally registered;
    如果合法注册,则根据所述注册列表,向所述其他终端系统转发所述数据同步请求。If the registration is legal, the data synchronization request is forwarded to the other terminal system according to the registration list.
  3. 如权利要求1或2所述的方法,其中,在所述向除了发送所述数据同步请求的终端系统之外的其他终端系统转发所述数据同步请求之前,还包括:The method according to claim 1 or 2, wherein before the forwarding of the data synchronization request to the terminal system other than the terminal system that transmits the data synchronization request, the method further includes:
    将所述数据同步请求的数据格式转换为所述其他终端系统可识别的数据格式。Converting the data format of the data synchronization request into a data format identifiable by the other terminal system.
  4. 如权利要求1或2所述的方法,其中,所述数据同步请求是在发送所述数据同步请求的终端系统中触发数据的增加、删除或修改操作而形成的请求。The method according to claim 1 or 2, wherein the data synchronization request is a request formed by triggering an addition, deletion or modification operation of data in a terminal system that transmits the data synchronization request.
  5. 一种数据同步方法,在终端系统侧执行的步骤包括:A data synchronization method, the steps performed on the terminal system side include:
    将本终端系统的系统信息发送给同步系统,以完成同步网络注册;Sending system information of the terminal system to the synchronization system to complete synchronization network registration;
    将本终端系统的数据同步请求发送给所述同步系统,通过所述同步系统将所述数据同步请求转发给所述同步网络中的其他终端系统;以及,Transmitting a data synchronization request of the terminal system to the synchronization system, and forwarding, by the synchronization system, the data synchronization request to other terminal systems in the synchronization network; and
    接收所述同步系统转发的来自所述同步网络中其他终端系统的数据同步请求。Receiving a data synchronization request forwarded by the synchronization system from other terminal systems in the synchronization network.
  6. 如权利要求5所述的方法,其中,在所述将本终端系统的数据同步请求发送给所述同步系统之前,还包括:The method of claim 5, wherein before the sending the data synchronization request of the terminal system to the synchronization system, the method further comprises:
    将本终端系统的数据同步请求的数据格式转换为所述同步网络中其他终端系统可识别的数据格式。Converting the data format of the data synchronization request of the terminal system into a data format recognizable by other terminal systems in the synchronous network.
  7. 如权利要求5所述的方法,其中,在所述接收所述同步系统转发的来自所述同步网络中其他终端系统的数据同步请求之后,还包括:The method of claim 5, further comprising: after receiving the data synchronization request from the other terminal systems in the synchronization network that is forwarded by the synchronization system,
    将接收的所述数据同步请求的数据格式转换为本终端系统可识别的数据格式。Transmitting the received data format of the data synchronization request into a data format recognizable by the terminal system.
  8. 如权利要求5-7中任一项所述的方法,其中, The method of any of claims 5-7, wherein
    所述本终端系统的数据同步请求是在本终端系统中触发数据的增加、删除或修改操作而形成的请求;The data synchronization request of the terminal system is a request formed by triggering an increase, deletion or modification operation of data in the terminal system;
    所述其他终端系统的数据同步请求是在其他终端系统中触发数据的增加、删除或修改操作而形成的请求。The data synchronization request of the other terminal system is a request formed by triggering an addition, deletion or modification operation of data in other terminal systems.
  9. 一种数据同步装置,设置在同步系统侧,包括:A data synchronization device is disposed on the synchronization system side and includes:
    记录模块,设置为记录注册到同步网络的多个终端系统的系统信息,形成注册列表;a recording module configured to record system information of a plurality of terminal systems registered to the synchronization network to form a registration list;
    第一接收模块,设置为接收一个终端系统发送的数据同步请求;a first receiving module, configured to receive a data synchronization request sent by a terminal system;
    第一发送模块,设置为根据所述注册列表,向除了发送所述数据同步请求的终端系统之外的其他终端系统转发所述数据同步请求,以在所述同步网络范围内进行数据同步。The first sending module is configured to forward the data synchronization request to other terminal systems other than the terminal system that sends the data synchronization request according to the registration list to perform data synchronization within the synchronous network.
  10. 如权利要求9所述的装置,其中,所述第一发送模块,是设置为:The apparatus of claim 9, wherein the first transmitting module is configured to:
    在所述向除了发送所述数据同步请求的终端系统之外的其他终端系统转发所述数据同步请求之前,根据所述注册列表,判断发送所述数据同步请求的终端系统是否合法注册;如果合法注册,则根据所述注册列表,向所述其他终端系统转发所述数据同步请求。Before forwarding the data synchronization request to the terminal system other than the terminal system that sends the data synchronization request, determining, according to the registration list, whether the terminal system that sends the data synchronization request is legally registered; Registering, forwarding the data synchronization request to the other terminal system according to the registration list.
  11. 如权利要求9或10所述的装置,其中,所述第一发送模块,是设置为:在所述向除了发送所述数据同步请求的终端系统之外的其他终端系统转发所述数据同步请求之前,将所述数据同步请求的数据格式转换为所述其他终端系统可识别的数据格式。The apparatus according to claim 9 or 10, wherein said first transmitting module is configured to: forward said data synchronization request to said other terminal system other than said terminal system that transmits said data synchronization request Previously, the data format of the data synchronization request was converted to a data format identifiable by the other terminal system.
  12. 如权利要求9或10所述的装置,其中,所述数据同步请求是在发送所述数据同步请求的终端系统中触发数据的增加、删除或修改操作而形成的请求。The apparatus according to claim 9 or 10, wherein said data synchronization request is a request formed by triggering an addition, deletion or modification operation of data in a terminal system transmitting said data synchronization request.
  13. 一种数据同步装置,设置在终端系统侧,包括:A data synchronization device is disposed on the terminal system side and includes:
    注册模块,设置为将本终端系统的系统信息发送给同步系统,以完成同步网络注册;a registration module, configured to send system information of the terminal system to the synchronization system to complete synchronization network registration;
    第二发送模块,设置为将本终端系统的数据同步请求发送给所述同步系统,通过所述同步系统将所述数据同步请求转发给所述同步网络中的其他终端系统;以及,a second sending module, configured to send a data synchronization request of the terminal system to the synchronization system, and forward the data synchronization request to other terminal systems in the synchronization network by using the synchronization system; and
    第二接收模块,设置为接收所述同步系统转发的来自所述同步网络中其他终端系统的数据同步请求。The second receiving module is configured to receive a data synchronization request from the other remote terminal system in the synchronization network that is forwarded by the synchronization system.
  14. 如权利要求13所述的装置,其中,所述第二发送模块,是设置为:在 所述将本终端系统的数据同步请求发送给所述同步系统之前,将本终端系统的数据同步请求的数据格式转换为所述同步网络中其他终端系统可识别的数据格式。The apparatus of claim 13 wherein said second transmitting module is configured to: Before transmitting the data synchronization request of the terminal system to the synchronization system, converting the data format of the data synchronization request of the terminal system into a data format identifiable by other terminal systems in the synchronization network.
  15. 如权利要求13所述的装置,其中,所述第二接收模块,是设置为:在所述接收所述同步系统转发的来自所述同步网络中其他终端系统的数据同步请求之后,将接收的所述数据同步请求的数据格式转换为本终端系统可识别的数据格式。The apparatus according to claim 13, wherein said second receiving module is configured to: after receiving said data synchronization request forwarded by said synchronization system from other terminal systems in said synchronization network, The data format of the data synchronization request is converted into a data format recognizable by the terminal system.
  16. 如权利要求13-15中任一项所述的装置,其中,A device according to any of claims 13-15, wherein
    所述本终端系统的数据同步请求是在本终端系统中触发数据的增加、删除或修改操作而形成的请求;The data synchronization request of the terminal system is a request formed by triggering an increase, deletion or modification operation of data in the terminal system;
    所述其他终端系统的数据同步请求是其他终端系统中触发数据的增加、删除或修改操作而形成的请求。The data synchronization request of the other terminal system is a request formed by triggering an addition, deletion or modification operation of data in other terminal systems.
  17. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-4和权利要求5-8任一项所述的方法。 A computer readable storage medium storing computer executable instructions for performing the method of any of claims 1-4 and 5-8.
PCT/CN2017/094103 2016-08-22 2017-07-24 Data synchronization method and apparatus WO2018036327A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610706001.7A CN107770232A (en) 2016-08-22 2016-08-22 A kind of method of data synchronization and device
CN201610706001.7 2016-08-22

Publications (1)

Publication Number Publication Date
WO2018036327A1 true WO2018036327A1 (en) 2018-03-01

Family

ID=61246422

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/094103 WO2018036327A1 (en) 2016-08-22 2017-07-24 Data synchronization method and apparatus

Country Status (2)

Country Link
CN (1) CN107770232A (en)
WO (1) WO2018036327A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109964218B (en) * 2019-01-24 2022-04-01 福建联迪商用设备有限公司 Service processing method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1294155A2 (en) * 2001-09-18 2003-03-19 Fujitsu Limited System and method for data synchronization , data center, and client terminal
CN102118719A (en) * 2009-12-30 2011-07-06 北京邮电大学 Mobile intelligent information service system, adaptation converting device and method
CN103916409A (en) * 2012-12-30 2014-07-09 中国移动通信集团公司 Method, terminal and system for data synchronization
CN104092740A (en) * 2014-06-25 2014-10-08 腾讯科技(深圳)有限公司 Application data synchronizing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1294155A2 (en) * 2001-09-18 2003-03-19 Fujitsu Limited System and method for data synchronization , data center, and client terminal
CN102118719A (en) * 2009-12-30 2011-07-06 北京邮电大学 Mobile intelligent information service system, adaptation converting device and method
CN103916409A (en) * 2012-12-30 2014-07-09 中国移动通信集团公司 Method, terminal and system for data synchronization
CN104092740A (en) * 2014-06-25 2014-10-08 腾讯科技(深圳)有限公司 Application data synchronizing method and device

Also Published As

Publication number Publication date
CN107770232A (en) 2018-03-06

Similar Documents

Publication Publication Date Title
US11088903B2 (en) Hybrid cloud network configuration management
US11575592B2 (en) Message processing method and apparatus, control-plane device, and computer storage medium
JP4943512B2 (en) Notification message processing method and apparatus
US20180295124A1 (en) Account login connection method and apparatus, and storage medium
JP2008181427A (en) Single sign-on system, information terminal device, single sign-on server, program
US10656892B2 (en) Printer registration apparatus, display apparatus, and method for printer registration
WO2018166415A1 (en) Cloud storage system, media data storage method and system
CN109634988B (en) Monitoring polling method and device
WO2011113372A1 (en) Method, system and group server for synchronizing operations of multiple groups
WO2014063550A1 (en) Method and system for microblog resource sharing
CN111200622B (en) Resource transmission method and device and storage medium
WO2016004768A1 (en) Social relation management method, device and system
JP2018510430A (en) Remote data synchronization method and apparatus for database
CN113709250B (en) Cross-domain user data synchronization method based on subscription transmission mode
US20220394010A1 (en) Method, Apparatus, and System for Sending Control Request Based on Key Value Configuration
CN111585786A (en) Realization of secret-free building method of big data cluster
CN115525302B (en) Deployment method and device for large-scale digital object warehouse cluster
US20200220800A1 (en) Data Distribution Method and Distribution Server
WO2013091407A1 (en) Telnet command filter method and network security device and system
WO2018036327A1 (en) Data synchronization method and apparatus
WO2015100628A1 (en) Network element data access method and apparatus, and network management system
WO2018050055A1 (en) Data request processing method and system, access device, and storage device therefor
WO2019001562A1 (en) Model loading method and apparatus, storage medium, and computer device
WO2018036521A1 (en) Resource adjustment method, apparatus, and system
WO2014169797A1 (en) Login method and system for client unit

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17842750

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17842750

Country of ref document: EP

Kind code of ref document: A1