xorp

IfConfigTransactionManager Class Reference

Inheritance diagram for IfConfigTransactionManager:
TransactionManager

List of all members.

Public Member Functions

 IfConfigTransactionManager (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

Constructor & Destructor Documentation

IfConfigTransactionManager::IfConfigTransactionManager ( EventLoop eventloop) [inline]

Constructor.

Parameters:
eventloopthe event loop to use.

Member Function Documentation

const string& IfConfigTransactionManager::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 IfConfigTransactionManager::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 IfConfigTransactionManager::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