OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

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.

Constructor & Destructor Documentation

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

Definition at line 74 of file ifmap_uuid_mapper.cc.

IFMapVmUuidMapper::~IFMapVmUuidMapper ( )

Definition at line 78 of file ifmap_uuid_mapper.cc.

Here is the call graph for this function:

Member Function Documentation

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

Definition at line 81 of file ifmap_uuid_mapper.h.

DB* IFMapVmUuidMapper::db ( )
inline

Definition at line 66 of file ifmap_uuid_mapper.h.

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:

void IFMapVmUuidMapper::Initialize ( )

Definition at line 82 of file ifmap_uuid_mapper.cc.

Here is the call graph for this function:

bool IFMapVmUuidMapper::is_registered ( )
inline

Definition at line 68 of file ifmap_uuid_mapper.h.

bool IFMapVmUuidMapper::IsFeasible ( IFMapNode node)
private

Definition at line 187 of file ifmap_uuid_mapper.cc.

Here is the call graph for this function:

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.

NodeUuidMap::size_type IFMapVmUuidMapper::NodeUuidMapCount ( )
inline

Definition at line 88 of file ifmap_uuid_mapper.h.

PendingVmRegMap::size_type IFMapVmUuidMapper::PendingVmRegCount ( )
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 ( )

Definition at line 211 of file ifmap_uuid_mapper.cc.

Here is the call graph for this function:

void IFMapVmUuidMapper::PrintAllPendingVmRegEntries ( )

Definition at line 179 of file ifmap_uuid_mapper.cc.

void IFMapVmUuidMapper::PrintAllUuidMapperEntries ( )

Definition at line 156 of file ifmap_uuid_mapper.cc.

Here is the call graph for this function:

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

Definition at line 160 of file ifmap_uuid_mapper.cc.

IFMapServer* IFMapVmUuidMapper::server ( )
inline

Definition at line 67 of file ifmap_uuid_mapper.h.

void IFMapVmUuidMapper::Shutdown ( )

Definition at line 91 of file ifmap_uuid_mapper.cc.

Here is the call graph for this function:

IFMapUuidMapper::Sz_t IFMapVmUuidMapper::UuidMapperCount ( )
inline

Definition at line 61 of file ifmap_uuid_mapper.h.

Here is the call graph for this function:

DBTable::ListenerId IFMapVmUuidMapper::vm_listener_id ( )
inline

Definition at line 65 of file ifmap_uuid_mapper.h.

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:

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

friend class IFMapVmUuidMapperTest
friend

Definition at line 94 of file ifmap_uuid_mapper.h.

friend class ShowIFMapNodeToUuidMapping
friend

Definition at line 96 of file ifmap_uuid_mapper.h.

friend class ShowIFMapPendingVmReg
friend

Definition at line 95 of file ifmap_uuid_mapper.h.

friend class ShowIFMapUuidToNodeMapping
friend

Definition at line 97 of file ifmap_uuid_mapper.h.

Member Data Documentation

DB* IFMapVmUuidMapper::db_
private

Definition at line 99 of file ifmap_uuid_mapper.h.

IFMapServer* IFMapVmUuidMapper::ifmap_server_
private

Definition at line 100 of file ifmap_uuid_mapper.h.

NodeUuidMap IFMapVmUuidMapper::node_uuid_map_
private

Definition at line 106 of file ifmap_uuid_mapper.h.

PendingVmRegMap IFMapVmUuidMapper::pending_vmreg_map_
private

Definition at line 107 of file ifmap_uuid_mapper.h.

bool IFMapVmUuidMapper::registered
private

Definition at line 103 of file ifmap_uuid_mapper.h.

IFMapUuidMapper IFMapVmUuidMapper::uuid_mapper_
private

Definition at line 105 of file ifmap_uuid_mapper.h.

DBTable::ListenerId IFMapVmUuidMapper::vm_lid_
private

Definition at line 102 of file ifmap_uuid_mapper.h.

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: