OpenSDN source code
|
#include <vm_uve_table_base.h>
Classes | |
struct | VmUveInterfaceState |
class | VmUveVmState |
Public Types | |
typedef boost::shared_ptr < VmUveEntryBase > | VmUveEntryPtr |
typedef std::map< const boost::uuids::uuid, VmUveEntryPtr > | UveVmMap |
typedef std::pair< const boost::uuids::uuid, VmUveEntryPtr > | UveVmPair |
Public Member Functions | |
VmUveTableBase (Agent *agent, uint32_t default_intvl) | |
virtual | ~VmUveTableBase () |
void | RegisterDBClients () |
void | Shutdown (void) |
virtual void | DispatchVmMsg (const UveVirtualMachineAgent &uve) |
bool | TimerExpiry () |
Protected Member Functions | |
virtual void | VmStatCollectionStart (VmUveVmState *state, const VmEntry *vm) |
virtual void | VmStatCollectionStop (VmUveVmState *state) |
VmUveEntryBase * | UveEntryFromVm (const boost::uuids::uuid &u) |
virtual void | SendVmDeleteMsg (const std::string &vm_config_name) |
Protected Attributes | |
UveVmMap | uve_vm_map_ |
Agent * | agent_ |
tbb::mutex | uve_vm_map_mutex_ |
Private Member Functions | |
virtual VmUveEntryPtr | Allocate (const VmEntry *vm) |
void | InterfaceNotify (DBTablePartBase *partition, DBEntryBase *e) |
void | VmNotify (DBTablePartBase *partition, DBEntryBase *e) |
void | InterfaceAddHandler (const VmEntry *vm, const VmInterface *vmi) |
void | InterfaceDeleteHandler (const boost::uuids::uuid &u, const std::string &intf_cfg_name) |
void | UpdateVmName (const boost::uuids::uuid &u, const std::string &vm_name) |
void | MarkChanged (const boost::uuids::uuid &u) |
VmUveEntryBase * | Add (const VmEntry *vm, bool vm_notify) |
void | Delete (const boost::uuids::uuid &u) |
void | Change (const VmEntry *vm) |
void | set_expiry_time (int time) |
void | SendVmMsg (VmUveEntryBase *entry, const boost::uuids::uuid &u) |
DISALLOW_COPY_AND_ASSIGN (VmUveTableBase) | |
Private Attributes | |
DBTableBase::ListenerId | intf_listener_id_ |
DBTableBase::ListenerId | vm_listener_id_ |
boost::uuids::uuid | timer_last_visited_ |
Timer * | timer_ |
int | expiry_time_ |
Definition at line 26 of file vm_uve_table_base.h.
typedef std::map<const boost::uuids::uuid, VmUveEntryPtr> VmUveTableBase::UveVmMap |
Definition at line 43 of file vm_uve_table_base.h.
typedef std::pair<const boost::uuids::uuid, VmUveEntryPtr> VmUveTableBase::UveVmPair |
Definition at line 44 of file vm_uve_table_base.h.
typedef boost::shared_ptr<VmUveEntryBase> VmUveTableBase::VmUveEntryPtr |
Definition at line 42 of file vm_uve_table_base.h.
VmUveTableBase::VmUveTableBase | ( | Agent * | agent, |
uint32_t | default_intvl | ||
) |
|
virtual |
Definition at line 24 of file vm_uve_table_base.cc.
|
private |
|
privatevirtual |
Reimplemented in VmUveTable.
Definition at line 126 of file vm_uve_table_base.cc.
|
private |
|
private |
|
private |
|
virtual |
Definition at line 139 of file vm_uve_table_base.cc.
|
private |
|
private |
|
private |
|
private |
void VmUveTableBase::RegisterDBClients | ( | ) |
|
protectedvirtual |
Reimplemented in VmUveTable.
Definition at line 79 of file vm_uve_table_base.cc.
|
private |
|
private |
void VmUveTableBase::Shutdown | ( | void | ) |
bool VmUveTableBase::TimerExpiry | ( | ) |
|
private |
|
protected |
Definition at line 131 of file vm_uve_table_base.cc.
|
private |
|
protectedvirtual |
Reimplemented in VmUveTable.
Definition at line 272 of file vm_uve_table_base.cc.
|
protectedvirtual |
Reimplemented in VmUveTable.
Definition at line 276 of file vm_uve_table_base.cc.
|
protected |
Definition at line 60 of file vm_uve_table_base.h.
|
private |
Definition at line 83 of file vm_uve_table_base.h.
|
private |
Definition at line 78 of file vm_uve_table_base.h.
|
private |
Definition at line 82 of file vm_uve_table_base.h.
|
private |
Definition at line 81 of file vm_uve_table_base.h.
|
protected |
Definition at line 59 of file vm_uve_table_base.h.
|
protected |
Definition at line 62 of file vm_uve_table_base.h.
|
private |
Definition at line 79 of file vm_uve_table_base.h.