|
xorp
|
A class to store and execute firewall transactions. More...
#include <firewall_transaction.hh>
Public Member Functions | |
| FirewallTransactionManager (EventLoop &eventloop) | |
| Constructor. | |
| const string & | error () const |
| Get the string with the first error during commit. | |
Protected Member Functions | |
| virtual void | pre_commit (uint32_t tid) |
| Pre-commit method that is called before the first operation in a commit. | |
| virtual void | operation_result (bool success, const TransactionOperation &op) |
| Method that is called after each operation. | |
Private Types | |
| enum | { TIMEOUT_MS = 5000, MAX_PENDING = 10 } |
Private Member Functions | |
| void | reset_error () |
| Reset the string with the error. | |
Private Attributes | |
| string | _first_error |
| uint32_t | _tid_exec |
A class to store and execute firewall transactions.
A firewall transaction is a sequence of commands that should executed atomically.
| FirewallTransactionManager::FirewallTransactionManager | ( | EventLoop & | eventloop | ) | [inline] |
| const string& FirewallTransactionManager::error | ( | ) | const [inline] |
| void FirewallTransactionManager::operation_result | ( | bool | success, |
| const TransactionOperation & | op | ||
| ) | [protected, virtual] |
Method that is called after each operation.
This is an overriding method.
| success | set to true if the operation succeeded, otherwise false. |
| op | the operation that has been just called. |
Reimplemented from TransactionManager.
| void FirewallTransactionManager::pre_commit | ( | uint32_t | tid | ) | [protected, virtual] |
Pre-commit method that is called before the first operation in a commit.
This is an overriding method.
| tid | the transaction ID. |
Reimplemented from TransactionManager.