OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IFMapXmppChannel::IFMapSender Class Reference
Inheritance diagram for IFMapXmppChannel::IFMapSender:
Collaboration diagram for IFMapXmppChannel::IFMapSender:

Public Member Functions

 IFMapSender (IFMapXmppChannel *parent)
 
virtual bool SendUpdate (const std::string &msg)
 
virtual std::string ToString () const
 
virtual const std::string & identifier () const
 
const std::string & hostname () const
 
IFMapXmppChannelparent ()
 
void SetIdentifier (const std::string &identifier)
 
- Public Member Functions inherited from IFMapClient
 IFMapClient ()
 
virtual ~IFMapClient ()
 
virtual const std::string & name () const
 
virtual void SetName (const std::string &name)
 
int index () const
 
uint64_t msgs_sent () const
 
uint64_t msgs_blocked () const
 
uint64_t bytes_sent () const
 
uint64_t update_nodes_sent () const
 
uint64_t delete_nodes_sent () const
 
uint64_t update_links_sent () const
 
uint64_t delete_links_sent () const
 
bool send_is_blocked () const
 
uint64_t created_at () const
 
void incr_msgs_sent ()
 
void incr_msgs_blocked ()
 
void incr_bytes_sent (uint64_t bytes)
 
void incr_update_nodes_sent ()
 
void incr_delete_nodes_sent ()
 
void incr_update_links_sent ()
 
void incr_delete_links_sent ()
 
void set_send_is_blocked (bool is_blocked)
 
void Initialize (IFMapExporter *exporter, int index)
 
void OnRegister (const std::string &vnet)
 
void OnUnregister (const std::string &vnet)
 
void AddVm (const std::string &vm_uuid)
 
void DeleteVm (const std::string &vm_uuid)
 
bool HasAddedVm (const std::string &vm_uuid)
 
bool HasVms ()
 
size_t VmCount ()
 
std::vector< std::string > vm_list () const
 

Private Attributes

IFMapXmppChannelparent_
 
std::string hostname_
 
std::string identifier_
 

Additional Inherited Members

- Public Types inherited from IFMapClient
typedef std::map< std::string,
std::string > 
VmMap
 
- Static Public Attributes inherited from IFMapClient
static const int kIndexInvalid = -1
 

Detailed Description

Definition at line 81 of file ifmap_xmpp.cc.

Constructor & Destructor Documentation

IFMapXmppChannel::IFMapSender::IFMapSender ( IFMapXmppChannel parent)

Definition at line 102 of file ifmap_xmpp.cc.

Member Function Documentation

const std::string& IFMapXmppChannel::IFMapSender::hostname ( ) const
inline

Definition at line 89 of file ifmap_xmpp.cc.

virtual const std::string& IFMapXmppChannel::IFMapSender::identifier ( ) const
inlinevirtual

Implements IFMapClient.

Definition at line 88 of file ifmap_xmpp.cc.

IFMapXmppChannel* IFMapXmppChannel::IFMapSender::parent ( )
inline

Definition at line 90 of file ifmap_xmpp.cc.

bool IFMapXmppChannel::IFMapSender::SendUpdate ( const std::string &  msg)
virtual

Implements IFMapClient.

Definition at line 106 of file ifmap_xmpp.cc.

Here is the call graph for this function:

void IFMapXmppChannel::IFMapSender::SetIdentifier ( const std::string &  identifier)
inline

Definition at line 92 of file ifmap_xmpp.cc.

Here is the call graph for this function:

virtual std::string IFMapXmppChannel::IFMapSender::ToString ( ) const
inlinevirtual

Definition at line 87 of file ifmap_xmpp.cc.

Member Data Documentation

std::string IFMapXmppChannel::IFMapSender::hostname_
private

Definition at line 98 of file ifmap_xmpp.cc.

std::string IFMapXmppChannel::IFMapSender::identifier_
private

Definition at line 99 of file ifmap_xmpp.cc.

IFMapXmppChannel* IFMapXmppChannel::IFMapSender::parent_
private

Definition at line 97 of file ifmap_xmpp.cc.


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