OpenSDN source code
|
#include <peer_manager.h>
Public Types | |
typedef std::multimap < BgpPeerKey, BgpPeer * > | BgpPeerKeyMap |
typedef std::map< std::string, BgpPeer * > | BgpPeerNameMap |
Public Member Functions | |
PeerManager (RoutingInstance *instance) | |
virtual | ~PeerManager () |
virtual BgpPeer * | PeerFind (std::string address) const |
virtual BgpPeer * | PeerLookup (std::string name) const |
virtual BgpPeer * | PeerLookup (TcpSession::Endpoint remote_endpoint) const |
virtual BgpPeer * | PeerLocate (BgpServer *server, const BgpNeighborConfig *config) |
void | PeerResurrect (std::string name) |
BgpPeer * | TriggerPeerDeletion (const BgpNeighborConfig *config) |
virtual void | DestroyIPeer (IPeer *ipeer) |
void | ClearAllPeers () |
void | ClearAllInternalPeers () |
const BgpPeer * | NextPeer (const BgpPeerKey &key) const |
size_t | GetNeighborCount (std::string up_or_down) |
size_t | size () |
const std::string & | name () const |
const RoutingInstance * | instance () const |
RoutingInstance * | instance () |
BgpServer * | server () const |
const BgpPeerKeyMap & | peer_map () const |
BgpPeerKeyMap * | peer_map_mutable () |
Private Member Functions | |
void | InsertPeerByKey (BgpPeerKey key, BgpPeer *peer) |
void | RemovePeerByKey (BgpPeerKey key, BgpPeer *peer) |
void | InsertPeerByName (const std::string name, BgpPeer *peer) |
void | RemovePeerByName (const std::string name, BgpPeer *peer) |
Private Attributes | |
BgpPeerKeyMap | peers_by_key_ |
BgpPeerNameMap | peers_by_name_ |
RoutingInstance * | instance_ |
Friends | |
class | PeerManagerTest |
class | BgpServerTest |
Definition at line 24 of file peer_manager.h.
typedef std::multimap<BgpPeerKey, BgpPeer *> PeerManager::BgpPeerKeyMap |
Definition at line 26 of file peer_manager.h.
typedef std::map<std::string, BgpPeer *> PeerManager::BgpPeerNameMap |
Definition at line 27 of file peer_manager.h.
|
inlineexplicit |
Definition at line 29 of file peer_manager.h.
|
inlinevirtual |
Definition at line 30 of file peer_manager.h.
void PeerManager::ClearAllInternalPeers | ( | ) |
void PeerManager::ClearAllPeers | ( | ) |
|
virtual |
size_t PeerManager::GetNeighborCount | ( | std::string | up_or_down | ) |
|
private |
Definition at line 133 of file peer_manager.cc.
|
private |
Definition at line 155 of file peer_manager.cc.
|
inline |
Definition at line 48 of file peer_manager.h.
|
inline |
Definition at line 49 of file peer_manager.h.
const string & PeerManager::name | ( | ) | const |
const BgpPeer * PeerManager::NextPeer | ( | const BgpPeerKey & | key | ) | const |
Definition at line 253 of file peer_manager.cc.
|
inline |
Definition at line 52 of file peer_manager.h.
|
inline |
Definition at line 53 of file peer_manager.h.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
void PeerManager::PeerResurrect | ( | std::string | name | ) |
|
private |
Definition at line 141 of file peer_manager.cc.
|
private |
Definition at line 162 of file peer_manager.cc.
BgpServer * PeerManager::server | ( | ) | const |
|
inline |
Definition at line 46 of file peer_manager.h.
BgpPeer * PeerManager::TriggerPeerDeletion | ( | const BgpNeighborConfig * | config | ) |
|
friend |
Definition at line 57 of file peer_manager.h.
|
friend |
Definition at line 56 of file peer_manager.h.
|
private |
Definition at line 66 of file peer_manager.h.
|
private |
Definition at line 64 of file peer_manager.h.
|
private |
Definition at line 65 of file peer_manager.h.