OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BgpXmppChannel::XmppPeer Class Reference
Inheritance diagram for BgpXmppChannel::XmppPeer:
Collaboration diagram for BgpXmppChannel::XmppPeer:

Public Member Functions

 XmppPeer (BgpServer *server, BgpXmppChannel *channel)
 
virtual ~XmppPeer ()
 
virtual bool MembershipPathCallback (DBTablePartBase *tpart, BgpRoute *rt, BgpPath *path)
 
virtual bool SendUpdate (const uint8_t *msg, size_t msgsize, const std::string *msg_str)
 
virtual bool SendUpdate (const uint8_t *msg, size_t msgsize)
 
virtual const string & ToString () const
 
virtual bool CanUseMembershipManager () const
 
virtual bool IsRegistrationRequired () const
 
virtual const string & ToUVEKey () const
 
virtual BgpServerserver ()
 
virtual BgpServerserver () const
 
virtual IPeerClosepeer_close ()
 
virtual IPeerClosepeer_close () const
 
void UpdateCloseRouteStats (Address::Family family, const BgpPath *old_path, uint32_t path_flags) const
 
virtual IPeerDebugStatspeer_stats ()
 
virtual const IPeerDebugStatspeer_stats () const
 
virtual bool IsReady () const
 
virtual const string GetStateName () const
 
virtual bool IsXmppPeer () const
 
virtual void Close (bool graceful)
 
const bool IsDeleted () const
 
void SetPeerClosed (bool closed)
 
uint64_t closed_at () const
 
virtual BgpProto::BgpPeerType PeerType () const
 
virtual uint32_t bgp_identifier () const
 
virtual void UpdateTotalPathCount (int count) const
 
virtual int GetTotalPathCount () const
 
virtual bool IsAs4Supported () const
 
virtual void UpdatePrimaryPathCount (int count, Address::Family family) const
 
virtual int GetPrimaryPathCount () const
 
virtual void ProcessPathTunnelEncapsulation (const BgpPath *path, BgpAttr *attr, ExtCommunityDB *extcomm_db, const BgpTable *table) const
 
virtual const std::vector
< std::string > 
GetDefaultTunnelEncap (Address::Family family) const
 
virtual bool IsInGRTimerWaitState () const
 
void MembershipRequestCallback (BgpTable *table)
 
virtual bool send_ready () const
 
bool IsRouterTypeBGPaaS () const
 
- Public Member Functions inherited from IPeer
virtual ~IPeer ()
 
virtual bool CheckSplitHorizon (uint32_t cluster_id=0, uint32_t ribout_cid=0) const
 
- Public Member Functions inherited from IPeerUpdate
virtual ~IPeerUpdate ()
 
virtual bool FlushUpdate ()
 

Private Member Functions

void WriteReadyCb (const boost::system::error_code &ec)
 

Private Attributes

BgpServerserver_
 
BgpXmppChannelparent_
 
tbb::atomic< int > total_path_count_
 
tbb::atomic< int > primary_path_count_
 
bool is_closed_
 
bool send_ready_
 
uint64_t closed_at_
 

Detailed Description

Definition at line 257 of file bgp_xmpp_channel.cc.

Constructor & Destructor Documentation

BgpXmppChannel::XmppPeer::XmppPeer ( BgpServer server,
BgpXmppChannel channel 
)
inline

Definition at line 259 of file bgp_xmpp_channel.cc.

virtual BgpXmppChannel::XmppPeer::~XmppPeer ( )
inlinevirtual

Definition at line 269 of file bgp_xmpp_channel.cc.

Here is the call graph for this function:

Member Function Documentation

virtual uint32_t BgpXmppChannel::XmppPeer::bgp_identifier ( ) const
inlinevirtual

Implements IPeer.

Definition at line 363 of file bgp_xmpp_channel.cc.

virtual bool BgpXmppChannel::XmppPeer::CanUseMembershipManager ( ) const
inlinevirtual

Implements IPeer.

Definition at line 303 of file bgp_xmpp_channel.cc.

void BgpXmppChannel::XmppPeer::Close ( bool  graceful)
virtual

Implements IPeer.

Definition at line 467 of file bgp_xmpp_channel.cc.

Here is the call graph for this function:

uint64_t BgpXmppChannel::XmppPeer::closed_at ( ) const
inline

Definition at line 357 of file bgp_xmpp_channel.cc.

virtual const std::vector<std::string> BgpXmppChannel::XmppPeer::GetDefaultTunnelEncap ( Address::Family  family) const
inlinevirtual

Implements IPeer.

Definition at line 389 of file bgp_xmpp_channel.cc.

virtual int BgpXmppChannel::XmppPeer::GetPrimaryPathCount ( ) const
inlinevirtual

Implements IPeer.

Definition at line 382 of file bgp_xmpp_channel.cc.

virtual const string BgpXmppChannel::XmppPeer::GetStateName ( ) const
inlinevirtual

Implements IPeer.

Definition at line 337 of file bgp_xmpp_channel.cc.

virtual int BgpXmppChannel::XmppPeer::GetTotalPathCount ( ) const
inlinevirtual

Implements IPeer.

Definition at line 374 of file bgp_xmpp_channel.cc.

virtual bool BgpXmppChannel::XmppPeer::IsAs4Supported ( ) const
inlinevirtual

Implements IPeer.

Definition at line 377 of file bgp_xmpp_channel.cc.

const bool BgpXmppChannel::XmppPeer::IsDeleted ( ) const
inline

Definition at line 351 of file bgp_xmpp_channel.cc.

virtual bool BgpXmppChannel::XmppPeer::IsInGRTimerWaitState ( ) const
inlinevirtual

Implements IPeer.

Definition at line 393 of file bgp_xmpp_channel.cc.

virtual bool BgpXmppChannel::XmppPeer::IsReady ( ) const
inlinevirtual

Implements IPeer.

Definition at line 334 of file bgp_xmpp_channel.cc.

virtual bool BgpXmppChannel::XmppPeer::IsRegistrationRequired ( ) const
inlinevirtual

Implements IPeer.

Definition at line 307 of file bgp_xmpp_channel.cc.

bool BgpXmppChannel::XmppPeer::IsRouterTypeBGPaaS ( ) const
inlinevirtual

Implements IPeer.

Definition at line 402 of file bgp_xmpp_channel.cc.

virtual bool BgpXmppChannel::XmppPeer::IsXmppPeer ( ) const
inlinevirtual

Implements IPeer.

Definition at line 346 of file bgp_xmpp_channel.cc.

virtual bool BgpXmppChannel::XmppPeer::MembershipPathCallback ( DBTablePartBase tpart,
BgpRoute rt,
BgpPath path 
)
inlinevirtual

Implements IPeer.

Definition at line 284 of file bgp_xmpp_channel.cc.

Here is the call graph for this function:

void BgpXmppChannel::XmppPeer::MembershipRequestCallback ( BgpTable table)
inlinevirtual

Implements IPeer.

Definition at line 397 of file bgp_xmpp_channel.cc.

virtual IPeerClose* BgpXmppChannel::XmppPeer::peer_close ( )
inlinevirtual

Implements IPeer.

Definition at line 315 of file bgp_xmpp_channel.cc.

virtual IPeerClose* BgpXmppChannel::XmppPeer::peer_close ( ) const
inlinevirtual

Implements IPeer.

Definition at line 318 of file bgp_xmpp_channel.cc.

virtual IPeerDebugStats* BgpXmppChannel::XmppPeer::peer_stats ( )
inlinevirtual

Implements IPeer.

Definition at line 327 of file bgp_xmpp_channel.cc.

virtual const IPeerDebugStats* BgpXmppChannel::XmppPeer::peer_stats ( ) const
inlinevirtual

Implements IPeer.

Definition at line 330 of file bgp_xmpp_channel.cc.

virtual BgpProto::BgpPeerType BgpXmppChannel::XmppPeer::PeerType ( ) const
inlinevirtual

Implements IPeer.

Definition at line 359 of file bgp_xmpp_channel.cc.

virtual void BgpXmppChannel::XmppPeer::ProcessPathTunnelEncapsulation ( const BgpPath path,
BgpAttr attr,
ExtCommunityDB extcomm_db,
const BgpTable table 
) const
inlinevirtual

Implements IPeer.

Definition at line 385 of file bgp_xmpp_channel.cc.

virtual bool BgpXmppChannel::XmppPeer::send_ready ( ) const
inlinevirtual

Reimplemented from IPeerUpdate.

Definition at line 401 of file bgp_xmpp_channel.cc.

virtual bool BgpXmppChannel::XmppPeer::SendUpdate ( const uint8_t *  msg,
size_t  msgsize,
const std::string *  msg_str 
)
virtual

Reimplemented from IPeerUpdate.

virtual bool BgpXmppChannel::XmppPeer::SendUpdate ( const uint8_t *  msg,
size_t  msgsize 
)
inlinevirtual

Implements IPeerUpdate.

Definition at line 296 of file bgp_xmpp_channel.cc.

virtual BgpServer* BgpXmppChannel::XmppPeer::server ( )
inlinevirtual

Implements IPeer.

Definition at line 313 of file bgp_xmpp_channel.cc.

virtual BgpServer* BgpXmppChannel::XmppPeer::server ( ) const
inlinevirtual

Implements IPeer.

Definition at line 314 of file bgp_xmpp_channel.cc.

void BgpXmppChannel::XmppPeer::SetPeerClosed ( bool  closed)
inline

Definition at line 352 of file bgp_xmpp_channel.cc.

Here is the call graph for this function:

virtual const string& BgpXmppChannel::XmppPeer::ToString ( ) const
inlinevirtual

Implements IPeer.

Definition at line 299 of file bgp_xmpp_channel.cc.

virtual const string& BgpXmppChannel::XmppPeer::ToUVEKey ( ) const
inlinevirtual

Implements IPeer.

Definition at line 309 of file bgp_xmpp_channel.cc.

void BgpXmppChannel::XmppPeer::UpdateCloseRouteStats ( Address::Family  family,
const BgpPath old_path,
uint32_t  path_flags 
) const
inlinevirtual

Implements IPeer.

Definition at line 322 of file bgp_xmpp_channel.cc.

virtual void BgpXmppChannel::XmppPeer::UpdatePrimaryPathCount ( int  count,
Address::Family  family 
) const
inlinevirtual

Implements IPeer.

Definition at line 378 of file bgp_xmpp_channel.cc.

virtual void BgpXmppChannel::XmppPeer::UpdateTotalPathCount ( int  count) const
inlinevirtual

Implements IPeer.

Definition at line 371 of file bgp_xmpp_channel.cc.

void BgpXmppChannel::XmppPeer::WriteReadyCb ( const boost::system::error_code &  ec)
inlineprivate

Definition at line 405 of file bgp_xmpp_channel.cc.

Here is the call graph for this function:

Member Data Documentation

uint64_t BgpXmppChannel::XmppPeer::closed_at_
private

Definition at line 423 of file bgp_xmpp_channel.cc.

bool BgpXmppChannel::XmppPeer::is_closed_
private

Definition at line 421 of file bgp_xmpp_channel.cc.

BgpXmppChannel* BgpXmppChannel::XmppPeer::parent_
private

Definition at line 418 of file bgp_xmpp_channel.cc.

tbb::atomic<int> BgpXmppChannel::XmppPeer::primary_path_count_
mutableprivate

Definition at line 420 of file bgp_xmpp_channel.cc.

bool BgpXmppChannel::XmppPeer::send_ready_
private

Definition at line 422 of file bgp_xmpp_channel.cc.

BgpServer* BgpXmppChannel::XmppPeer::server_
private

Definition at line 417 of file bgp_xmpp_channel.cc.

tbb::atomic<int> BgpXmppChannel::XmppPeer::total_path_count_
mutableprivate

Definition at line 419 of file bgp_xmpp_channel.cc.


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