OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OVSDB::PhysicalPortTable Class Reference

#include <physical_port_ovsdb.h>

Inheritance diagram for OVSDB::PhysicalPortTable:
Collaboration diagram for OVSDB::PhysicalPortTable:

Public Types

typedef std::map< struct
ovsdb_idl_row
*, PhysicalPortEntry * > 
IdlEntryMap
 
- Public Types inherited from KSyncObject
typedef
boost::intrusive::member_hook
< KSyncEntry,
boost::intrusive::set_member_hook
<>,&KSyncEntry::node_
KSyncObjectNode
 
typedef boost::intrusive::set
< KSyncEntry, KSyncObjectNode
Tree
 
typedef
boost::intrusive::member_hook
< KSyncFwdReference,
boost::intrusive::set_member_hook
<>,&KSyncFwdReference::node_
KSyncFwdRefNode
 
typedef boost::intrusive::set
< KSyncFwdReference,
KSyncFwdRefNode
FwdRefTree
 
typedef
boost::intrusive::member_hook
< KSyncBackReference,
boost::intrusive::set_member_hook
<>,&KSyncBackReference::node_
KSyncBackRefNode
 
typedef boost::intrusive::set
< KSyncBackReference,
KSyncBackRefNode
BackRefTree
 

Public Member Functions

 PhysicalPortTable (OvsdbClientIdl *idl)
 
virtual ~PhysicalPortTable ()
 
void Notify (OvsdbClientIdl::Op, struct ovsdb_idl_row *)
 
KSyncEntryAlloc (const KSyncEntry *key, uint32_t index)
 
void CreatePortEntry (struct ovsdb_idl_row *row, const std::string &physical_device)
 
PhysicalPortEntryFindPortEntry (struct ovsdb_idl_row *row)
 
void DeletePortEntry (struct ovsdb_idl_row *row)
 
void set_stale_create_done ()
 
- Public Member Functions inherited from OVSDB::OvsdbObject
 OvsdbObject (OvsdbClientIdl *idl)
 
virtual ~OvsdbObject ()
 
KSyncEntryFindActiveEntry (KSyncEntry *key)
 
void DeleteTable (void)
 
virtual void EmptyTable (void)
 
OvsdbClientIdlclient_idl ()
 
- Public Member Functions inherited from KSyncObject
 KSyncObject (const std::string &name)
 
 KSyncObject (const std::string &name, int max_index)
 
virtual ~KSyncObject ()
 
void InitStaleEntryCleanup (boost::asio::io_context &ios, uint32_t cleanup_time, uint32_t cleanup_intvl, uint16_t entries_per_intvl)
 
void NotifyEvent (KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 
void SafeNotifyEvent (KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 
virtual void NetlinkAck (KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 
void BackRefAdd (KSyncEntry *key, KSyncEntry *reference)
 
void BackRefDel (KSyncEntry *key)
 
void BackRefReEval (KSyncEntry *key)
 
KSyncEntryCreate (const KSyncEntry *key)
 
KSyncEntryCreate (const KSyncEntry *key, bool skip_lookup)
 
KSyncEntryCreateStale (const KSyncEntry *key)
 
void Change (KSyncEntry *entry)
 
void Delete (KSyncEntry *entry)
 
KSyncEntryFind (const KSyncEntry *key)
 
KSyncEntryNext (const KSyncEntry *entry) const
 
KSyncEntryGetReference (const KSyncEntry *key)
 
virtual void Free (KSyncEntry *entry)
 
bool IsEmpty (void)
 
virtual bool DoEventTrace (void)
 
virtual void PreFree (KSyncEntry *entry)
 
std::size_t Size ()
 
void set_delete_scheduled ()
 
bool delete_scheduled ()
 
virtual SandeshTraceBufferPtr GetKSyncTraceBuf ()
 

Private Member Functions

void EntryOvsdbUpdate (PhysicalPortEntry *entry)
 
 DISALLOW_COPY_AND_ASSIGN (PhysicalPortTable)
 

Private Attributes

IdlEntryMap idl_entry_map_
 
bool stale_create_done_
 

Additional Inherited Members

- Static Public Member Functions inherited from KSyncObject
static void Shutdown ()
 
- Protected Member Functions inherited from OVSDB::OvsdbObject
virtual void DeleteTableDone (void)
 
- Protected Member Functions inherited from KSyncObject
KSyncEntryCreateImpl (const KSyncEntry *key)
 
void ClearStale (KSyncEntry *entry)
 
void ChangeKey (KSyncEntry *entry, uint32_t arg)
 
virtual void UpdateKey (KSyncEntry *entry, uint32_t arg)
 
virtual uint32_t GetKey (KSyncEntry *entry)
 
- Protected Attributes inherited from OVSDB::OvsdbObject
OvsdbClientIdlPtr client_idl_
 
- Protected Attributes inherited from KSyncObject
tbb::recursive_mutex lock_
 

Detailed Description

Definition at line 14 of file physical_port_ovsdb.h.

Member Typedef Documentation

typedef std::map<struct ovsdb_idl_row *, PhysicalPortEntry *> OVSDB::PhysicalPortTable::IdlEntryMap

Definition at line 16 of file physical_port_ovsdb.h.

Constructor & Destructor Documentation

PhysicalPortTable::PhysicalPortTable ( OvsdbClientIdl idl)

Definition at line 143 of file physical_port_ovsdb.cc.

Here is the call graph for this function:

PhysicalPortTable::~PhysicalPortTable ( )
virtual

Definition at line 149 of file physical_port_ovsdb.cc.

Member Function Documentation

KSyncEntry * PhysicalPortTable::Alloc ( const KSyncEntry key,
uint32_t  index 
)
virtual

Implements KSyncObject.

Definition at line 164 of file physical_port_ovsdb.cc.

void PhysicalPortTable::CreatePortEntry ( struct ovsdb_idl_row *  row,
const std::string &  physical_device 
)

Definition at line 172 of file physical_port_ovsdb.cc.

Here is the call graph for this function:

void PhysicalPortTable::DeletePortEntry ( struct ovsdb_idl_row *  row)

Definition at line 206 of file physical_port_ovsdb.cc.

Here is the call graph for this function:

OVSDB::PhysicalPortTable::DISALLOW_COPY_AND_ASSIGN ( PhysicalPortTable  )
private
void PhysicalPortTable::EntryOvsdbUpdate ( PhysicalPortEntry entry)
private

Definition at line 223 of file physical_port_ovsdb.cc.

Here is the call graph for this function:

PhysicalPortEntry * PhysicalPortTable::FindPortEntry ( struct ovsdb_idl_row *  row)

Definition at line 197 of file physical_port_ovsdb.cc.

void PhysicalPortTable::Notify ( OvsdbClientIdl::Op  op,
struct ovsdb_idl_row *  row 
)

Definition at line 152 of file physical_port_ovsdb.cc.

Here is the call graph for this function:

void PhysicalPortTable::set_stale_create_done ( )

Definition at line 219 of file physical_port_ovsdb.cc.

Member Data Documentation

IdlEntryMap OVSDB::PhysicalPortTable::idl_entry_map_
private

Definition at line 33 of file physical_port_ovsdb.h.

bool OVSDB::PhysicalPortTable::stale_create_done_
private

Definition at line 34 of file physical_port_ovsdb.h.


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