5 #ifndef SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_OVSDB_CLIENT_H_
6 #define SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_OVSDB_CLIENT_H_
9 class SandeshOvsdbClient;
15 class OvsdbClientSession;
16 class ConnectionStateTable;
35 virtual const std::string
protocol() = 0;
36 virtual const std::string
server() = 0;
37 virtual uint16_t
port() = 0;
78 #endif //SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_OVSDB_CLIENT_H_
int ha_stale_route_interval() const
void RegisterConnectionTable(Agent *agent)
virtual Ip4Address tsn_ip()=0
static const int OVSDBMinHaStaleRouteTimer
static const uint32_t OVSDBKeepAliveTimer
static const int OVSDBMinKeepAliveTimer
virtual void AddSessionInfo(SandeshOvsdbClient &client)=0
static OvsdbClient * Allocate(Agent *agent, TorAgentParam *params, OvsPeerManager *manager)
virtual void shutdown()=0
OvsdbClient(OvsPeerManager *manager, int keepalive_interval, int ha_stale_route_interval)
KSyncObjectManager * ksync_obj_manager_
int keepalive_interval() const
boost::scoped_ptr< ConnectionStateTable > connection_table_
virtual OvsdbClientSession * FindSession(Ip4Address ip, uint16_t port)=0
boost::asio::ip::address_v4 Ip4Address
int ha_stale_route_interval_
virtual const std::string protocol()=0
ConnectionStateTable * connection_table()
boost::function< void(OvsdbClientSession *)> SessionEventCb
virtual uint16_t port()=0
void set_connect_complete_cb(SessionEventCb cb)
virtual const std::string server()=0
SessionEventCb connect_complete_cb_
SessionEventCb pre_connect_complete_cb_
void set_pre_connect_complete_cb(SessionEventCb cb)
OvsPeerManager * peer_manager_
KSyncObjectManager * ksync_obj_manager()
virtual void RegisterClients()=0
static const uint32_t OVSDBHaStaleRouteTimer
virtual OvsdbClientSession * NextSession(OvsdbClientSession *session)=0
DISALLOW_COPY_AND_ASSIGN(OvsdbClient)