OpenSDN source code
BgpUpdateSender Class Reference

#include <bgp_update_sender.h>

Collaboration diagram for BgpUpdateSender:

Public Member Functions

 BgpUpdateSender (BgpServer *server)
 
 ~BgpUpdateSender ()
 
void Join (RibOut *ribout, IPeerUpdate *peer)
 
void Leave (RibOut *ribout, IPeerUpdate *peer)
 
void RibOutActive (int index, RibOut *ribout, int queue_id)
 
void PeerSendReady (IPeerUpdate *peer)
 
bool PeerIsRegistered (IPeerUpdate *peer) const
 
bool PeerInSync (IPeerUpdate *peer) const
 
int task_id () const
 
bool CheckInvariants () const
 
void DisableProcessing ()
 
void EnableProcessing ()
 

Private Member Functions

bool SendReadyCallback (IPeerUpdate *peer)
 
BgpSenderPartitionpartition (int index)
 
 DISALLOW_COPY_AND_ASSIGN (BgpUpdateSender)
 

Private Attributes

BgpServerserver_
 
int task_id_
 
std::vector< BgpSenderPartition * > partitions_
 
WorkQueue< IPeerUpdate * > send_ready_queue_
 

Friends

class BgpTestPeer
 
class BgpUpdateSenderTest
 
class RibOutUpdatesTest
 

Detailed Description

Definition at line 159 of file bgp_update_sender.h.

Constructor & Destructor Documentation

◆ BgpUpdateSender()

BgpUpdateSender::BgpUpdateSender ( BgpServer server)
explicit

Definition at line 956 of file bgp_update_sender.cc.

Here is the call graph for this function:

◆ ~BgpUpdateSender()

BgpUpdateSender::~BgpUpdateSender ( )

Definition at line 971 of file bgp_update_sender.cc.

Here is the call graph for this function:

Member Function Documentation

◆ CheckInvariants()

bool BgpUpdateSender::CheckInvariants ( ) const

Definition at line 1058 of file bgp_update_sender.cc.

Here is the call graph for this function:

◆ DisableProcessing()

void BgpUpdateSender::DisableProcessing ( )

Definition at line 1069 of file bgp_update_sender.cc.

Here is the call graph for this function:

◆ DISALLOW_COPY_AND_ASSIGN()

BgpUpdateSender::DISALLOW_COPY_AND_ASSIGN ( BgpUpdateSender  )
private

◆ EnableProcessing()

void BgpUpdateSender::EnableProcessing ( )

Definition at line 1078 of file bgp_update_sender.cc.

Here is the call graph for this function:

◆ Join()

void BgpUpdateSender::Join ( RibOut ribout,
IPeerUpdate peer 
)

Definition at line 979 of file bgp_update_sender.cc.

Here is the call graph for this function:

◆ Leave()

void BgpUpdateSender::Leave ( RibOut ribout,
IPeerUpdate peer 
)

Definition at line 990 of file bgp_update_sender.cc.

Here is the call graph for this function:

◆ partition()

BgpSenderPartition* BgpUpdateSender::partition ( int  index)
inlineprivate

Definition at line 185 of file bgp_update_sender.h.

◆ PeerInSync()

bool BgpUpdateSender::PeerInSync ( IPeerUpdate peer) const

Definition at line 1032 of file bgp_update_sender.cc.

Here is the call graph for this function:

◆ PeerIsRegistered()

bool BgpUpdateSender::PeerIsRegistered ( IPeerUpdate peer) const

Definition at line 1021 of file bgp_update_sender.cc.

Here is the call graph for this function:

◆ PeerSendReady()

void BgpUpdateSender::PeerSendReady ( IPeerUpdate peer)

Definition at line 1014 of file bgp_update_sender.cc.

Here is the call graph for this function:

◆ RibOutActive()

void BgpUpdateSender::RibOutActive ( int  index,
RibOut ribout,
int  queue_id 
)

Definition at line 1002 of file bgp_update_sender.cc.

◆ SendReadyCallback()

bool BgpUpdateSender::SendReadyCallback ( IPeerUpdate peer)
private

Definition at line 1046 of file bgp_update_sender.cc.

Here is the call graph for this function:

◆ task_id()

int BgpUpdateSender::task_id ( ) const
inline

Definition at line 172 of file bgp_update_sender.h.

Friends And Related Function Documentation

◆ BgpTestPeer

friend class BgpTestPeer
friend

Definition at line 180 of file bgp_update_sender.h.

◆ BgpUpdateSenderTest

friend class BgpUpdateSenderTest
friend

Definition at line 181 of file bgp_update_sender.h.

◆ RibOutUpdatesTest

friend class RibOutUpdatesTest
friend

Definition at line 182 of file bgp_update_sender.h.

Member Data Documentation

◆ partitions_

std::vector<BgpSenderPartition *> BgpUpdateSender::partitions_
private

Definition at line 189 of file bgp_update_sender.h.

◆ send_ready_queue_

WorkQueue<IPeerUpdate *> BgpUpdateSender::send_ready_queue_
private

Definition at line 190 of file bgp_update_sender.h.

◆ server_

BgpServer* BgpUpdateSender::server_
private

Definition at line 187 of file bgp_update_sender.h.

◆ task_id_

int BgpUpdateSender::task_id_
private

Definition at line 188 of file bgp_update_sender.h.


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