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

Public Member Functions

 PeerStats (BgpPeer *peer)
 
virtual void Clear ()
 
virtual string ToString () const
 
virtual string last_state () const
 
virtual string last_state_change_at () const
 
virtual string last_error () const
 
virtual string last_event () const
 
virtual string last_flap () const
 
virtual uint64_t num_flaps () const
 
virtual void GetRxProtoStats (ProtoStats *stats) const
 
virtual void GetTxProtoStats (ProtoStats *stats) const
 
virtual void GetRxRouteUpdateStats (UpdateStats *stats) const
 
virtual void GetTxRouteUpdateStats (UpdateStats *stats) const
 
virtual void GetRxSocketStats (IPeerDebugStats::SocketStats *stats) const
 
virtual void GetTxSocketStats (IPeerDebugStats::SocketStats *stats) const
 
virtual void UpdateTxUnreachRoute (uint64_t count)
 
virtual void UpdateTxReachRoute (uint64_t count)
 
virtual void GetRxErrorStats (RxErrorStats *stats) const
 
virtual void GetRxRouteStats (RxRouteStats *stats) const
 
- Public Member Functions inherited from IPeerDebugStats
virtual ~IPeerDebugStats ()
 
virtual void GetRxProtoStats (ProtoStats *stats) const =0
 
virtual void GetTxProtoStats (ProtoStats *stats) const =0
 

Private Attributes

BgpPeerpeer_
 
ErrorStats error_stats_
 
ProtoStats proto_stats_ [2]
 
UpdateStats update_stats_ [2]
 

Friends

class BgpPeer
 

Detailed Description

Definition at line 54 of file bgp_peer.cc.

Constructor & Destructor Documentation

BgpPeer::PeerStats::PeerStats ( BgpPeer peer)
inlineexplicit

Definition at line 56 of file bgp_peer.cc.

Member Function Documentation

virtual void BgpPeer::PeerStats::Clear ( )
inlinevirtual

Implements IPeerDebugStats.

Definition at line 63 of file bgp_peer.cc.

Here is the call graph for this function:

virtual void BgpPeer::PeerStats::GetRxErrorStats ( RxErrorStats stats) const
inlinevirtual

Implements IPeerDebugStats.

Definition at line 145 of file bgp_peer.cc.

virtual void BgpPeer::PeerStats::GetRxProtoStats ( ProtoStats stats) const
inlinevirtual

Definition at line 101 of file bgp_peer.cc.

virtual void BgpPeer::PeerStats::GetRxRouteStats ( RxRouteStats stats) const
inlinevirtual

Implements IPeerDebugStats.

Definition at line 148 of file bgp_peer.cc.

Here is the call graph for this function:

virtual void BgpPeer::PeerStats::GetRxRouteUpdateStats ( UpdateStats stats) const
inlinevirtual

Implements IPeerDebugStats.

Definition at line 109 of file bgp_peer.cc.

virtual void BgpPeer::PeerStats::GetRxSocketStats ( IPeerDebugStats::SocketStats stats) const
inlinevirtual

Implements IPeerDebugStats.

Definition at line 117 of file bgp_peer.cc.

Here is the call graph for this function:

virtual void BgpPeer::PeerStats::GetTxProtoStats ( ProtoStats stats) const
inlinevirtual

Definition at line 105 of file bgp_peer.cc.

virtual void BgpPeer::PeerStats::GetTxRouteUpdateStats ( UpdateStats stats) const
inlinevirtual

Implements IPeerDebugStats.

Definition at line 113 of file bgp_peer.cc.

virtual void BgpPeer::PeerStats::GetTxSocketStats ( IPeerDebugStats::SocketStats stats) const
inlinevirtual

Implements IPeerDebugStats.

Definition at line 125 of file bgp_peer.cc.

Here is the call graph for this function:

virtual string BgpPeer::PeerStats::last_error ( ) const
inlinevirtual

Implements IPeerDebugStats.

Definition at line 83 of file bgp_peer.cc.

Here is the call graph for this function:

virtual string BgpPeer::PeerStats::last_event ( ) const
inlinevirtual

Implements IPeerDebugStats.

Definition at line 87 of file bgp_peer.cc.

Here is the call graph for this function:

virtual string BgpPeer::PeerStats::last_flap ( ) const
inlinevirtual

Implements IPeerDebugStats.

Definition at line 92 of file bgp_peer.cc.

Here is the call graph for this function:

virtual string BgpPeer::PeerStats::last_state ( ) const
inlinevirtual

Implements IPeerDebugStats.

Definition at line 76 of file bgp_peer.cc.

Here is the call graph for this function:

virtual string BgpPeer::PeerStats::last_state_change_at ( ) const
inlinevirtual

Implements IPeerDebugStats.

Definition at line 79 of file bgp_peer.cc.

Here is the call graph for this function:

virtual uint64_t BgpPeer::PeerStats::num_flaps ( ) const
inlinevirtual

Implements IPeerDebugStats.

Definition at line 97 of file bgp_peer.cc.

Here is the call graph for this function:

virtual string BgpPeer::PeerStats::ToString ( ) const
inlinevirtual

Implements IPeerDebugStats.

Definition at line 72 of file bgp_peer.cc.

Here is the call graph for this function:

virtual void BgpPeer::PeerStats::UpdateTxReachRoute ( uint64_t  count)
inlinevirtual

Implements IPeerDebugStats.

Definition at line 140 of file bgp_peer.cc.

virtual void BgpPeer::PeerStats::UpdateTxUnreachRoute ( uint64_t  count)
inlinevirtual

Implements IPeerDebugStats.

Definition at line 136 of file bgp_peer.cc.

Friends And Related Function Documentation

friend class BgpPeer
friend

Definition at line 154 of file bgp_peer.cc.

Member Data Documentation

ErrorStats BgpPeer::PeerStats::error_stats_
private

Definition at line 157 of file bgp_peer.cc.

BgpPeer* BgpPeer::PeerStats::peer_
private

Definition at line 156 of file bgp_peer.cc.

ProtoStats BgpPeer::PeerStats::proto_stats_[2]
private

Definition at line 158 of file bgp_peer.cc.

UpdateStats BgpPeer::PeerStats::update_stats_[2]
private

Definition at line 159 of file bgp_peer.cc.


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