OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IFMapXmppChannel Class Reference

#include <ifmap_xmpp.h>

Collaboration diagram for IFMapXmppChannel:

Classes

class  IFMapSender
 

Public Member Functions

 IFMapXmppChannel (XmppChannel *, IFMapServer *, IFMapChannelManager *)
 
virtual ~IFMapXmppChannel ()
 
std::string ToString () const
 
IFMapClientSender ()
 
virtual void ReceiveUpdate (const XmppStanza::XmppMessage *)
 
XmppChannelchannel ()
 
void ClearCounters ()
 
uint64_t msgs_sent () const
 
std::string VrSubscribeGetVrName (const std::string &iqnode, bool *valid_message)
 
std::string VmSubscribeGetVmUuid (const std::string &iqnode, bool *valid_message)
 
bool MustProcessChannelNotReady ()
 
void ProcessVrSubscribe (const std::string &identifier)
 
void EnqueueVrSubscribe (const std::string &identifier)
 
void ProcessVmSubscribe (const std::string &vm_uuid)
 
void ProcessVmUnsubscribe (const std::string &vm_uuid)
 
void EnqueueVmSubUnsub (bool subscribe, const std::string &vm_uuid)
 
bool get_client_added ()
 
const std::string & channel_name ()
 
const std::string & FQName () const
 

Static Public Attributes

static const std::string NoFqnSet = "NoFqnSet"
 

Private Member Functions

void WriteReadyCb (const boost::system::error_code &ec)
 

Private Attributes

xmps::PeerId peer_id_
 
XmppChannelchannel_
 
IFMapServerifmap_server_
 
IFMapChannelManagerifmap_channel_manager_
 
IFMapSenderifmap_client_
 
bool client_added_
 
std::string channel_name_
 

Friends

class XmppIfmapTest
 

Detailed Description

Definition at line 39 of file ifmap_xmpp.h.

Constructor & Destructor Documentation

IFMapXmppChannel::IFMapXmppChannel ( XmppChannel channel,
IFMapServer server,
IFMapChannelManager ifmap_channel_manager 
)

Definition at line 127 of file ifmap_xmpp.cc.

Here is the call graph for this function:

IFMapXmppChannel::~IFMapXmppChannel ( )
virtual

Definition at line 140 of file ifmap_xmpp.cc.

Here is the call graph for this function:

Member Function Documentation

XmppChannel* IFMapXmppChannel::channel ( )
inline

Definition at line 50 of file ifmap_xmpp.h.

const std::string& IFMapXmppChannel::channel_name ( )
inline

Definition at line 67 of file ifmap_xmpp.h.

void IFMapXmppChannel::ClearCounters ( )
void IFMapXmppChannel::EnqueueVmSubUnsub ( bool  subscribe,
const std::string &  vm_uuid 
)

Definition at line 264 of file ifmap_xmpp.cc.

Here is the call graph for this function:

void IFMapXmppChannel::EnqueueVrSubscribe ( const std::string &  identifier)

Definition at line 254 of file ifmap_xmpp.cc.

Here is the call graph for this function:

const std::string & IFMapXmppChannel::FQName ( ) const

Definition at line 184 of file ifmap_xmpp.cc.

Here is the call graph for this function:

bool IFMapXmppChannel::get_client_added ( )
inline

Definition at line 66 of file ifmap_xmpp.h.

uint64_t IFMapXmppChannel::msgs_sent ( ) const

Definition at line 331 of file ifmap_xmpp.cc.

Here is the call graph for this function:

bool IFMapXmppChannel::MustProcessChannelNotReady ( )

Definition at line 180 of file ifmap_xmpp.cc.

void IFMapXmppChannel::ProcessVmSubscribe ( const std::string &  vm_uuid)

Definition at line 208 of file ifmap_xmpp.cc.

Here is the call graph for this function:

void IFMapXmppChannel::ProcessVmUnsubscribe ( const std::string &  vm_uuid)

Definition at line 231 of file ifmap_xmpp.cc.

Here is the call graph for this function:

void IFMapXmppChannel::ProcessVrSubscribe ( const std::string &  identifier)

Definition at line 192 of file ifmap_xmpp.cc.

Here is the call graph for this function:

void IFMapXmppChannel::ReceiveUpdate ( const XmppStanza::XmppMessage msg)
virtual

Definition at line 277 of file ifmap_xmpp.cc.

Here is the call graph for this function:

IFMapClient * IFMapXmppChannel::Sender ( )

Definition at line 327 of file ifmap_xmpp.cc.

std::string IFMapXmppChannel::ToString ( ) const
inline

Definition at line 46 of file ifmap_xmpp.h.

Here is the call graph for this function:

std::string IFMapXmppChannel::VmSubscribeGetVmUuid ( const std::string &  iqnode,
bool *  valid_message 
)

Definition at line 163 of file ifmap_xmpp.cc.

Here is the call graph for this function:

std::string IFMapXmppChannel::VrSubscribeGetVrName ( const std::string &  iqnode,
bool *  valid_message 
)

Definition at line 148 of file ifmap_xmpp.cc.

void IFMapXmppChannel::WriteReadyCb ( const boost::system::error_code &  ec)
private

Definition at line 122 of file ifmap_xmpp.cc.

Here is the call graph for this function:

Friends And Related Function Documentation

friend class XmppIfmapTest
friend

Definition at line 71 of file ifmap_xmpp.h.

Member Data Documentation

XmppChannel* IFMapXmppChannel::channel_
private

Definition at line 75 of file ifmap_xmpp.h.

std::string IFMapXmppChannel::channel_name_
private

Definition at line 80 of file ifmap_xmpp.h.

bool IFMapXmppChannel::client_added_
private

Definition at line 79 of file ifmap_xmpp.h.

IFMapChannelManager* IFMapXmppChannel::ifmap_channel_manager_
private

Definition at line 77 of file ifmap_xmpp.h.

IFMapSender* IFMapXmppChannel::ifmap_client_
private

Definition at line 78 of file ifmap_xmpp.h.

IFMapServer* IFMapXmppChannel::ifmap_server_
private

Definition at line 76 of file ifmap_xmpp.h.

const std::string IFMapXmppChannel::NoFqnSet = "NoFqnSet"
static

Definition at line 41 of file ifmap_xmpp.h.

xmps::PeerId IFMapXmppChannel::peer_id_
private

Definition at line 74 of file ifmap_xmpp.h.


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