Affair implementation method and affair implementation device

A technology for implementing methods and transactions, applied in the field of communication, can solve problems such as low execution efficiency, cost, and multiple time overheads, and achieve the effect of low time overhead and high execution efficiency

Inactive Publication Date: 2011-09-21
HUAWEI TECH CO LTD
View PDF2 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] During the research and practice of the prior art, the inventors of the present invention found that in order to realize the transaction rollback function, when the transaction commit fails, it is necessary to reload the configuration state from the backup historical database, which takes a lot of time overhead
It can be seen that the execution efficiency of the transaction implementation method in the prior art is low

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
  • Affair implementation method and affair implementation device
  • Affair implementation method and affair implementation device
  • Affair implementation method and affair implementation device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Embodiments of the present invention provide a transaction realization method and a transaction realization device. Each will be described in detail below.

[0026] see figure 1 , an embodiment of the transaction implementation method in the embodiment of the present invention includes:

[0027] 110. The first device receives a request to submit a transaction;

[0028] Before executing 110, the user first enables a transaction on the first device, and sends several operation or configuration commands (referred to as positive commands in the embodiment of the present invention) to the transaction. The device sends a request to commit the transaction.

[0029] It should be noted here that not only the user can send a request to submit a transaction to the first device, but also other devices can send a request to submit a transaction to the first device, or a module inside the first device can generate a request to submit a transaction .

[0030] 120. Execute each po...

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 embodiment of the invention discloses an affair implementation method with higher execution efficiency. The method comprises the following steps of: receiving a request for submitting an affair by first equipment; executing each positive order of the affair in turn according to a first predefined sequence; acquiring and storing counter-orders corresponding to each positive order, and executing the counter-order corresponding to the positive order after the positive order is executed to ensure that the first equipment restores the configuration state before the positive order is executed; and if at least one positive order of the affair is executed unsuccessfully, executing the counter-order corresponding to the positive order which is executed successfully in the affair. The embodiment of the invention also provides a corresponding affair implementation device. In the embodiment of the invention, the affair rollback function can be realized by only executing the counter-orders, the configuration state is not needed to be reloaded from a backup historical database, the time expenditure is small, and the execution efficiency is high.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular to a transaction realization method and a transaction realization device. Background technique [0002] Embedded devices support users to configure them through various commands. During the configuration process, users often want a group of commands to have transactional atomicity, that is, this group of commands either take effect on the device at the same time, or fail at the same time, and the device regards this group of commands as a transaction. [0003] In order to realize the atomicity of the transaction, before submitting a transaction, the device first backs up the database storing its current configuration status as a historical database, and then executes each command in this transaction in sequence according to the predetermined order and checks the execution status returned by them; If it is checked that the command is successfully executed, continue to...

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): G06F9/40
Inventor 杨苏吕浩松
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products