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

#include <ifmap_agent_table.h>

Inheritance diagram for IFMapAgentTable:
Collaboration diagram for IFMapAgentTable:

Classes

struct  IFMapAgentData
 

Public Types

typedef boost::function< bool(DBTable
*table, IFMapNode *node,
DBRequest *req)> 
PreFilterFn
 
- 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

 IFMapAgentTable (DB *db, const std::string &name, DBGraph *graph)
 
virtual void Input (DBTablePartition *partition, DBClient *client, DBRequest *req)
 
virtual void Clear ()
 
virtual std::unique_ptr< DBEntryAllocEntry (const DBRequestKey *key) const
 
void NotifyNode (IFMapNode *node)
 
const DBGraphGetGraph () const
 
DBGraphGetGraph ()
 
void DeleteNode (IFMapNode *node)
 
void RegisterPreFilter (PreFilterFn fn)
 
- Public Member Functions inherited from IFMapTable
 IFMapTable (DB *db, const std::string &name, DBGraph *graph)
 
virtual int PartitionCount () const
 
virtual const char * Typename () const =0
 
virtual IFMapObjectAllocObject ()=0
 
IFMapNodeFindNode (const std::string &name)
 
IFMapNodeFindNextNode (const std::string &name)
 
- Public Member Functions inherited from DBGraphTable
 DBGraphTable (DB *db, const std::string &name, DBGraph *graph)
 
const DBGraphgraph () const
 
DBGraphgraph ()
 
- 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 DBTablePartitionAllocPartition (int index)
 
virtual DBEntryAdd (const DBRequest *req)
 
virtual bool OnChange (DBEntry *entry, const DBRequest *req)
 
virtual bool Delete (DBEntry *entry, const DBRequest *req)
 
void NotifyAllEntries ()
 
DBEntryFind (const DBEntry *entry)
 
const DBEntryFind (const DBEntry *entry) const
 
DBEntryFind (const DBRequestKey *key, int id=-1)
 
const DBEntryFind (const DBRequestKey *key, int id=-1) const
 
DBEntryFindNoLock (const DBEntry *entry)
 
DBEntryFindNoLock (const DBRequestKey *key)
 
virtual DBTablePartBaseGetTablePartition (const DBRequestKey *key)
 
virtual const DBTablePartBaseGetTablePartition (const DBRequestKey *key) const
 
virtual DBTablePartBaseGetTablePartition (const DBEntryBase *entry)
 
virtual const DBTablePartBaseGetTablePartition (const DBEntryBase *entry) const
 
virtual DBTablePartBaseGetTablePartition (const int index)
 
virtual const DBTablePartBaseGetTablePartition (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
 
DBdatabase ()
 
const DBdatabase () 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 IFMapNodeTableEntryLookup (DB *db, RequestKey *key)
 
- Static Public Member Functions inherited from IFMapTable
static IFMapTableFindTable (DB *db, const std::string &element_type)
 
static void ClearTables (DB *db)
 
static void FillNodeTableList (DB *db, std::vector< IFMapNodeTableListShowEntry > *table_list)
 
- Static Public Member Functions inherited from DBTable
static void DBStateClear (DBTable *table, ListenerId id)
 

Private Member Functions

IFMapNodeEntryLocate (IFMapNode *node, RequestKey *key)
 
IFMapNodeEntryLookup (RequestKey *key)
 
IFMapAgentTableTableFind (const std::string &node_name)
 
void HandlePendingLinks (IFMapNode *)
 

Private Attributes

PreFilterFn pre_filter_
 

Additional Inherited Members

- Static Public Attributes inherited from IFMapTable
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 30 of file ifmap_agent_table.h.

Member Typedef Documentation

typedef boost::function<bool(DBTable *table, IFMapNode *node, DBRequest *req)> IFMapAgentTable::PreFilterFn

Definition at line 36 of file ifmap_agent_table.h.

Constructor & Destructor Documentation

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

Definition at line 24 of file ifmap_agent_table.cc.

Member Function Documentation

unique_ptr< DBEntry > IFMapAgentTable::AllocEntry ( const DBRequestKey key) const
virtual

Implements DBTable.

Definition at line 28 of file ifmap_agent_table.cc.

void IFMapAgentTable::Clear ( )
virtual

Implements IFMapTable.

Definition at line 337 of file ifmap_agent_table.cc.

Here is the call graph for this function:

void IFMapAgentTable::DeleteNode ( IFMapNode node)

Definition at line 138 of file ifmap_agent_table.cc.

Here is the call graph for this function:

IFMapNode * IFMapAgentTable::EntryLocate ( IFMapNode node,
RequestKey key 
)
private

Definition at line 64 of file ifmap_agent_table.cc.

Here is the call graph for this function:

IFMapNode * IFMapAgentTable::EntryLookup ( RequestKey key)
private

Definition at line 58 of file ifmap_agent_table.cc.

Here is the call graph for this function:

const DBGraph* IFMapAgentTable::GetGraph ( ) const
inline

Definition at line 49 of file ifmap_agent_table.h.

Here is the call graph for this function:

DBGraph* IFMapAgentTable::GetGraph ( )
inline

Definition at line 50 of file ifmap_agent_table.h.

Here is the call graph for this function:

void IFMapAgentTable::HandlePendingLinks ( IFMapNode node)
private

Definition at line 96 of file ifmap_agent_table.cc.

Here is the call graph for this function:

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

Reimplemented from DBTable.

Definition at line 259 of file ifmap_agent_table.cc.

Here is the call graph for this function:

void IFMapAgentTable::NotifyNode ( IFMapNode node)

Definition at line 154 of file ifmap_agent_table.cc.

Here is the call graph for this function:

void IFMapAgentTable::RegisterPreFilter ( PreFilterFn  fn)
inline

Definition at line 52 of file ifmap_agent_table.h.

IFMapNode * IFMapAgentTable::TableEntryLookup ( DB db,
RequestKey key 
)
static

Definition at line 35 of file ifmap_agent_table.cc.

Here is the call graph for this function:

IFMapAgentTable * IFMapAgentTable::TableFind ( const std::string &  node_name)
private

Definition at line 49 of file ifmap_agent_table.cc.

Here is the call graph for this function:

Member Data Documentation

PreFilterFn IFMapAgentTable::pre_filter_
private

Definition at line 59 of file ifmap_agent_table.h.


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