OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sandesh_client_sm.cc File Reference
#include <typeinfo>
#include <boost/bind.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/statechart/custom_reaction.hpp>
#include <boost/statechart/event.hpp>
#include <boost/statechart/simple_state.hpp>
#include <boost/statechart/state.hpp>
#include <boost/statechart/state_machine.hpp>
#include <boost/statechart/transition.hpp>
#include <boost/statechart/in_state_reaction.hpp>
#include <base/logging.h>
#include <base/timer.h>
#include <base/task_annotations.h>
#include <base/connection_info.h>
#include <io/event_manager.h>
#include <sandesh/sandesh_constants.h>
#include <sandesh/sandesh_types.h>
#include <sandesh/sandesh.h>
#include <sandesh/sandesh_uve.h>
#include <sandesh/sandesh_uve_types.h>
#include <sandesh/sandesh_statistics.h>
#include "sandesh_client_sm_priv.h"
Include dependency graph for sandesh_client_sm.cc:

Go to the source code of this file.

Classes

struct  scm::EvStart
 
struct  scm::EvStop
 
struct  scm::EvCollectorUpdate
 
struct  scm::EvIdleHoldTimerExpired
 
struct  scm::EvConnectTimerExpired
 
struct  scm::EvTcpConnected
 
struct  scm::EvTcpConnectFail
 
struct  scm::EvTcpClose
 
struct  scm::EvTcpDeleteSession
 
struct  scm::EvSandeshSend
 
struct  scm::EvSandeshMessageRecv
 
struct  scm::TransitToIdle< Ev >
 
struct  scm::ReleaseSandesh< Ev >
 
struct  scm::DeleteTcpSession< Ev >
 
struct  scm::Idle
 
struct  scm::Disconnect
 
struct  scm::Connect
 
struct  scm::ClientInit
 
struct  scm::Established
 
struct  HasValidate< Ev >
 
struct  HasValidate< Ev >::SFINAE< T, const >
 
struct  ValidateFn< Ev, has_validate >
 
struct  ValidateFn< Ev, true >
 

Namespaces

 scm
 

Macros

#define SM_LOG(_Level, _Msg)
 
#define SESSION_LOG(session)   SANDESH_LOG(DEBUG, ((session) ? (session)->ToString() : "*") << ":" << Name())
 

Variables

static const std::string state_names []
 

Macro Definition Documentation

#define SESSION_LOG (   session)    SANDESH_LOG(DEBUG, ((session) ? (session)->ToString() : "*") << ":" << Name())

Definition at line 59 of file sandesh_client_sm.cc.

#define SM_LOG (   _Level,
  _Msg 
)
Value:
do { \
if (LoggingDisabled()) break; \
log4cplus::Logger _Xlogger = Sandesh::logger(); \
if (_Xlogger.isEnabledFor(log4cplus::_Level##_LOG_LEVEL)) { \
log4cplus::tostringstream _Xbuf; \
_Xbuf << _Msg; \
_Xlogger.forcedLog(log4cplus::_Level##_LOG_LEVEL, \
_Xbuf.str()); \
} \
} while (false)
bool LoggingDisabled()
Definition: logging.cc:24

Definition at line 47 of file sandesh_client_sm.cc.

Variable Documentation

const std::string state_names[]
static
Initial value:
= {
"Idle",
"Disconnect",
"Connect",
"ClientInit",
"Established",
}

Definition at line 780 of file sandesh_client_sm.cc.