OpenSDN source code
IFMapAgentLinkTable Class Reference

#include <ifmap_agent_table.h>

Inheritance diagram for IFMapAgentLinkTable:
Collaboration diagram for IFMapAgentLinkTable:

Classes

class  comp
 
struct  DeferredNode
 
struct  RequestKey
 

Public Types

typedef std::map< IFMapTable::RequestKey, std::list< DeferredNode > *, comp > LinkDefMap
 
- Public Types inherited from DBTable
typedef boost::intrusive_ptr< DBTableWalk > DBTableWalkRef
 
typedef boost::function< bool(DBTablePartBase *, DBEntryBase *)> WalkFn
 
typedef boost::function< void(DBTableWalkRef, DBTableBase *)> WalkCompleteFn
 
- Public Types inherited from DBTableBase
typedef boost::function< void(DBTablePartBase *, DBEntryBase *)> ChangeCallback
 
typedef int ListenerId
 

Public Member Functions

 IFMapAgentLinkTable (DB *db, const std::string &name, DBGraph *graph)
 
virtual void Input (DBTablePartition *partition, DBClient *client, DBRequest *req)
 
void IFMapAgentLinkTable_Init (DB *db, DBGraph *graph)
 
void EvalDefLink (IFMapTable::RequestKey *key)
 
bool RemoveDefListEntry (LinkDefMap *map, LinkDefMap::iterator &map_it, std::list< DeferredNode >::iterator *list_it)
 
void DestroyDefLink (uint64_t)
 
const LinkDefMap & GetLinkDefMap () const
 
void DelLink (IFMapNode *first, IFMapNode *second, DBGraphEdge *edge)
 
void LinkDefAdd (DBRequest *request)
 
- Public Member Functions inherited from IFMapLinkTable
 IFMapLinkTable (DB *db, const std::string &name, DBGraph *graph)
 
virtual int PartitionCount () const
 
std::string LinkKey (const std::string &metadata, IFMapNode *left, IFMapNode *right)
 
IFMapLink * AddLink (IFMapNode *left, IFMapNode *right, const std::string &metadata, uint64_t sequence_number, const IFMapOrigin &origin)
 
void DeleteLink (IFMapLink *link, const IFMapOrigin &origin)
 
void DeleteLink (IFMapLink *link)
 
virtual std::unique_ptr< DBEntry > AllocEntry (const DBRequestKey *key) const
 
void Clear ()
 
IFMapLink * FindLink (const std::string &metadata, IFMapNode *left, IFMapNode *right)
 
IFMapLink * FindLink (const std::string &name)
 
IFMapLink * FindNextLink (const std::string &name)
 
- Public Member Functions inherited from DBGraphTable
 DBGraphTable (DB *db, const std::string &name, DBGraph *graph)
 
const DBGraph * graph () const
 
DBGraph * graph ()
 
- Public Member Functions inherited from DBTable
 DBTable (DB *db, const std::string &name)
 
virtual ~DBTable ()
 
void Init ()
 
virtual size_t Hash (const DBEntry *entry) const
 
virtual size_t Hash (const DBRequestKey *key) const
 
virtual DBTablePartition * AllocPartition (int index)
 
virtual DBEntry * Add (const DBRequest *req)
 
virtual bool OnChange (DBEntry *entry, const DBRequest *req)
 
virtual bool Delete (DBEntry *entry, const DBRequest *req)
 
void NotifyAllEntries ()
 
DBEntry * Find (const DBEntry *entry)
 
const DBEntry * Find (const DBEntry *entry) const
 
DBEntry * Find (const DBRequestKey *key, int id=-1)
 
const DBEntry * Find (const DBRequestKey *key, int id=-1) const
 
DBEntry * FindNoLock (const DBEntry *entry)
 
DBEntry * FindNoLock (const DBRequestKey *key)
 
virtual DBTablePartBase * GetTablePartition (const DBRequestKey *key)
 
virtual const DBTablePartBase * GetTablePartition (const DBRequestKey *key) const
 
virtual DBTablePartBase * GetTablePartition (const DBEntryBase *entry)
 
virtual const DBTablePartBase * GetTablePartition (const DBEntryBase *entry) const
 
virtual DBTablePartBase * GetTablePartition (const int index)
 
virtual const DBTablePartBase * GetTablePartition (const int index) const
 
virtual void Change (DBEntryBase *entry)
 
virtual size_t Size () const
 
DBTableWalkRef AllocWalker (WalkFn walk_fn, WalkCompleteFn walk_complete)
 
void ReleaseWalker (DBTableWalkRef &walk)
 
void WalkTable (DBTableWalkRef walk)
 
void WalkAgain (DBTableWalkRef walk)
 
void SetWalkIterationToYield (int count)
 
int GetWalkIterationToYield ()
 
void SetWalkTaskId (int task_id)
 
int GetWalkerTaskId ()
 
- Public Member Functions inherited from DBTableBase
 DBTableBase (DB *db, const std::string &name)
 
virtual ~DBTableBase ()
 
bool Enqueue (DBRequest *req)
 
void EnqueueRemove (DBEntryBase *db_entry)
 
virtual void AddRemoveCallback (const DBEntryBase *entry, bool add) const
 
ListenerId Register (ChangeCallback callback, const std::string &name="unspecified")
 
void Unregister (ListenerId listener)
 
void RunNotify (DBTablePartBase *tpart, DBEntryBase *entry)
 
void AddToDBStateCount (ListenerId listener, int count)
 
