#include <sandesh_client_sm_priv.h>
Definition at line 42 of file sandesh_client_sm_priv.h.
◆ SandeshClientSMImpl()
SandeshClientSMImpl::SandeshClientSMImpl |
( |
EventManager * |
evm, |
|
|
Mgr * |
mgr, |
|
|
int |
sm_task_instance, |
|
|
int |
sm_task_id, |
|
|
bool |
periodicuve |
|
) |
| |
◆ ~SandeshClientSMImpl()
SandeshClientSMImpl::~SandeshClientSMImpl |
( |
| ) |
|
|
virtual |
◆ CancelConnectTimer()
void SandeshClientSMImpl::CancelConnectTimer |
( |
| ) |
|
◆ CancelIdleHoldTimer()
void SandeshClientSMImpl::CancelIdleHoldTimer |
( |
| ) |
|
◆ collector_name()
std::string SandeshClientSMImpl::collector_name |
( |
| ) |
|
|
inline |
◆ CollectorChange()
bool SandeshClientSMImpl::CollectorChange |
( |
| ) |
|
◆ CollectorUpdate()
bool SandeshClientSMImpl::CollectorUpdate |
( |
const std::vector< TcpServer::Endpoint > & |
collectors | ) |
|
◆ connect_attempts_clear()
void SandeshClientSMImpl::connect_attempts_clear |
( |
| ) |
|
|
inline |
◆ connect_attempts_inc()
void SandeshClientSMImpl::connect_attempts_inc |
( |
| ) |
|
|
inline |
◆ connects()
int SandeshClientSMImpl::connects |
( |
| ) |
const |
|
inline |
◆ connects_inc()
int SandeshClientSMImpl::connects_inc |
( |
| ) |
|
|
inline |
◆ ConnectTimerExpired()
bool SandeshClientSMImpl::ConnectTimerExpired |
( |
| ) |
|
|
private |
◆ ConnectTimerRunning()
bool SandeshClientSMImpl::ConnectTimerRunning |
( |
| ) |
|
◆ DeleteTcpSession()
template<class Ev >
void SandeshClientSMImpl::DeleteTcpSession |
( |
const Ev & |
event | ) |
|
◆ DequeueEvent()
◆ DISALLOW_COPY_AND_ASSIGN()
◆ EnqueDelSession()
◆ Enqueue()
template<typename Ev >
void SandeshClientSMImpl::Enqueue |
( |
const Ev & |
event | ) |
|
|
private |
◆ FireConnectTimer()
void SandeshClientSMImpl::FireConnectTimer |
( |
| ) |
|
◆ get_state()
State SandeshClientSMImpl::get_state |
( |
| ) |
const |
|
inline |
◆ GetCollector()
◆ GetCollectors()
◆ GetConnectTime()
int SandeshClientSMImpl::GetConnectTime |
( |
| ) |
const |
◆ GetMgr()
Mgr* const SandeshClientSMImpl::GetMgr |
( |
| ) |
|
|
inline |
◆ GetNextCollector()
◆ idle_hold_time()
int SandeshClientSMImpl::idle_hold_time |
( |
| ) |
const |
|
inline |
◆ IdleHoldTimerExpired()
bool SandeshClientSMImpl::IdleHoldTimerExpired |
( |
| ) |
|
|
private |
◆ IdleHoldTimerFired()
void SandeshClientSMImpl::IdleHoldTimerFired |
( |
| ) |
|
◆ IdleHoldTimerRunning()
bool SandeshClientSMImpl::IdleHoldTimerRunning |
( |
| ) |
|
◆ last_event()
const std::string SandeshClientSMImpl::last_event |
( |
| ) |
const |
|
inline |
◆ LastStateName()
const string & SandeshClientSMImpl::LastStateName |
( |
| ) |
const |
◆ OnIdle()
template<class Ev >
void SandeshClientSMImpl::OnIdle |
( |
const Ev & |
event | ) |
|
◆ OnMessage()
bool SandeshClientSMImpl::OnMessage |
( |
SandeshSession * |
session, |
|
|
const std::string & |
msg |
|
) |
| |
◆ OnSessionEvent()
◆ ReleaseSandesh()
template<class Ev >
void SandeshClientSMImpl::ReleaseSandesh |
( |
const Ev & |
event | ) |
|
◆ reset_idle_hold_time()
void SandeshClientSMImpl::reset_idle_hold_time |
( |
| ) |
|
|
inline |
◆ reset_last_info()
void SandeshClientSMImpl::reset_last_info |
( |
| ) |
|
|
inline |
◆ send_session()
bool SandeshClientSMImpl::send_session |
( |
Sandesh * |
snh | ) |
|
|
inline |
◆ SendSandesh()
bool SandeshClientSMImpl::SendSandesh |
( |
Sandesh * |
snh | ) |
|
|
virtual |
◆ SendSandeshUVE()
bool SandeshClientSMImpl::SendSandeshUVE |
( |
Sandesh * |
snh | ) |
|
|
virtual |
◆ SendUVE()
void SandeshClientSMImpl::SendUVE |
( |
| ) |
|
|
inline |
◆ set_collector_name()
void SandeshClientSMImpl::set_collector_name |
( |
const std::string & |
cname | ) |
|
|
inline |
◆ set_idle_hold_time()
void SandeshClientSMImpl::set_idle_hold_time |
( |
int |
idle_hold_time | ) |
|
|
inline |
◆ set_last_event()
void SandeshClientSMImpl::set_last_event |
( |
const std::string & |
event | ) |
|
|
inline |
◆ set_session()
void SandeshClientSMImpl::set_session |
( |
SandeshSession * |
session, |
|
|
bool |
enq = true |
|
) |
| |
|
inline |
◆ set_state()
void SandeshClientSMImpl::set_state |
( |
State |
state | ) |
|
|
inline |
◆ SetAdminState()
void SandeshClientSMImpl::SetAdminState |
( |
bool |
down | ) |
|
|
virtual |
◆ SetCollectors()
void SandeshClientSMImpl::SetCollectors |
( |
const std::vector< TcpServer::Endpoint > & |
collectors | ) |
|
|
virtual |
◆ StartConnectTimer()
void SandeshClientSMImpl::StartConnectTimer |
( |
int |
seconds | ) |
|
◆ StartIdleHoldTimer()
void SandeshClientSMImpl::StartIdleHoldTimer |
( |
| ) |
|
◆ StartStatisticsTimer()
void SandeshClientSMImpl::StartStatisticsTimer |
( |
| ) |
|
|
private |
◆ StateName() [1/2]
const string & SandeshClientSMImpl::StateName |
( |
| ) |
const |
|
virtual |
◆ StateName() [2/2]
◆ StatisticsTimerExpired()
bool SandeshClientSMImpl::StatisticsTimerExpired |
( |
| ) |
|
|
private |
◆ TimerErrorHanlder()
void SandeshClientSMImpl::TimerErrorHanlder |
( |
std::string |
name, |
|
|
std::string |
error |
|
) |
| |
|
private |
◆ unconsumed_event()
void SandeshClientSMImpl::unconsumed_event |
( |
const sc::event_base & |
event | ) |
|
◆ UpdateEventDequeue()
void SandeshClientSMImpl::UpdateEventDequeue |
( |
const sc::event_base & |
event | ) |
|
|
private |
◆ UpdateEventDequeueFail()
void SandeshClientSMImpl::UpdateEventDequeueFail |
( |
const sc::event_base & |
event | ) |
|
|
private |
◆ UpdateEventEnqueue()
void SandeshClientSMImpl::UpdateEventEnqueue |
( |
const sc::event_base & |
event | ) |
|
|
private |
◆ UpdateEventEnqueueFail()
void SandeshClientSMImpl::UpdateEventEnqueueFail |
( |
const sc::event_base & |
event | ) |
|
|
private |
◆ UpdateEventStats()
void SandeshClientSMImpl::UpdateEventStats |
( |
const sc::event_base & |
event, |
|
|
bool |
enqueue, |
|
|
bool |
fail |
|
) |
| |
|
private |
◆ SandeshClientStateMachineTest
friend class SandeshClientStateMachineTest |
|
friend |
◆ active_
◆ attempts_
int SandeshClientSMImpl::attempts_ |
|
private |
◆ coll_name_
std::string SandeshClientSMImpl::coll_name_ |
|
private |
◆ collector_index_
int SandeshClientSMImpl::collector_index_ |
|
private |
◆ collectors_
◆ connect_timer_
Timer* SandeshClientSMImpl::connect_timer_ |
|
private |
◆ connects_
int SandeshClientSMImpl::connects_ |
|
private |
◆ deleted_
bool SandeshClientSMImpl::deleted_ |
|
private |
◆ event_stats_
◆ generator_key_
std::string SandeshClientSMImpl::generator_key_ |
|
private |
◆ idle_hold_time_
int SandeshClientSMImpl::idle_hold_time_ |
|
private |
◆ idle_hold_timer_
Timer* SandeshClientSMImpl::idle_hold_timer_ |
|
private |
◆ in_dequeue_
bool SandeshClientSMImpl::in_dequeue_ |
|
private |
◆ kConnectInterval
const int SandeshClientSMImpl::kConnectInterval = 30 |
|
static |
◆ kIdleHoldTime
const int SandeshClientSMImpl::kIdleHoldTime = 5000 |
|
static |
◆ kStatisticsSendInterval
const int SandeshClientSMImpl::kStatisticsSendInterval = 30000 |
|
staticprivate |
◆ last_event_
std::string SandeshClientSMImpl::last_event_ |
|
private |
◆ last_event_at_
uint64_t SandeshClientSMImpl::last_event_at_ |
|
private |
◆ last_state_
State SandeshClientSMImpl::last_state_ |
|
private |
◆ mutex_
tbb::mutex SandeshClientSMImpl::mutex_ |
|
mutableprivate |
◆ periodicuve_
bool SandeshClientSMImpl::periodicuve_ |
|
private |
◆ state_since_
uint64_t SandeshClientSMImpl::state_since_ |
|
private |
◆ statistics_timer_
Timer* SandeshClientSMImpl::statistics_timer_ |
|
private |
◆ statistics_timer_interval_
int SandeshClientSMImpl::statistics_timer_interval_ |
|
private |
◆ work_queue_
The documentation for this class was generated from the following files: