xorp

FirewallTransactionManager Class Reference

A class to store and execute firewall transactions. More...

#include <firewall_transaction.hh>

Inheritance diagram for FirewallTransactionManager:
TransactionManager

List of all members.

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

Detailed Description

A class to store and execute firewall transactions.

A firewall transaction is a sequence of commands that should executed atomically.


Constructor & Destructor Documentation

FirewallTransactionManager::FirewallTransactionManager ( EventLoop eventloop) [inline]

Constructor.

Parameters:
eventloopthe event loop to use.
See also:
FirewallManager.

Member Function Documentation

const string& FirewallTransactionManager::error ( ) const [inline]

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.
void FirewallTransactionManager::operation_result ( bool  success,
const TransactionOperation op 
) [protected, virtual]

Method that is called after each operation.

This is an overriding method.

Parameters:
successset to true if the operation succeeded, otherwise false.
opthe 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.

Parameters:
tidthe transaction ID.

Reimplemented from TransactionManager.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations