|
OpenSDN source code
|
#include <connection_info.h>

Public Member Functions | |
| void | Update () |
| void | Update (ConnectionType::type ctype, const std::string &name, ConnectionStatus::type status, Endpoint server, std::string message) |
| void | Update (ConnectionType::type ctype, const std::string &name, ConnectionStatus::type status, const std::vector< Endpoint > &servers, std::string message) |
| void | Delete (ConnectionType::type ctype, const std::string &name) |
| std::vector< ConnectionInfo > | GetInfos () const |
Static Public Member Functions | |
| static ConnectionState * | GetInstance () |
Private Types | |
| typedef boost::tuple< ConnectionType::type, std::string > | ConnectionInfoKey |
| typedef std::map< ConnectionInfoKey, ConnectionInfo > | ConnectionInfoMap |
| typedef boost::function< void(void)> | SendUveCb |
Private Member Functions | |
| void | UpdateInternal (ConnectionType::type ctype, const std::string &name, ConnectionStatus::type status, const std::vector< Endpoint > &servers, std::string message) |
| std::vector< ConnectionInfo > | GetInfosUnlocked () const |
| ConnectionState (SendUveCb send_uve_cb) | |
Static Private Member Functions | |
| static void | CreateInstance (SendUveCb send_uve_cb) |
Private Attributes | |
| tbb::mutex | mutex_ |
| ConnectionInfoMap | connection_map_ |
| SendUveCb | send_uve_cb_ |
Static Private Attributes | |
| static boost::scoped_ptr< ConnectionState > | instance_ |
Friends | |
| class | ConnectionStateManager |
Definition at line 44 of file connection_info.h.
|
private |
Definition at line 64 of file connection_info.h.
|
private |
Definition at line 65 of file connection_info.h.
|
private |
Definition at line 66 of file connection_info.h.
|
private |
Definition at line 25 of file connection_info.cc.
|
staticprivate |
| void process::ConnectionState::Delete | ( | ConnectionType::type | ctype, |
| const std::string & | name | ||
| ) |
Definition at line 109 of file connection_info.cc.
| vector< ConnectionInfo > process::ConnectionState::GetInfos | ( | ) | const |
|
private |
Definition at line 121 of file connection_info.cc.
|
static |
| void process::ConnectionState::Update | ( | ) |
Definition at line 46 of file connection_info.cc.
| void process::ConnectionState::Update | ( | ConnectionType::type | ctype, |
| const std::string & | name, | ||
| ConnectionStatus::type | status, | ||
| const std::vector< Endpoint > & | servers, | ||
| std::string | message | ||
| ) |
| void process::ConnectionState::Update | ( | ConnectionType::type | ctype, |
| const std::string & | name, | ||
| ConnectionStatus::type | status, | ||
| Endpoint | server, | ||
| std::string | message | ||
| ) |
|
private |
|
friend |
Definition at line 62 of file connection_info.h.
|
private |
Definition at line 75 of file connection_info.h.
|
staticprivate |
Definition at line 73 of file connection_info.h.
|
mutableprivate |
Definition at line 74 of file connection_info.h.
|
private |
Definition at line 76 of file connection_info.h.