Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for realizing exception handling based on data synchronization

A technology of exception handling and data synchronization, applied in the direction of responding to errors, etc., can solve the problems of large amount of code, long time required for exception handling, cumbersome exception handling process, etc., to reduce time, improve maintainability, and reduce related issues. The effect of the amount of code

Active Publication Date: 2013-04-03
NO 15 INST OF CHINA ELECTRONICS TECH GRP
View PDF3 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] It can be seen from the above that the existing method of implementing exception handling based on data synchronization, when there are many exceptions in data synchronization, in the design process of the network application system, it is necessary to design subsequent processing procedures for a large number of application logics that may have exceptions , the exception handling process is relatively cumbersome, the program logic code for handling exceptions and the program logic code for normal business operation appear in the same module logic, the same exception occurs in different positions, and the exception handling program needs to be embedded in different program segment positions Logical codes lead to a large amount of code for handling exception processes, which takes a long time to handle exceptions, resulting in a decrease in the maintainability of the application code, affecting the stability of the application, and is not conducive to the expansion of new exceptions in the future

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for realizing exception handling based on data synchronization
  • Method and device for realizing exception handling based on data synchronization
  • Method and device for realizing exception handling based on data synchronization

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0084] Example 1: In the loop operation, when an exception occurs, the setting needs to continue looping, then the exception handling code segment included in the XML document can be defined as:

[0085]

[0086] in,

[0087] The element codes the JAVA exception item to be executed.

example 2

[0088] Example 2: For jumping to other processing logic, for example, methods in other JAVA classes, when an exception occurs, set and execute the corresponding JAVA method, allowing incoming parameters, which can be the same as the parameters defined in Description, then The exception handling code segment contained in the XML document can be defined as follows:

[0089]

[0090]

[0091] in,

[0092] Inside the element is the full name of the JAVA method to be executed, The field defines the parameters passed into the method, which correspond to the parameters defined in Description.

[0093] Of course, in practical applications, an identifier may also be set for each exception entry.

[0094] In practical applications, since there may be multiple data synchronization modules in the same network application system, for example, multiple data synchronization sending modules and multiple data synchronization receiving modules, therefore, corresponding ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and device for realizing exception handling based on data synchronization. The method comprises the following steps of: presetting an exception handling strategy which includes exception items; catching exception information during the data synchronization process and extracting exception identifiers or keywords in the exception information to be matched with the prestored exception handling strategy for the obtainment of the matched exception handling strategy; obtaining exception description parameters and generating exception description information according to the matched exception handling strategy; and generating exception description code segment information according to the exception description information, running the generated exception description code segment information for corresponding handling on exceptions and further outputting response information with exception handling results to an external data synchronization receiving module for the execution of subsequent data handling by the data synchronization receiving module according to the response information. With the application of the method and device for realizing the exception handling based on the data synchronization, the time required by exception handling can be decreased and the maintainability of application program codes is promoted.

Description

technical field [0001] The invention relates to computer synchronization technology, in particular to a method and device for realizing exception handling based on data synchronization. Background technique [0002] In recent years, with the development of computer network technology, the method of using disk and other media for data transmission has been replaced by network transmission, and various data can be transmitted through the network. With the rapid development of various business technologies, in order to meet business requirements and improve data utilization efficiency, it is necessary to improve various types of existing network application systems based on a single deployment point. [0003] In the current network application system, sharing application data is a very common business requirement. Realizing network data sharing through data synchronization can effectively improve the utilization efficiency of data. In the process of data synchronization and sh...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/07
Inventor 杨易李淑惠吕建波郑扬飞吴瑜贾晓霞郭红钰金辉张勇李聂
Owner NO 15 INST OF CHINA ELECTRONICS TECH GRP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products