5 #ifndef __XMPP_IFMAP_INC__
6 #define __XMPP_IFMAP_INC__
8 #include <boost/function.hpp>
9 #include <boost/system/error_code.hpp>
10 #include <tbb/atomic.h>
23 class IFMapXmppChannelMapEntry;
68 const std::string&
FQName()
const;
159 void FillChannelMap(std::vector<IFMapXmppChannelMapEntry> *out_map);
164 typedef std::map<XmppChannel *, IFMapXmppChannel *>
ChannelMap;
193 #endif // __XMPP_IFMAP_INC__
void incr_unknown_subscribe_messages()
tbb::atomic< uint64_t > vmunsub_novmsub_messages
tbb::atomic< uint64_t > unknown_unsubscribe_messages
virtual ~IFMapChannelManager()
IFMapSender * ifmap_client_
std::string ToString() const
void incr_unknown_unsubscribe_messages()
void DeleteIFMapXmppChannel(IFMapXmppChannel *ifmap_chnl)
virtual void ReceiveUpdate(const XmppStanza::XmppMessage *)
tbb::atomic< uint64_t > invalid_channel_not_ready_messages
tbb::atomic< uint64_t > duplicate_vmsub_messages
IFMapServer * ifmap_server_
void incr_vmunsub_novmsub_messages()
IFMapServer * ifmap_server_
tbb::atomic< uint64_t > vmunsub_novrsub_messages
void EnqueueVmSubUnsub(bool subscribe, const std::string &vm_uuid)
uint64_t get_unknown_subscribe_messages()
IFMapXmppChannel(XmppChannel *, IFMapServer *, IFMapChannelManager *)
friend class XmppIfmapTest
void ProcessChannelNotReady(XmppChannel *channel)
uint64_t get_duplicate_vmsub_messages()
void incr_vmsub_novrsub_messages()
IFMapChannelManager * ifmap_channel_manager_
static const std::string NoFqnSet
void incr_invalid_channel_state_messages()
void ProcessVmUnsubscribe(const std::string &vm_uuid)
uint64_t get_vmunsub_novrsub_messages()
const std::string & channel_name()
tbb::atomic< uint64_t > duplicate_vrsub_messages
tbb::atomic< uint64_t > duplicate_channel_ready_messages
void ProcessChannelReady(XmppChannel *channel)
tbb::atomic< uint64_t > invalid_channel_state_messages
void WriteReadyCb(const boost::system::error_code &ec)
void IFMapXmppChannelEventCb(XmppChannel *, xmps::PeerState)
bool ProcessChannelUnregister(ConfigTaskQueueEntry entry)
IFMapXmppChannel * FindChannel(XmppChannel *)
std::map< XmppChannel *, IFMapXmppChannel * > ChannelMap
tbb::atomic< uint64_t > vmsub_novrsub_messages
void FillChannelMap(std::vector< IFMapXmppChannelMapEntry > *out_map)
void EnqueueVrSubscribe(const std::string &identifier)
void incr_duplicate_vmsub_messages()
uint64_t get_duplicate_channel_ready_messages()
tbb::atomic< uint64_t > invalid_vm_subscribe_messages
uint64_t get_unknown_unsubscribe_messages()
bool MustProcessChannelNotReady()
uint64_t get_invalid_channel_state_messages()
virtual const std::string & ToString() const =0
uint64_t get_vmsub_novrsub_messages()
XmppServer * xmpp_server_
uint64_t get_invalid_vm_subscribe_messages()
uint64_t get_duplicate_vrsub_messages()
virtual ~IFMapXmppChannel()
void ProcessVmSubscribe(const std::string &vm_uuid)
void EnqueueChannelEvent(XCEvent event, XmppChannel *channel)
tbb::atomic< uint64_t > unknown_subscribe_messages
void incr_invalid_channel_not_ready_messages()
std::string VrSubscribeGetVrName(const std::string &iqnode, bool *valid_message)
IFMapChannelManager(XmppServer *, IFMapServer *)
uint64_t get_invalid_channel_not_ready_messages()
void incr_duplicate_vrsub_messages()
void incr_invalid_vm_subscribe_messages()
friend class XmppIfmapTest
tbb::mutex channel_map_mutex_
virtual IFMapXmppChannel * CreateIFMapXmppChannel(XmppChannel *)
const std::string & FQName() const
void EnqueueChannelUnregister(XmppChannel *channel)
void ProcessVrSubscribe(const std::string &identifier)
uint64_t msgs_sent() const
std::string VmSubscribeGetVmUuid(const std::string &iqnode, bool *valid_message)
void incr_vmunsub_novrsub_messages()
uint64_t get_vmunsub_novmsub_messages()
friend class IFMapChannelManagerTest
WorkQueue< ConfigTaskQueueEntry > config_task_work_queue_
std::string channel_name_
void incr_duplicate_channel_ready_messages()