5 #ifndef __IFMAP_UUID_MAPPER_H__
6 #define __IFMAP_UUID_MAPPER_H__
8 #include <boost/bind.hpp>
9 #include <boost/uuid/uuid.hpp>
10 #include <boost/uuid/uuid_io.hpp>
27 typedef UuidNodeMap::size_type
Sz_t;
29 std::string
Add(uint64_t ms_long, uint64_t ls_long,
IFMapNode *node);
30 void Delete(
const std::string &uuid_str);
32 bool Exists(
const std::string &uuid_str);
void ProcessVmRegAsPending(std::string vm_uuid, std::string vr_name, bool subscribe)
DBTable::ListenerId vm_listener_id()
UuidNodeMap::size_type Sz_t
UuidNodeMap uuid_node_map_
std::map< std::string, IFMapNode * > UuidNodeMap
NodeUuidMap::size_type NodeUuidMapCount()
std::string UuidToString(const boost::uuids::uuid &id)
NodeUuidMap node_uuid_map_
DBTable::ListenerId vm_lid_
IFMapNode * GetVmNodeByUuid(const std::string &vm_uuid)
bool VmNodeExists(const std::string &vm_uuid)
IFMapVmUuidMapper(DB *db, IFMapServer *server)
PendingVmRegMap::size_type PendingVmRegCount()
void PrintAllNodeUuidMappedEntries()
void SetUuid(uint64_t ms_long, uint64_t ls_long, boost::uuids::uuid &uu_id)
IFMapUuidMapper::Sz_t UuidMapperCount()
bool PendingVmRegExists(const std::string &vm_uuid, std::string *vr_name)
bool NodeToUuid(IFMapNode *vm_node, std::string *vm_uuid)
PendingVmRegMap pending_vmreg_map_
void PrintAllUuidMapperEntries()
friend class IFMapVmUuidMapperTest
bool IsFeasible(IFMapNode *node)
void CleanupPendingVmRegEntry(const std::string &vm_uuid)
IFMapServerTable * vm_table_
std::string Add(uint64_t ms_long, uint64_t ls_long, IFMapNode *node)
bool NodeProcessed(IFMapNode *node)
bool Exists(const std::string &uuid_str)
void PrintAllPendingVmRegEntries()
IFMapNode * Find(const std::string &uuid_str)
void VmNodeProcess(DBTablePartBase *partition, DBEntryBase *entry)
IFMapUuidMapper uuid_mapper_
std::map< IFMapNode *, std::string > NodeUuidMap
std::map< std::string, std::string > PendingVmRegMap
IFMapServer * ifmap_server_
void PrintAllMappedEntries()
void Delete(const std::string &uuid_str)