xorp

RedistTransactionXrlOutput< A > Class Template Reference

Route Redistributor output that sends route add and deletes to remote redistribution target via the redist_transaction{4,6} xrl interfaces. More...

#include <redist_xrl.hh>

Inheritance diagram for RedistTransactionXrlOutput< A >:
RedistXrlOutput< A > RedistOutput< A > NONCOPYABLE

List of all members.

Public Types

typedef RedistXrlOutput< A >::Task Task

Public Member Functions

 RedistTransactionXrlOutput (Redistributor< A > *redistributor, XrlRouter &xrl_router, Profile &profile, const string &from_protocol, const string &xrl_target_name, const IPNet< A > &network_prefix, const string &cookie)
void add_route (const IPRouteEntry< A > &ipr)
void delete_route (const IPRouteEntry< A > &ipr)
void starting_route_dump ()
 Method called by Redistributor to indicate start of initial route dump.
void finishing_route_dump ()
 Method called by Redistributor to indicate end of initial route dump.
void task_completed (Task *task)
void set_callback_pending (bool v)
uint32_t tid () const
void set_tid (uint32_t v)
bool transaction_in_progress () const
void set_transaction_in_progress (bool v)
bool transaction_in_error () const
void set_transaction_in_error (bool v)
size_t transaction_size () const
void reset_transaction_size ()
void incr_transaction_size ()

Static Public Attributes

static const size_t MAX_TRANSACTION_SIZE = 100

Protected Attributes

uint32_t _tid
bool _transaction_in_progress
bool _transaction_in_error
size_t _transaction_size

Detailed Description

template<typename A>
class RedistTransactionXrlOutput< A >

Route Redistributor output that sends route add and deletes to remote redistribution target via the redist_transaction{4,6} xrl interfaces.


Member Function Documentation

template<typename A >
void RedistTransactionXrlOutput< A >::finishing_route_dump ( ) [virtual]

Method called by Redistributor to indicate end of initial route dump.

This occurs when an output is first attached to the redistributor to announce the existing routes.

Reimplemented from RedistXrlOutput< A >.

template<typename A >
void RedistTransactionXrlOutput< A >::starting_route_dump ( ) [virtual]

Method called by Redistributor to indicate start of initial route dump.

This occurs when an output is first attached to the redistributor to announce the existing routes.

Reimplemented from RedistXrlOutput< A >.


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