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


Public Types | |
| typedef boost::function< void(OvsdbClientSession *)> | SessionEventCb |
Public Member Functions | |
| OvsdbClient (OvsPeerManager *manager, int keepalive_interval, int ha_stale_route_interval) | |
| virtual | ~OvsdbClient () |
| virtual void | RegisterClients ()=0 |
| virtual const std::string | protocol ()=0 |
| virtual const std::string | server ()=0 |
| virtual uint16_t | port ()=0 |
| virtual Ip4Address | tsn_ip ()=0 |
| virtual OvsdbClientSession * | FindSession (Ip4Address ip, uint16_t port)=0 |
| virtual OvsdbClientSession * | NextSession (OvsdbClientSession *session)=0 |
| virtual void | AddSessionInfo (SandeshOvsdbClient &client)=0 |
| virtual void | shutdown ()=0 |
| void | set_connect_complete_cb (SessionEventCb cb) |
| void | set_pre_connect_complete_cb (SessionEventCb cb) |
| void | RegisterConnectionTable (Agent *agent) |
| ConnectionStateTable * | connection_table () |
| KSyncObjectManager * | ksync_obj_manager () |
| int | keepalive_interval () const |
| int | ha_stale_route_interval () const |
| void | Init () |
Static Public Member Functions | |
| static OvsdbClient * | Allocate (Agent *agent, TorAgentParam *params, OvsPeerManager *manager) |
Static Public Attributes | |
| static const uint32_t | OVSDBKeepAliveTimer = 10000 |
| static const int | OVSDBMinKeepAliveTimer = 2000 |
| static const uint32_t | OVSDBHaStaleRouteTimer = 300000 |
| static const int | OVSDBMinHaStaleRouteTimer = 60000 |
Protected Attributes | |
| OvsPeerManager * | peer_manager_ |
| SessionEventCb | connect_complete_cb_ |
| SessionEventCb | pre_connect_complete_cb_ |
Private Member Functions | |
| DISALLOW_COPY_AND_ASSIGN (OvsdbClient) | |
Private Attributes | |
| boost::scoped_ptr< ConnectionStateTable > | connection_table_ |
| KSyncObjectManager * | ksync_obj_manager_ |
| int | keepalive_interval_ |
| int | ha_stale_route_interval_ |
Definition at line 17 of file ovsdb_client.h.
| typedef boost::function<void (OvsdbClientSession *)> OVSDB::OvsdbClient::SessionEventCb |
Definition at line 19 of file ovsdb_client.h.
| OvsdbClient::OvsdbClient | ( | OvsPeerManager * | manager, |
| int | keepalive_interval, | ||
| int | ha_stale_route_interval | ||
| ) |
Definition at line 18 of file ovsdb_client.cc.
|
virtual |
Definition at line 25 of file ovsdb_client.cc.
|
pure virtual |
Implemented in OVSDB::OvsdbClientTcp, and OVSDB::OvsdbClientSsl.
|
static |
| ConnectionStateTable * OvsdbClient::connection_table | ( | ) |
Definition at line 40 of file ovsdb_client.cc.
|
private |
|
pure virtual |
Implemented in OVSDB::OvsdbClientTcp, and OVSDB::OvsdbClientSsl.
| int OvsdbClient::ha_stale_route_interval | ( | ) | const |
Definition at line 62 of file ovsdb_client.cc.
| void OvsdbClient::Init | ( | ) |
Definition at line 75 of file ovsdb_client.cc.
| int OvsdbClient::keepalive_interval | ( | ) | const |
Definition at line 48 of file ovsdb_client.cc.
| KSyncObjectManager * OvsdbClient::ksync_obj_manager | ( | ) |
Definition at line 44 of file ovsdb_client.cc.
|
pure virtual |
Implemented in OVSDB::OvsdbClientTcp, and OVSDB::OvsdbClientSsl.
|
pure virtual |
Implemented in OVSDB::OvsdbClientTcp, and OVSDB::OvsdbClientSsl.
|
pure virtual |
Implemented in OVSDB::OvsdbClientTcp, and OVSDB::OvsdbClientSsl.
|
pure virtual |
Implemented in OVSDB::OvsdbClientTcp, and OVSDB::OvsdbClientSsl.
| void OvsdbClient::RegisterConnectionTable | ( | Agent * | agent | ) |
Definition at line 36 of file ovsdb_client.cc.
|
pure virtual |
Implemented in OVSDB::OvsdbClientTcp, and OVSDB::OvsdbClientSsl.
| void OvsdbClient::set_connect_complete_cb | ( | SessionEventCb | cb | ) |
Definition at line 28 of file ovsdb_client.cc.
| void OvsdbClient::set_pre_connect_complete_cb | ( | SessionEventCb | cb | ) |
Definition at line 32 of file ovsdb_client.cc.
|
pure virtual |
Implemented in OVSDB::OvsdbClientTcp, and OVSDB::OvsdbClientSsl.
|
pure virtual |
Implemented in OVSDB::OvsdbClientTcp, and OVSDB::OvsdbClientSsl.
|
protected |
Definition at line 66 of file ovsdb_client.h.
|
private |
Definition at line 70 of file ovsdb_client.h.
|
private |
Definition at line 73 of file ovsdb_client.h.
|
private |
Definition at line 72 of file ovsdb_client.h.
|
private |
Definition at line 71 of file ovsdb_client.h.
|
static |
Definition at line 26 of file ovsdb_client.h.
|
static |
Definition at line 21 of file ovsdb_client.h.
|
static |
Definition at line 29 of file ovsdb_client.h.
|
static |
Definition at line 24 of file ovsdb_client.h.
|
protected |
Definition at line 64 of file ovsdb_client.h.
|
protected |
Definition at line 67 of file ovsdb_client.h.