OpenSDN source code
IFMapVmUuidMapper Class Reference

#include <ifmap_uuid_mapper.h>

Collaboration diagram for IFMapVmUuidMapper:

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 ()
 
DBdb ()
 
IFMapServerserver ()
 
bool is_registered ()
 
void VmNodeProcess (DBTablePartBase *partition, DBEntryBase *entry)
 
IFMapNodeGetVmNodeByUuid (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

DBdb_
 
IFMapServerifmap_server_
 
IFMapServerTablevm_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
 

Detailed Description

Definition at line 45 of file ifmap_uuid_mapper.h.

Member Typedef Documentation

◆ NodeUuidMap

typedef std::map<IFMapNode *, std::string> IFMapVmUuidMapper::NodeUuidMap

Definition at line 54 of file ifmap_uuid_mapper.h.

◆ PendingVmRegMap

typedef std::map<std::string, std::string> IFMapVmUuidMapper::PendingVmRegMap

Definition at line 49 of file ifmap_uuid_mapper.h.

Constructor & Destructor Documentation

◆ IFMapVmUuidMapper()

IFMapVmUuidMapper::IFMapVmUuidMapper ( DB db,
IFMapServer server 
)
explicit

Definition at line 74 of file ifmap_uuid_mapper.cc.

◆ ~IFMapVmUuidMapper()

IFMapVmUuidMapper::~IFMapVmUuidMapper ( )

Definition at line 78 of file ifmap_uuid_mapper.cc.

Here is the call graph for this function:

Member Function Documentation

◆ CleanupPendingVmRegEntry()

void IFMapVmUuidMapper::CleanupPendingVmRegEntry ( const std::string &  vm_uuid)
inline

Definition at line 81 of file ifmap_uuid_mapper.h.

◆ db()

DB* IFMapVmUuidMapper::db ( )
inline

Definition at line 66 of file ifmap_uuid_mapper.h.

◆ GetVmNodeByUuid()

IFMapNode * IFMapVmUuidMapper::GetVmNodeByUuid ( const std::string &  vm_uuid)

Definition at line 148 of file ifmap_uuid_mapper.cc.

Here is the call graph for this function:

◆ Initialize()

void IFMapVmUuidMapper::Initialize ( )

Definition at line 82 of file ifmap_uuid_mapper.cc.

Here is the call graph for this function:

◆ is_registered()

bool IFMapVmUuidMapper::is_registered ( )
inline

Definition at line 68 of file ifmap_uuid_mapper.h.

◆ IsFeasible()

bool IFMapVmUuidMapper::IsFeasible ( IFMapNode node)
private

Definition at line 187 of file ifmap_uuid_mapper.cc.

Here is the call graph for this function:

◆ NodeProcessed()

bool IFMapVmUuidMapper::NodeProcessed ( IFMapNode node)

Definition at line 203 of file ifmap_uuid_mapper.cc.

◆ NodeToUuid()

bool IFMapVmUuidMapper::NodeToUuid ( IFMapNode vm_node,
std::string *  vm_uuid 
)

Definition at line 194 of file ifmap_uuid_mapper.cc.

◆ NodeUuidMapCount()

NodeUuidMap::size_type IFMapVmUuidMapper::NodeUuidMapCount ( )
inline

Definition at line 88 of file ifmap_uuid_mapper.h.

◆ PendingVmRegCount()

PendingVmRegMap::size_type IFMapVmUuidMapper::PendingVmRegCount ( )
inline

Definition at line 78 of file ifmap_uuid_mapper.h.

◆ PendingVmRegExists()

bool IFMapVmUuidMapper::PendingVmRegExists ( const std::string &  vm_uuid,
std::string *  vr_name 
)

Definition at line 169 of file ifmap_uuid_mapper.cc.

◆ PrintAllNodeUuidMappedEntries()

void IFMapVmUuidMapper::PrintAllNodeUuidMappedEntries ( )

Definition at line 211 of file ifmap_uuid_mapper.cc.

Here is the call graph for this function:

◆ PrintAllPendingVmRegEntries()

void IFMapVmUuidMapper::PrintAllPendingVmRegEntries ( )

Definition at line 179 of file ifmap_uuid_mapper.cc.

◆ PrintAllUuidMapperEntries()

void IFMapVmUuidMapper::PrintAllUuidMapperEntries ( )

Definition at line 156 of file ifmap_uuid_mapper.cc.

Here is the call graph for this function:

◆ ProcessVmRegAsPending()

void IFMapVmUuidMapper::ProcessVmRegAsPending ( std::string  vm_uuid,
std::string  vr_name,
bool  subscribe 
)

Definition at line 160 of file ifmap_uuid_mapper.cc.

◆ server()

IFMapServer* IFMapVmUuidMapper::server ( )
inline

Definition at line 67 of file ifmap_uuid_mapper.h.

◆ Shutdown()

void IFMapVmUuidMapper::Shutdown ( )

Definition at line 91 of file ifmap_uuid_mapper.cc.

Here is the call graph for this function:

◆ UuidMapperCount()

IFMapUuidMapper::Sz_t IFMapVmUuidMapper::UuidMapperCount ( )
inline

Definition at line 61 of file ifmap_uuid_mapper.h.

Here is the call graph for this function:

◆ vm_listener_id()

DBTable::ListenerId IFMapVmUuidMapper::vm_listener_id ( )
inline

Definition at line 65 of file ifmap_uuid_mapper.h.

◆ VmNodeExists()

bool IFMapVmUuidMapper::VmNodeExists ( const std::string &  vm_uuid)

Definition at line 152 of file ifmap_uuid_mapper.cc.

Here is the call graph for this function:

◆ VmNodeProcess()

void IFMapVmUuidMapper::VmNodeProcess ( DBTablePartBase partition,
DBEntryBase entry 
)

Definition at line 98 of file ifmap_uuid_mapper.cc.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ IFMapVmUuidMapperTest

friend class IFMapVmUuidMapperTest
friend

Definition at line 94 of file ifmap_uuid_mapper.h.

◆ ShowIFMapNodeToUuidMapping

friend class ShowIFMapNodeToUuidMapping
friend

Definition at line 96 of file ifmap_uuid_mapper.h.

◆ ShowIFMapPendingVmReg

friend class ShowIFMapPendingVmReg
friend

Definition at line 95 of file ifmap_uuid_mapper.h.

◆ ShowIFMapUuidToNodeMapping

friend class ShowIFMapUuidToNodeMapping
friend

Definition at line 97 of file ifmap_uuid_mapper.h.

Member Data Documentation

◆ db_

DB* IFMapVmUuidMapper::db_
private

Definition at line 99 of file ifmap_uuid_mapper.h.

◆ ifmap_server_

IFMapServer* IFMapVmUuidMapper::ifmap_server_
private

Definition at line 100 of file ifmap_uuid_mapper.h.

◆ node_uuid_map_

NodeUuidMap IFMapVmUuidMapper::node_uuid_map_
private

Definition at line 106 of file ifmap_uuid_mapper.h.

◆ pending_vmreg_map_

PendingVmRegMap IFMapVmUuidMapper::pending_vmreg_map_
private

Definition at line 107 of file ifmap_uuid_mapper.h.

◆ registered

bool IFMapVmUuidMapper::registered
private

Definition at line 103 of file ifmap_uuid_mapper.h.

◆ uuid_mapper_

IFMapUuidMapper IFMapVmUuidMapper::uuid_mapper_
private

Definition at line 105 of file ifmap_uuid_mapper.h.

◆ vm_lid_

DBTable::ListenerId IFMapVmUuidMapper::vm_lid_
private

Definition at line 102 of file ifmap_uuid_mapper.h.

◆ vm_table_

IFMapServerTable* IFMapVmUuidMapper::vm_table_
private

Definition at line 101 of file ifmap_uuid_mapper.h.


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