OpenSDN source code
RibUpdateMonitor Class Reference

#include <bgp_update_monitor.h>

Collaboration diagram for RibUpdateMonitor:

Public Types

typedef boost::function< bool(const RouteUpdate *)> UpdateCmp
 
typedef std::vector< UpdateQueue * > QueueVec
 

Public Member Functions

 RibUpdateMonitor (RibOut *ribout, QueueVec *queue_vec)
 
DBState * GetDBStateAndDequeue (DBEntryBase *db_entry, UpdateCmp cmp, bool *duplicate)
 
bool GetPeerSetCurrentAndScheduled (DBEntryBase *db_entry, int queue_id, RibPeerSet *mcurrent, RibPeerSet *mscheduled)
 
bool EnqueueUpdate (DBEntryBase *db_entry, RouteUpdate *rt_update, UpdateList *uplist=NULL)
 
void DequeueUpdate (RouteUpdate *rt_update)
 
bool MergeUpdate (DBEntryBase *db_entry, RouteUpdate *rt_update)
 
void ClearPeerSetCurrentAndScheduled (DBEntryBase *db_entry, const RibPeerSet &mleave)
 
RouteUpdatePtr GetNextUpdate (int queue_id, UpdateEntry *upentry)
 
RouteUpdatePtr GetNextEntry (int queue_id, UpdateEntry *upentry, UpdateEntry **next_upentry_p)
 
RouteUpdatePtr GetAttrNext (int queue_id, UpdateInfo *current_uinfo, UpdateInfo **next_uinfo_p)
 
void SetEntryState (DBEntryBase *db_entry, DBState *dbstate)
 
void ClearEntryState (DBEntryBase *db_entry)
 

Private Member Functions

DBState * GetRouteUpdateAndDequeue (DBEntryBase *db_entry, RouteUpdate *rt_update, UpdateCmp cmp, bool *duplicate)
 
DBState * GetUpdateListAndDequeue (DBEntryBase *db_entry, UpdateList *uplist)
 
bool RouteStateMergeUpdate (DBEntryBase *db_entry, RouteUpdate *rt_update, RouteState *rstate)
 
bool RouteUpdateMergeUpdate (DBEntryBase *db_entry, RouteUpdate *rt_update, RouteUpdate *current_rt_update)
 
bool UpdateListMergeUpdate (DBEntryBase *db_entry, RouteUpdate *rt_update, UpdateList *uplist)
 
void AdvertiseSListClearBits (AdvertiseSList &adv_slist, const RibPeerSet &clear)
 
void UpdateInfoSListClearBits (UpdateInfoSList &uinfo_slist, const RibPeerSet &clear)
 
void RouteStateClearPeerSet (DBEntryBase *db_entry, RouteState *rstate, const RibPeerSet &mleave)
 
bool RouteUpdateClearPeerSet (DBEntryBase *db_entry, RouteUpdate *rt_update, const RibPeerSet &mleave)
 
bool UpdateListClearPeerSet (DBEntryBase *db_entry, UpdateList *uplist, const RibPeerSet &mleave)
 
 DISALLOW_COPY_AND_ASSIGN (RibUpdateMonitor)
 

Private Attributes

RibOut * ribout_
 
QueueVec * queue_vec_
 

Detailed Description

Definition at line 103 of file bgp_update_monitor.h.

Member Typedef Documentation

◆ QueueVec

typedef std::vector<UpdateQueue *> RibUpdateMonitor::QueueVec

Definition at line 106 of file bgp_update_monitor.h.

◆ UpdateCmp

typedef boost::function<bool(const RouteUpdate *)> RibUpdateMonitor::UpdateCmp

Definition at line 105 of file bgp_update_monitor.h.

Constructor & Destructor Documentation

◆ RibUpdateMonitor()

RibUpdateMonitor::RibUpdateMonitor ( RibOut *  ribout,
QueueVec *  queue_vec 
)
explicit

Definition at line 19 of file bgp_update_monitor.cc.

Member Function Documentation

◆ AdvertiseSListClearBits()

void RibUpdateMonitor::AdvertiseSListClearBits ( AdvertiseSList &  adv_slist,
const RibPeerSet &  clear 
)
private

Definition at line 438 of file bgp_update_monitor.cc.

◆ ClearEntryState()

void RibUpdateMonitor::ClearEntryState ( DBEntryBase *  db_entry)

Definition at line 767 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ ClearPeerSetCurrentAndScheduled()

void RibUpdateMonitor::ClearPeerSetCurrentAndScheduled ( DBEntryBase *  db_entry,
const RibPeerSet &  mleave 
)

Definition at line 599 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ DequeueUpdate()

void RibUpdateMonitor::DequeueUpdate ( RouteUpdate *  rt_update)