uint64_t GetDBStateCount (ListenerId listener)
 
bool empty () const
 
virtual void RetryDelete ()
 
virtual bool MayDelete () const
 
DB * database ()
 
const DB * database () const
 
const std::string & name () const
 
bool HasListeners () const
 
size_t GetListenerCount () const
 
void FillListeners (std::vector< ShowTableListener > *listeners) const
 
uint64_t enqueue_count () const
 
void incr_enqueue_count ()
 
void reset_enqueue_count ()
 
uint64_t input_count () const
 
void incr_input_count ()
 
void reset_input_count ()
 
uint64_t notify_count () const
 
void incr_notify_count ()
 
void reset_notify_count ()
 
bool HasWalkers () const
 
uint64_t walker_count () const
 
void incr_walker_count ()
 
uint64_t decr_walker_count ()
 
uint64_t walk_request_count () const
 
uint64_t walk_complete_count () const
 
uint64_t walk_cancel_count () const
 
uint64_t walk_again_count () const
 
uint64_t walk_count () const
 
void incr_walk_request_count ()
 
void incr_walk_complete_count ()
 
void incr_walk_cancel_count ()
 
void incr_walk_again_count ()
 
void incr_walk_count ()
 

Static Public Member Functions

static DBTable * CreateTable (DB *db, const std::string &name, DBGraph *graph)
 
- Static Public Member Functions inherited from IFMapLinkTable
static DBTable * CreateTable (DB *db, const std::string &name, DBGraph *graph)
 
- Static Public Member Functions inherited from DBTable
static void DBStateClear (DBTable *table, ListenerId id)
 

Private Member Functions

void AddLink (IFMapNode *left, IFMapNode *right, const std::string &metadata, uint64_t seq)
 
IFMapLink * FindLink (IFMapNode *left, IFMapNode *right, const std::string &metadata)
 

Private Attributes

LinkDefMap link_def_map_
 

Additional Inherited Members

- Static Public Attributes inherited from IFMapLinkTable
static const int kPartitionCount = 1
 
- Static Public Attributes inherited from DBTable
static const int kIterationToYield = 256
 
- Static Public Attributes inherited from DBTableBase
static const int kInvalidId = -1
 

Detailed Description

Definition at line 63 of file ifmap_agent_table.h.

Member Typedef Documentation

◆ LinkDefMap

Definition at line 88 of file ifmap_agent_table.h.

Constructor & Destructor Documentation

◆ IFMapAgentLinkTable()

IFMapAgentLinkTable::IFMapAgentLinkTable ( DB *  db,
const std::string &  name,
DBGraph *  graph 
)

Definition at line 387 of file ifmap_agent_table.cc.

Member Function Documentation

◆ AddLink()

void IFMapAgentLinkTable::AddLink ( IFMapNode *  left,
IFMapNode *  right,
const std::string &  metadata,
uint64_t  seq 
)
private

Definition at line 367 of file ifmap_agent_table.cc.

Here is the call graph for this function:

◆ CreateTable()

DBTable * IFMapAgentLinkTable::CreateTable ( DB *  db,
const std::string &  name,
DBGraph *  graph 
)
static

Definition at line 391 of file ifmap_agent_table.cc.

Here is the call graph for this function:

◆ DelLink()

void IFMapAgentLinkTable::DelLink ( IFMapNode *  first,
IFMapNode *  second,
DBGraphEdge *  edge 
)

Definition at line 380 of file ifmap_agent_table.cc.

Here is the call graph for this function:

◆ DestroyDefLink()

void IFMapAgentLinkTable::DestroyDefLink ( uint64_t  seq)

Definition at line 582 of file ifmap_agent_table.cc.

Here is the call graph for this function:

◆ EvalDefLink()

void IFMapAgentLinkTable::EvalDefLink ( IFMapTable::RequestKey *  key)

Definition at line 511 of file ifmap_agent_table.cc.

Here is the call graph for this function:

◆ FindLink()

IFMapLink * IFMapAgentLinkTable::FindLink ( IFMapNode *  left,
IFMapNode *  right,
const std::string &  metadata 
)
private

Definition at line 357 of file ifmap_agent_table.cc.

Here is the call graph for this function:

◆ GetLinkDefMap()

const LinkDefMap& IFMapAgentLinkTable::GetLinkDefMap ( ) const
inline

Definition at line 98 of file ifmap_agent_table.h.

◆ IFMapAgentLinkTable_Init()

void IFMapAgentLinkTable::IFMapAgentLinkTable_Init ( DB *  db,
DBGraph *  graph 
)

◆ Input()

void IFMapAgentLinkTable::Input ( DBTablePartition *  partition,
DBClient *  client,
DBRequest *  req 
)
virtual

Reimplemented from IFMapLinkTable.

Definition at line 405 of file ifmap_agent_table.cc.

Here is the call graph for this function:

◆ LinkDefAdd()

void IFMapAgentLinkTable::LinkDefAdd ( DBRequest *  request)

Definition at line 166 of file ifmap_agent_table.cc.

Here is the call graph for this function:

◆ RemoveDefListEntry()

bool IFMapAgentLinkTable::RemoveDefListEntry ( LinkDefMap *  map,
LinkDefMap::iterator &  map_it,
std::list< DeferredNode >::iterator *  list_it 
)

Definition at line 488 of file ifmap_agent_table.cc.

Member Data Documentation

◆ link_def_map_

LinkDefMap IFMapAgentLinkTable::link_def_map_
private

Definition at line 109 of file ifmap_agent_table.h.


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