|
| ||||||||||||||||
Class to store and execute FibConfig transactions.
An FibConfig transaction is a sequence of commands that should executed atomically.
| FibConfigTransactionManager (EventLoop& eventloop, FibConfig& fibconfig)
| FibConfigTransactionManager |
Constructor.
Parameters:
| eventloop | the event loop to use. |
| fibconfig | the FibConfig to use. |
See also: FibConfig.
| FibConfig& fibconfig ()
| fibconfig |
Get a reference to the FibConfig.
Returns: a reference to the FibConfig.
See also: FibConfig.
| const string& error ()
| error |
[const]
Get the string with the first error during commit.
Returns: the string with the first error during commit or an empty string if no error.
| size_t max_ops ()
| max_ops |
[const]
Get the maximum number of operations.
Returns: the maximum number of operations.
| void pre_commit (uint32_t tid)
| pre_commit |
[protected virtual]
Pre-commit method that is called before the first operation in a commit.
This is an overriding method.
Parameters:
| tid | the transaction ID. |
Reimplemented from TransactionManager.
| void post_commit (uint32_t tid)
| post_commit |
[protected virtual]
Post-commit method that is called after the last operation in a commit.
This is an overriding method.
Parameters:
| tid | the transaction ID. |
Reimplemented from TransactionManager.
| void operation_result (bool success,
const TransactionOperation& op)
| operation_result |
[protected virtual]
Method that is called after each operation.
This is an overriding method.
Parameters:
| success | set to true if the operation succeeded, otherwise false. |
| op | the operation that has been just called. |
Reimplemented from TransactionManager.