Definition at line 680 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ DISALLOW_COPY_AND_ASSIGN()

RibUpdateMonitor::DISALLOW_COPY_AND_ASSIGN ( RibUpdateMonitor  )
private

◆ EnqueueUpdate()

bool RibUpdateMonitor::EnqueueUpdate ( DBEntryBase *  db_entry,
RouteUpdate *  rt_update,
UpdateList *  uplist = NULL 
)

Definition at line 664 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ GetAttrNext()

RouteUpdatePtr RibUpdateMonitor::GetAttrNext ( int  queue_id,
UpdateInfo *  current_uinfo,
UpdateInfo **  next_uinfo_p 
)

Definition at line 740 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ GetDBStateAndDequeue()

DBState * RibUpdateMonitor::GetDBStateAndDequeue ( DBEntryBase *  db_entry,
UpdateCmp  cmp,
bool *  duplicate 
)

Definition at line 126 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ GetNextEntry()

RouteUpdatePtr RibUpdateMonitor::GetNextEntry ( int  queue_id,
UpdateEntry *  upentry,
UpdateEntry **  next_upentry_p 
)

Definition at line 718 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ GetNextUpdate()

RouteUpdatePtr RibUpdateMonitor::GetNextUpdate ( int  queue_id,
UpdateEntry *  upentry 
)

Definition at line 696 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ GetPeerSetCurrentAndScheduled()

bool RibUpdateMonitor::GetPeerSetCurrentAndScheduled ( DBEntryBase *  db_entry,
int  queue_id,
RibPeerSet *  mcurrent,
RibPeerSet *  mscheduled 
)

Definition at line 249 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ GetRouteUpdateAndDequeue()

DBState * RibUpdateMonitor::GetRouteUpdateAndDequeue ( DBEntryBase *  db_entry,
RouteUpdate *  rt_update,
UpdateCmp  cmp,
bool *  duplicate 
)
private

Definition at line 29 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ GetUpdateListAndDequeue()

DBState * RibUpdateMonitor::GetUpdateListAndDequeue ( DBEntryBase *  db_entry,
UpdateList *  uplist 
)
private

Definition at line 66 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ MergeUpdate()

bool RibUpdateMonitor::MergeUpdate ( DBEntryBase *  db_entry,
RouteUpdate *  rt_update 
)

Definition at line 388 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ RouteStateClearPeerSet()

void RibUpdateMonitor::RouteStateClearPeerSet ( DBEntryBase *  db_entry,
RouteState *  rstate,
const RibPeerSet &  mleave 
)
private

Definition at line 482 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ RouteStateMergeUpdate()

bool RibUpdateMonitor::RouteStateMergeUpdate ( DBEntryBase *  db_entry,
RouteUpdate *  rt_update,
RouteState *  rstate 
)
private

Definition at line 311 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ RouteUpdateClearPeerSet()

bool RibUpdateMonitor::RouteUpdateClearPeerSet ( DBEntryBase *  db_entry,
RouteUpdate *  rt_update,
const RibPeerSet &  mleave 
)
private

Definition at line 504 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ RouteUpdateMergeUpdate()

bool RibUpdateMonitor::RouteUpdateMergeUpdate ( DBEntryBase *  db_entry,
RouteUpdate *  rt_update,
RouteUpdate *  current_rt_update 
)
private

Definition at line 332 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ SetEntryState()

void RibUpdateMonitor::SetEntryState ( DBEntryBase *  db_entry,
DBState *  dbstate 
)

Definition at line 758 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ UpdateInfoSListClearBits()

void RibUpdateMonitor::UpdateInfoSListClearBits ( UpdateInfoSList &  uinfo_slist,
const RibPeerSet &  clear 
)
private

Definition at line 458 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ UpdateListClearPeerSet()

bool RibUpdateMonitor::UpdateListClearPeerSet ( DBEntryBase *  db_entry,
UpdateList *  uplist,
const RibPeerSet &  mleave 
)
private

Definition at line 544 of file bgp_update_monitor.cc.

Here is the call graph for this function:

◆ UpdateListMergeUpdate()

bool RibUpdateMonitor::UpdateListMergeUpdate ( DBEntryBase *  db_entry,
RouteUpdate *  rt_update,
UpdateList *  uplist 
)
private

Definition at line 362 of file bgp_update_monitor.cc.

Here is the call graph for this function:

Member Data Documentation

◆ queue_vec_

QueueVec* RibUpdateMonitor::queue_vec_
private

Definition at line 189 of file bgp_update_monitor.h.

◆ ribout_

RibOut* RibUpdateMonitor::ribout_
private

Definition at line 188 of file bgp_update_monitor.h.


The documentation for this class was generated from the following files: