class FibConfigTransactionManager

Class to store and execute FibConfig transactions. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Protected Methods


Detailed Description

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:

eventloopthe event loop to use.
fibconfigthe 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:

tidthe 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:

tidthe 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:

successset to true if the operation succeeded, otherwise false.
opthe operation that has been just called.

Reimplemented from TransactionManager.


Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:05:50 2008, using kdoc 2.0a54+XORP.