OpenSDN source code
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OVSDB::OvsdbClientSession Class Referenceabstract

#include <ovsdb_client_session.h>

Inheritance diagram for OVSDB::OvsdbClientSession:
Collaboration diagram for OVSDB::OvsdbClientSession:

Classes

struct  OvsdbSessionEvent
 

Public Member Functions

 OvsdbClientSession (Agent *agent, OvsPeerManager *manager)
 
virtual ~OvsdbClientSession ()
 
virtual void OnCleanup ()=0
 
virtual void TriggerClose ()=0
 
virtual int keepalive_interval ()=0
 
virtual bool ThrottleInFlightTxnMessages ()
 
virtual const
boost::system::error_code & 
ovsdb_close_reason () const =0
 
virtual ConnectionStateTableconnection_table ()=0
 
virtual KSyncObjectManagerksync_obj_manager ()=0
 
virtual Ip4Address remote_ip () const =0
 
virtual uint16_t remote_port () const =0
 
virtual Ip4Address tsn_ip ()=0
 
virtual std::string status ()=0
 
virtual void SendMsg (u_int8_t *buf, std::size_t len)=0
 
void MessageProcess (const u_int8_t *buf, std::size_t len)
 
void SendJsonRpc (struct jsonrpc_msg *msg)
 
void OnEstablish ()
 
void OnClose ()
 
OvsdbClientIdlclient_idl ()
 
void AddSessionInfo (SandeshOvsdbClientSession &session)
 
virtual bool TestConcurrencyAllow ()
 

Static Protected Attributes

static int ovsdb_io_task_id_ = -1
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (OvsdbClientSession)
 

Private Attributes

OvsdbClientIdlPtr client_idl_
 
Agentagent_
 
OvsPeerManagermanager_
 
struct json_parser * parser_
 
tbb::atomic< bool > idl_inited_
 
std::string connection_time_
 

Friends

class OvsdbClientIdl
 

Detailed Description

Definition at line 23 of file ovsdb_client_session.h.

Constructor & Destructor Documentation

OvsdbClientSession::OvsdbClientSession ( Agent agent,
OvsPeerManager manager 
)

Definition at line 26 of file ovsdb_client_session.cc.

Here is the call graph for this function:

OvsdbClientSession::~OvsdbClientSession ( )
virtual

Definition at line 37 of file ovsdb_client_session.cc.

Member Function Documentation

void OvsdbClientSession::AddSessionInfo ( SandeshOvsdbClientSession &  session)

Definition at line 144 of file ovsdb_client_session.cc.

Here is the call graph for this function:

OvsdbClientIdl * OvsdbClientSession::client_idl ( )

Definition at line 140 of file ovsdb_client_session.cc.

virtual ConnectionStateTable* OVSDB::OvsdbClientSession::connection_table ( )
pure virtual
OVSDB::OvsdbClientSession::DISALLOW_COPY_AND_ASSIGN ( OvsdbClientSession  )
private
virtual int OVSDB::OvsdbClientSession::keepalive_interval ( )
pure virtual
virtual KSyncObjectManager* OVSDB::OvsdbClientSession::ksync_obj_manager ( )
pure virtual
void OvsdbClientSession::MessageProcess ( const u_int8_t *  buf,
std::size_t  len 
)

Definition at line 43 of file ovsdb_client_session.cc.

Here is the call graph for this function:

virtual void OVSDB::OvsdbClientSession::OnCleanup ( )
pure virtual
void OvsdbClientSession::OnClose ( )

Definition at line 127 of file ovsdb_client_session.cc.

Here is the call graph for this function:

void OvsdbClientSession::OnEstablish ( )

Definition at line 119 of file ovsdb_client_session.cc.

Here is the call graph for this function:

virtual const boost::system::error_code& OVSDB::OvsdbClientSession::ovsdb_close_reason ( ) const
pure virtual
virtual Ip4Address OVSDB::OvsdbClientSession::remote_ip ( ) const
pure virtual
virtual uint16_t OVSDB::OvsdbClientSession::remote_port ( ) const
pure virtual
void OvsdbClientSession::SendJsonRpc ( struct jsonrpc_msg *  msg)

Definition at line 109 of file ovsdb_client_session.cc.

Here is the call graph for this function:

virtual void OVSDB::OvsdbClientSession::SendMsg ( u_int8_t *  buf,
std::size_t  len 
)
pure virtual
virtual std::string OVSDB::OvsdbClientSession::status ( )
pure virtual
virtual bool OVSDB::OvsdbClientSession::TestConcurrencyAllow ( )
inlinevirtual

Definition at line 61 of file ovsdb_client_session.h.

virtual bool OVSDB::OvsdbClientSession::ThrottleInFlightTxnMessages ( )
inlinevirtual

Reimplemented in OVSDB::OvsdbClientSslSession.

Definition at line 41 of file ovsdb_client_session.h.

virtual void OVSDB::OvsdbClientSession::TriggerClose ( )
pure virtual
virtual Ip4Address OVSDB::OvsdbClientSession::tsn_ip ( )
pure virtual

Friends And Related Function Documentation

friend class OvsdbClientIdl
friend

Definition at line 68 of file ovsdb_client_session.h.

Member Data Documentation

Agent* OVSDB::OvsdbClientSession::agent_
private

Definition at line 70 of file ovsdb_client_session.h.

OvsdbClientIdlPtr OVSDB::OvsdbClientSession::client_idl_
private

Definition at line 69 of file ovsdb_client_session.h.

std::string OVSDB::OvsdbClientSession::connection_time_
private

Definition at line 74 of file ovsdb_client_session.h.

tbb::atomic<bool> OVSDB::OvsdbClientSession::idl_inited_
private

Definition at line 73 of file ovsdb_client_session.h.

OvsPeerManager* OVSDB::OvsdbClientSession::manager_
private

Definition at line 71 of file ovsdb_client_session.h.

int OvsdbClientSession::ovsdb_io_task_id_ = -1
staticprotected

Definition at line 65 of file ovsdb_client_session.h.

struct json_parser* OVSDB::OvsdbClientSession::parser_
private

Definition at line 72 of file ovsdb_client_session.h.


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