#include <sandesh_state_machine.h>
Definition at line 57 of file sandesh_state_machine.h.
◆ EventQueue
◆ SandeshStateMachine()
| SandeshStateMachine::SandeshStateMachine |
( |
const char * |
prefix, |
|
|
SandeshConnection * |
connection |
|
) |
| |
◆ ~SandeshStateMachine()
| SandeshStateMachine::~SandeshStateMachine |
( |
| ) |
|
◆ CancelIdleHoldTimer()
| void SandeshStateMachine::CancelIdleHoldTimer |
( |
| ) |
|
◆ clear_session()
| void SandeshStateMachine::clear_session |
( |
| ) |
|
◆ connection()
◆ DeleteSession()
◆ DeleteTcpSession()
template<class Ev >
| void SandeshStateMachine::DeleteTcpSession |
( |
const Ev & |
event | ) |
|
◆ DequeueEvent()
◆ DISALLOW_COPY_AND_ASSIGN()
◆ Enqueue()
template<typename Ev >
| void SandeshStateMachine::Enqueue |
( |
const Ev & |
event | ) |
|
|
private |
◆ generator_key()
| const std::string& SandeshStateMachine::generator_key |
( |
| ) |
const |
|
inline |
◆ get_resource()
| bool SandeshStateMachine::get_resource |
( |
| ) |
const |
|
inline |
◆ get_state()
◆ GetBasicMessageStatistics()
| void SandeshStateMachine::GetBasicMessageStatistics |
( |
SandeshGeneratorBasicStats * |
basic_msg_stats | ) |
|
|
private |
◆ GetBasicStatistics()
| bool SandeshStateMachine::GetBasicStatistics |
( |
SandeshStateMachineStats * |
sm_stats, |
|
|
SandeshGeneratorBasicStats * |
basic_msg_stats |
|
) |
| |
◆ GetDetailMessageStatistics()
| void SandeshStateMachine::GetDetailMessageStatistics |
( |
SandeshGeneratorStats * |
detail_msg_stats | ) |
|
|
private |
◆ GetDetailStatistics()
| bool SandeshStateMachine::GetDetailStatistics |
( |
SandeshStateMachineStats * |
sm_stats, |
|
|
SandeshGeneratorStats * |
detail_msg_stats |
|
) |
| |
◆ GetEventStatistics()
| void SandeshStateMachine::GetEventStatistics |
( |
SandeshStateMachineStats * |
sm_stats | ) |
|
|
private |
◆ GetMaxQueueCount()
| size_t SandeshStateMachine::GetMaxQueueCount |
( |
| ) |
const |
|
inline |
◆ GetMessageDropLevel()
| bool SandeshStateMachine::GetMessageDropLevel |
( |
std::string & |
drop_level | ) |
const |
◆ GetQueueCount()
| bool SandeshStateMachine::GetQueueCount |
( |
uint64_t & |
queue_count | ) |
const |
◆ GetStatistics() [1/2]
| bool SandeshStateMachine::GetStatistics |
( |
SandeshStateMachineStats & |
sm_stats, |
|
|
SandeshGeneratorBasicStats & |
basic_msg_stats |
|
) |
| |
◆ GetStatistics() [2/2]
| bool SandeshStateMachine::GetStatistics |
( |
SandeshStateMachineStats & |
sm_stats, |
|
|
SandeshGeneratorStats & |
detail_msg_stats |
|
) |
| |
◆ idle_hold_time()
| int SandeshStateMachine::idle_hold_time |
( |
| ) |
const |
|
inline |
◆ IdleHoldTimerExpired()
| bool SandeshStateMachine::IdleHoldTimerExpired |
( |
| ) |
|
|
private |
◆ IdleHoldTimerFired()
| void SandeshStateMachine::IdleHoldTimerFired |
( |
| ) |
|
◆ IdleHoldTimerRunning()
| bool SandeshStateMachine::IdleHoldTimerRunning |
( |
| ) |
|
◆ Initialize()
| void SandeshStateMachine::Initialize |
( |
| ) |
|
◆ IsValid()
| bool SandeshStateMachine::IsValid |
( |
| ) |
const |
|
private |
◆ last_event()
| const std::string SandeshStateMachine::last_event |
( |
| ) |
const |
|
inline |
◆ LastStateName()
| const string & SandeshStateMachine::LastStateName |
( |
| ) |
const |
◆ LogEvent()
| bool SandeshStateMachine::LogEvent |
( |
const sc::event_base * |
event | ) |
|
|
private |
◆ OnIdle()
template<class Ev >
| void SandeshStateMachine::OnIdle |
( |
const Ev & |
event | ) |
|
◆ OnSandeshMessage()
| bool SandeshStateMachine::OnSandeshMessage |
( |
SandeshSession * |
session, |
|
|
const std::string & |
msg |
|
) |
| |
◆ OnSessionEvent()
◆ PassiveOpen()
◆ prefix()
| const char* SandeshStateMachine::prefix |
( |
| ) |
|
|
inline |
◆ ProcessMessage()
template<class Ev >
| void SandeshStateMachine::ProcessMessage |
( |
const Ev & |
event | ) |
|
◆ ReleaseSandesh()
template<class Ev >
| void SandeshStateMachine::ReleaseSandesh |
( |
const Ev & |
event | ) |
|
◆ reset_idle_hold_time()
| void SandeshStateMachine::reset_idle_hold_time |
( |
| ) |
|
|
inline |
◆ reset_last_info()
| void SandeshStateMachine::reset_last_info |
( |
| ) |
|
|
inline |
◆ ResetQueueWaterMarkInfo()
| void SandeshStateMachine::ResetQueueWaterMarkInfo |
( |
| ) |
|
◆ ResourceUpdate()
| void SandeshStateMachine::ResourceUpdate |
( |
bool |
rsc | ) |
|
◆ SandeshUVESend()
| void SandeshStateMachine::SandeshUVESend |
( |
SandeshUVE * |
usnh | ) |
|
◆ session()
◆ set_idle_hold_time()
| void SandeshStateMachine::set_idle_hold_time |
( |
int |
idle_hold_time | ) |
|
|
inline |
◆ set_last_event()
| void SandeshStateMachine::set_last_event |
( |
const std::string & |
event | ) |
|
|
inline |
◆ set_resource()
| void SandeshStateMachine::set_resource |
( |
bool |
r | ) |
|
|
inline |
◆ set_session()
◆ set_state()
◆ SetAdminState()
| void SandeshStateMachine::SetAdminState |
( |
bool |
down | ) |
|
◆ SetDeferDequeue()
| void SandeshStateMachine::SetDeferDequeue |
( |
bool |
defer | ) |
|
◆ SetDeferSessionReader()
| void SandeshStateMachine::SetDeferSessionReader |
( |
bool |
defer_reader | ) |
|
|
private |
◆ SetGeneratorKey()
| void SandeshStateMachine::SetGeneratorKey |
( |
const std::string & |
generator | ) |
|
|
inline |
◆ SetQueueWaterMarkInfo()
◆ SetSandeshMessageDropLevel()
| void SandeshStateMachine::SetSandeshMessageDropLevel |
( |
size_t |
queue_count, |
|
|
SandeshLevel::type |
level, |
|
|
boost::function< void(void)> |
cb |
|
) |
| |
|
private |
◆ Shutdown()
| void SandeshStateMachine::Shutdown |
( |
void |
| ) |
|
◆ StartIdleHoldTimer()
| void SandeshStateMachine::StartIdleHoldTimer |
( |
| ) |
|
◆ StateName()
| const string & SandeshStateMachine::StateName |
( |
| ) |
const |
◆ TimerErrorHandler()
| void SandeshStateMachine::TimerErrorHandler |
( |
std::string |
name, |
|
|
std::string |
error |
|
) |
| |
|
private |
◆ unconsumed_event()
| void SandeshStateMachine::unconsumed_event |
( |
const sc::event_base & |
event | ) |
|
◆ UpdateEventDequeue()
| void SandeshStateMachine::UpdateEventDequeue |
( |
const sc::event_base & |
event | ) |
|
|
private |
◆ UpdateEventDequeueFail()
| void SandeshStateMachine::UpdateEventDequeueFail |
( |
const sc::event_base & |
event | ) |
|
|
private |
◆ UpdateEventEnqueue()
| void SandeshStateMachine::UpdateEventEnqueue |
( |
const sc::event_base & |
event | ) |
|
|
private |
◆ UpdateEventEnqueueFail()
| void SandeshStateMachine::UpdateEventEnqueueFail |
( |
const sc::event_base & |
event | ) |
|
|
private |
◆ UpdateEventStats()
| void SandeshStateMachine::UpdateEventStats |
( |
const sc::event_base & |
event, |
|
|
bool |
enqueue, |
|
|
bool |
fail |
|
) |
| |
|
private |
◆ UpdateRxMsgFailStats()
| void SandeshStateMachine::UpdateRxMsgFailStats |
( |
const std::string & |
msg_name, |
|
|
size_t |
msg_size, |
|
|
SandeshRxDropReason::type |
dreason |
|
) |
| |
|
private |
◆ UpdateRxMsgStats()
| void SandeshStateMachine::UpdateRxMsgStats |
( |
const std::string & |
msg_name, |
|
|
size_t |
msg_size |
|
) |
| |
|
private |
◆ GetEvSandeshMessageRecvSize
◆ SandeshClientStateMachineTest
| friend class SandeshClientStateMachineTest |
|
friend |
◆ SandeshServerStateMachineTest
| friend class SandeshServerStateMachineTest |
|
friend |
◆ WorkQueue< EventContainer >
◆ builder_
◆ connection_
◆ deleted_
| bool SandeshStateMachine::deleted_ |
|
private |
◆ event_stats_
◆ generator_key_
| std::string SandeshStateMachine::generator_key_ |
|
private |
◆ idle_hold_time_
| int SandeshStateMachine::idle_hold_time_ |
|
private |
◆ idle_hold_timer_
| Timer* SandeshStateMachine::idle_hold_timer_ |
|
private |
◆ kIdleHoldTime
| const int SandeshStateMachine::kIdleHoldTime = 5000 |
|
static |
◆ kQueueSize
| const int SandeshStateMachine::kQueueSize = 200 * 1024 * 1024 |
|
static |
◆ last_event_
| std::string SandeshStateMachine::last_event_ |
|
private |
◆ last_event_at_
| uint64_t SandeshStateMachine::last_event_at_ |
|
private |
◆ last_state_
◆ message_drop_level_
◆ message_stats_
◆ prefix_
| const char* SandeshStateMachine::prefix_ |
|
private |
◆ resource_
| bool SandeshStateMachine::resource_ |
|
private |
◆ session_
◆ smutex_
| tbb::mutex SandeshStateMachine::smutex_ |
|
mutableprivate |
◆ state_
◆ state_since_
| uint64_t SandeshStateMachine::state_since_ |
|
private |
◆ work_queue_
The documentation for this class was generated from the following files: