OpenSDN source code
|
#include <ifmap_uuid_mapper.h>
Public Types | |
typedef std::map< std::string, std::string > | PendingVmRegMap |
typedef std::map< IFMapNode *, std::string > | NodeUuidMap |
Public Member Functions | |
IFMapVmUuidMapper (DB *db, IFMapServer *server) | |
~IFMapVmUuidMapper () | |
void | Initialize () |
void | Shutdown () |
IFMapUuidMapper::Sz_t | UuidMapperCount () |
DBTable::ListenerId | vm_listener_id () |
DB * | db () |
IFMapServer * | server () |
bool | is_registered () |
void | VmNodeProcess (DBTablePartBase *partition, DBEntryBase *entry) |
IFMapNode * | GetVmNodeByUuid (const std::string &vm_uuid) |
bool | VmNodeExists (const std::string &vm_uuid) |
void | PrintAllUuidMapperEntries () |
void | ProcessVmRegAsPending (std::string vm_uuid, std::string vr_name, bool subscribe) |
bool | PendingVmRegExists (const std::string &vm_uuid, std::string *vr_name) |
PendingVmRegMap::size_type | PendingVmRegCount () |
void | CleanupPendingVmRegEntry (const std::string &vm_uuid) |
void | PrintAllPendingVmRegEntries () |
bool | NodeToUuid (IFMapNode *vm_node, std::string *vm_uuid) |
bool | NodeProcessed (IFMapNode *node) |
NodeUuidMap::size_type | NodeUuidMapCount () |
void | PrintAllNodeUuidMappedEntries () |
Private Member Functions | |
bool | IsFeasible (IFMapNode *node) |
Private Attributes | |
DB * | db_ |
IFMapServer * | ifmap_server_ |
IFMapServerTable * | vm_table_ |
DBTable::ListenerId | vm_lid_ |
bool | registered |
IFMapUuidMapper | uuid_mapper_ |
NodeUuidMap | node_uuid_map_ |
PendingVmRegMap | pending_vmreg_map_ |
Friends | |
class | IFMapVmUuidMapperTest |
class | ShowIFMapPendingVmReg |
class | ShowIFMapNodeToUuidMapping |
class | ShowIFMapUuidToNodeMapping |
Definition at line 45 of file ifmap_uuid_mapper.h.
typedef std::map<IFMapNode *, std::string> IFMapVmUuidMapper::NodeUuidMap |
Definition at line 54 of file ifmap_uuid_mapper.h.
typedef std::map<std::string, std::string> IFMapVmUuidMapper::PendingVmRegMap |
Definition at line 49 of file ifmap_uuid_mapper.h.
|
explicit |
Definition at line 74 of file ifmap_uuid_mapper.cc.
IFMapVmUuidMapper::~IFMapVmUuidMapper | ( | ) |
|
inline |
Definition at line 81 of file ifmap_uuid_mapper.h.
|
inline |
Definition at line 66 of file ifmap_uuid_mapper.h.
IFMapNode * IFMapVmUuidMapper::GetVmNodeByUuid | ( | const std::string & | vm_uuid | ) |
void IFMapVmUuidMapper::Initialize | ( | ) |
|
inline |
Definition at line 68 of file ifmap_uuid_mapper.h.
|
private |
bool IFMapVmUuidMapper::NodeProcessed | ( | IFMapNode * | node | ) |
Definition at line 203 of file ifmap_uuid_mapper.cc.
bool IFMapVmUuidMapper::NodeToUuid | ( | IFMapNode * | vm_node, |
std::string * | vm_uuid | ||
) |
Definition at line 194 of file ifmap_uuid_mapper.cc.
|
inline |
Definition at line 88 of file ifmap_uuid_mapper.h.
|
inline |
Definition at line 78 of file ifmap_uuid_mapper.h.
bool IFMapVmUuidMapper::PendingVmRegExists | ( | const std::string & | vm_uuid, |
std::string * | vr_name | ||
) |
Definition at line 169 of file ifmap_uuid_mapper.cc.
void IFMapVmUuidMapper::PrintAllNodeUuidMappedEntries | ( | ) |
void IFMapVmUuidMapper::PrintAllPendingVmRegEntries | ( | ) |
Definition at line 179 of file ifmap_uuid_mapper.cc.
void IFMapVmUuidMapper::PrintAllUuidMapperEntries | ( | ) |
void IFMapVmUuidMapper::ProcessVmRegAsPending | ( | std::string | vm_uuid, |
std::string | vr_name, | ||
bool | subscribe | ||
) |
Definition at line 160 of file ifmap_uuid_mapper.cc.
|
inline |
Definition at line 67 of file ifmap_uuid_mapper.h.
void IFMapVmUuidMapper::Shutdown | ( | ) |
|
inline |
|
inline |
Definition at line 65 of file ifmap_uuid_mapper.h.
bool IFMapVmUuidMapper::VmNodeExists | ( | const std::string & | vm_uuid | ) |
void IFMapVmUuidMapper::VmNodeProcess | ( | DBTablePartBase * | partition, |
DBEntryBase * | entry | ||
) |
|
friend |
Definition at line 94 of file ifmap_uuid_mapper.h.
|
friend |
Definition at line 96 of file ifmap_uuid_mapper.h.
|
friend |
Definition at line 95 of file ifmap_uuid_mapper.h.
|
friend |
Definition at line 97 of file ifmap_uuid_mapper.h.
|
private |
Definition at line 99 of file ifmap_uuid_mapper.h.
|
private |
Definition at line 100 of file ifmap_uuid_mapper.h.
|
private |
Definition at line 106 of file ifmap_uuid_mapper.h.
|
private |
Definition at line 107 of file ifmap_uuid_mapper.h.
|
private |
Definition at line 103 of file ifmap_uuid_mapper.h.
|
private |
Definition at line 105 of file ifmap_uuid_mapper.h.
|
private |
Definition at line 102 of file ifmap_uuid_mapper.h.
|
private |
Definition at line 101 of file ifmap_uuid_mapper.h.