OpenSDN source code
|
#include <sandesh_client_sm.h>
Classes | |
class | Mgr |
Public Types | |
enum | State { IDLE = 0, DISCONNECT = 1, CONNECT = 2, CLIENT_INIT = 3, ESTABLISHED = 4 } |
Public Member Functions | |
State | state () const |
virtual const std::string & | StateName () const =0 |
SandeshSession * | session () |
TcpServer::Endpoint | server () |
virtual void | SetAdminState (bool down)=0 |
virtual void | SetCollectors (const std::vector< TcpServer::Endpoint > &collectors)=0 |
virtual bool | SendSandeshUVE (Sandesh *snh)=0 |
virtual bool | SendSandesh (Sandesh *snh)=0 |
virtual | ~SandeshClientSM () |
Static Public Member Functions | |
static SandeshClientSM * | CreateClientSM (EventManager *evm, Mgr *mgr, int sm_task_instance, int sm_task_id, bool periodicuve) |
Static Public Attributes | |
static const int | kTickInterval = 30000 |
Protected Member Functions | |
SandeshClientSM (Mgr *mgr) | |
virtual void | EnqueDelSession (SandeshSession *session)=0 |
void | set_session (SandeshSession *session, bool enq) |
bool | send_session (Sandesh *snh) |
void | set_server (TcpServer::Endpoint e) |
Protected Attributes | |
Mgr *const | mgr_ |
tbb::atomic< State > | state_ |
Private Attributes | |
tbb::mutex | mtex_ |
tbb::atomic< SandeshSession * > | session_ |
TcpServer::Endpoint | server_ |
Friends | |
class | SandeshClientStateMachineTest |
Definition at line 33 of file sandesh_client_sm.h.
Enumerator | |
---|---|
IDLE | |
DISCONNECT | |
CONNECT | |
CLIENT_INIT | |
ESTABLISHED |
Definition at line 56 of file sandesh_client_sm.h.
|
inlinevirtual |
Definition at line 87 of file sandesh_client_sm.h.
|
inlineprotected |
Definition at line 90 of file sandesh_client_sm.h.
|
static |
Definition at line 1059 of file sandesh_client_sm.cc.
|
protectedpure virtual |
Implemented in SandeshClientSMImpl.
|
inlineprotected |
|
pure virtual |
Implemented in SandeshClientSMImpl.
|
pure virtual |
Implemented in SandeshClientSMImpl.
|
inline |
Definition at line 71 of file sandesh_client_sm.h.
|
inline |
Definition at line 68 of file sandesh_client_sm.h.
|
inlineprotected |
Definition at line 109 of file sandesh_client_sm.h.
|
inlineprotected |
|
pure virtual |
Implemented in SandeshClientSMImpl.
|
pure virtual |
Implemented in SandeshClientSMImpl.
|
inline |
Definition at line 66 of file sandesh_client_sm.h.
|
pure virtual |
Implemented in SandeshClientSMImpl.
|
friend |
Definition at line 121 of file sandesh_client_sm.h.
|
static |
Definition at line 63 of file sandesh_client_sm.h.
|
protected |
Definition at line 113 of file sandesh_client_sm.h.
|
private |
Definition at line 117 of file sandesh_client_sm.h.
|
private |
Definition at line 119 of file sandesh_client_sm.h.
|
private |
Definition at line 118 of file sandesh_client_sm.h.
|
protected |
Definition at line 114 of file sandesh_client_sm.h.