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

#include <qos_config.h>

Inheritance diagram for AgentQosConfigTable:
Collaboration diagram for AgentQosConfigTable:

Public Types

typedef std::map< std::string,
AgentQosConfig * > 
AgentQosConfigNameMap
 
typedef std::pair< std::string,
AgentQosConfig * > 
AgentQosConfigNamePair
 
- 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

 AgentQosConfigTable (Agent *agent, DB *db, const std::string &name)
 
virtual ~AgentQosConfigTable ()
 
virtual std::unique_ptr< DBEntryAllocEntry (const DBRequestKey *k) const
 
virtual size_t Hash (const DBEntry *entry) const
 
virtual size_t Hash (const DBRequestKey *key) const
 
virtual DBEntryOperDBAdd (const DBRequest *req)
 
virtual bool OperDBOnChange (DBEntry *entry, const DBRequest *req)
 
virtual bool OperDBDelete (DBEntry *entry, const DBRequest *req)
 
virtual bool OperDBResync (DBEntry *entry, const DBRequest *req)
 
virtual bool IFNodeToReq (IFMapNode *node, DBRequest &req, const boost::uuids::uuid &u)
 
virtual bool IFNodeToUuid (IFMapNode *node, boost::uuids::uuid &u)
 
virtual bool ProcessConfig (IFMapNode *node, DBRequest &req, const boost::uuids::uuid &u)
 
AgentQosConfigDataBuildData (IFMapNode *node)
 
void ReleaseIndex (AgentQosConfig *qc)
 
virtual AgentSandeshPtr GetAgentSandesh (const AgentSandeshArguments *args, const std::string &context)
 
const AgentQosConfigFindByName (const std::string &name)
 
const AgentQosConfigFindByIndex (uint32_t idx) const
 
void EraseFabricQosConfig (const boost::uuids::uuid &uuid)
 
void InsertFabricQosConfig (const boost::uuids::uuid &uuid)
 
const boost::uuids::uuid GetActiveFabricQosConfig ()
 
void EraseVhostQosConfig (const boost::uuids::uuid &uuid)
 
void InsertVhostQosConfig (const boost::uuids::uuid &uuid)
 
const boost::uuids::uuid GetActiveVhostQosConfig ()
 
- Public Member Functions inherited from AgentOperDBTable
 AgentOperDBTable (DB *db, const std::string &name)
 
 AgentOperDBTable (DB *db, const std::string &name, bool del_on_zero_refcount)
 
virtual ~AgentOperDBTable ()
 
virtual void ConfigEventHandler (IFMapNode *node, DBEntry *entry)
 
- Public Member Functions inherited from AgentDBTable
 AgentDBTable (DB *db, const std::string &name)
 
 AgentDBTable (DB *db, const std::string &name, bool del_on_zero_refcount)
 
virtual ~AgentDBTable ()
 
virtual int PartitionCount () const
 
virtual void Input (DBTablePartition *root, DBClient *client, DBRequest *req)
 
virtual DBEntryCfgAdd (DBRequest *req)
 
virtual void Clear ()
 
virtual bool IFLinkToReq (IFMapLink *link, IFMapNode *node, const std::string &peer_name, IFMapNode *peer, DBRequest &req)
 
virtual DBTablePartitionAllocPartition (int index)
 
virtual void OnZeroRefcount (AgentDBEntry *e)
 
virtual void NotifyEntry (DBEntryBase *entry)
 
void Notify (DBTablePartBase *partition, DBEntryBase *entry)
 
DBTableBase::ListenerId GetRefListenerId () const
 
AgentDBEntryFindActiveEntry (const DBEntry *key)
 
AgentDBEntryFindActiveEntryNoLock (const DBEntry *key)
 
AgentDBEntryFindActiveEntry (const DBRequestKey *key)
 
AgentDBEntryFindActiveEntryNoLock (const DBRequestKey *key)
 
AgentDBEntryFind (const DBEntry *key, bool ret_del)
 
AgentDBEntryFind (const DBRequestKey *key, bool ret_del)
 
virtual bool CanNotify (IFMapNode *dbe)
 
virtual void Process (DBRequest &req)
 
void set_agent (Agent *agent)
 
Agentagent () const
 
void Flush ()
 
void reset_flush_walk_ref ()
 
SandeshTraceBufferPtr GetOperDBTraceBuf () const
 
- Public Member Functions inherited from DBTable
 DBTable (DB *db, const std::string &name)
 
virtual ~DBTable ()
 
void Init ()
 
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 DBTableBaseCreateTable (Agent *agent, DB *db, const std::string &name)
 
- Static Public Member Functions inherited from DBTable
static void DBStateClear (DBTable *table, ListenerId id)
 

Static Public Attributes

static const uint32_t kInvalidIndex =0xFFFF
 
static const uint32_t kDscpEntries = 63
 
static const uint32_t k801pEntries = 7
 
static const uint32_t kExpEntries = 7
 
- Static Public Attributes inherited from AgentDBTable
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
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (AgentQosConfigTable)
 

Private Attributes

AgentQosConfigNameMap name_map_
 
std::set< boost::uuids::uuidvhost_qos_config_uuids_
 
std::set< boost::uuids::uuidfabric_qos_config_uuids_
 
IndexVector< AgentQosConfig * > index_table_
 

Additional Inherited Members

- Protected Member Functions inherited from AgentOperDBTable
void UpdateIfMapNode (AgentOperDBEntry *entry, IFMapNode *node)
 
virtual DBEntryAdd (const DBRequest *req)
 
virtual bool OnChange (DBEntry *entry, const DBRequest *req)
 
virtual bool Resync (DBEntry *entry, const DBRequest *req)
 
virtual bool Delete (DBEntry *entry, const DBRequest *req)
 

Detailed Description

Definition at line 137 of file qos_config.h.

Member Typedef Documentation

Definition at line 139 of file qos_config.h.

Definition at line 140 of file qos_config.h.

Constructor & Destructor Documentation

AgentQosConfigTable::AgentQosConfigTable ( Agent agent,
DB db,
const std::string &  name 
)

Definition at line 272 of file qos_config.cc.

Here is the call graph for this function:

AgentQosConfigTable::~AgentQosConfigTable ( )
virtual

Definition at line 278 of file qos_config.cc.

Member Function Documentation

std::unique_ptr< DBEntry > AgentQosConfigTable::AllocEntry ( const DBRequestKey k) const
virtual

Implements DBTable.

Definition at line 289 of file qos_config.cc.

AgentQosConfigData * AgentQosConfigTable::BuildData ( IFMapNode node)

Definition at line 371 of file qos_config.cc.

Here is the call graph for this function:

DBTableBase * AgentQosConfigTable::CreateTable ( Agent agent,
DB db,
const std::string &  name 
)
static

Definition at line 282 of file qos_config.cc.

Here is the call graph for this function:

AgentQosConfigTable::DISALLOW_COPY_AND_ASSIGN ( AgentQosConfigTable  )
private
void AgentQosConfigTable::EraseFabricQosConfig ( const boost::uuids::uuid uuid)
inline

Definition at line 185 of file qos_config.h.

void AgentQosConfigTable::EraseVhostQosConfig ( const boost::uuids::uuid uuid)
inline

Definition at line 202 of file qos_config.h.

const AgentQosConfig* AgentQosConfigTable::FindByIndex ( uint32_t  idx) const
inline

Definition at line 181 of file qos_config.h.

Here is the call graph for this function:

const AgentQosConfig* AgentQosConfigTable::FindByName ( const std::string &  name)
inline

Definition at line 173 of file qos_config.h.

const boost::uuids::uuid AgentQosConfigTable::GetActiveFabricQosConfig ( )
inline

Definition at line 193 of file qos_config.h.

const boost::uuids::uuid AgentQosConfigTable::GetActiveVhostQosConfig ( )
inline

Definition at line 210 of file qos_config.h.

AgentSandeshPtr AgentQosConfigTable::GetAgentSandesh ( const AgentSandeshArguments args,
const std::string &  context 
)
virtual

Reimplemented from AgentDBTable.

Definition at line 406 of file qos_config.cc.

Here is the call graph for this function:

virtual size_t AgentQosConfigTable::Hash ( const DBEntry entry) const
inlinevirtual

Reimplemented from DBTable.

Definition at line 155 of file qos_config.h.

virtual size_t AgentQosConfigTable::Hash ( const DBRequestKey key) const
inlinevirtual

Reimplemented from DBTable.

Definition at line 156 of file qos_config.h.

bool AgentQosConfigTable::IFNodeToReq ( IFMapNode node,
DBRequest req,
const boost::uuids::uuid u 
)
virtual

Reimplemented from AgentDBTable.

Definition at line 334 of file qos_config.cc.

Here is the call graph for this function:

bool AgentQosConfigTable::IFNodeToUuid ( IFMapNode node,
boost::uuids::uuid u 
)
virtual

Reimplemented from AgentDBTable.

Definition at line 349 of file qos_config.cc.

Here is the call graph for this function:

void AgentQosConfigTable::InsertFabricQosConfig ( const boost::uuids::uuid uuid)
inline

Definition at line 189 of file qos_config.h.

void AgentQosConfigTable::InsertVhostQosConfig ( const boost::uuids::uuid uuid)
inline

Definition at line 206 of file qos_config.h.

DBEntry * AgentQosConfigTable::OperDBAdd ( const DBRequest req)
virtual

Implements AgentOperDBTable.

Definition at line 296 of file qos_config.cc.

Here is the call graph for this function:

bool AgentQosConfigTable::OperDBDelete ( DBEntry entry,
const DBRequest req 
)
virtual

Implements AgentOperDBTable.

Definition at line 320 of file qos_config.cc.

Here is the call graph for this function:

bool AgentQosConfigTable::OperDBOnChange ( DBEntry entry,
const DBRequest req 
)
virtual

Implements AgentOperDBTable.

Definition at line 311 of file qos_config.cc.

Here is the call graph for this function:

bool AgentQosConfigTable::OperDBResync ( DBEntry entry,
const DBRequest req 
)
virtual

Reimplemented from AgentOperDBTable.

Definition at line 316 of file qos_config.cc.

Here is the call graph for this function:

bool AgentQosConfigTable::ProcessConfig ( IFMapNode node,
DBRequest req,
const boost::uuids::uuid u 
)
virtual

Reimplemented from AgentDBTable.

Definition at line 357 of file qos_config.cc.

Here is the call graph for this function:

void AgentQosConfigTable::ReleaseIndex ( AgentQosConfig qc)

Definition at line 327 of file qos_config.cc.

Here is the call graph for this function:

Member Data Documentation

std::set<boost::uuids::uuid> AgentQosConfigTable::fabric_qos_config_uuids_
private

Definition at line 221 of file qos_config.h.

IndexVector<AgentQosConfig *> AgentQosConfigTable::index_table_
private

Definition at line 222 of file qos_config.h.

const uint32_t AgentQosConfigTable::k801pEntries = 7
static

Definition at line 146 of file qos_config.h.

const uint32_t AgentQosConfigTable::kDscpEntries = 63
static

Definition at line 145 of file qos_config.h.

const uint32_t AgentQosConfigTable::kExpEntries = 7
static

Definition at line 147 of file qos_config.h.

const uint32_t AgentQosConfigTable::kInvalidIndex =0xFFFF
static

Definition at line 144 of file qos_config.h.

AgentQosConfigNameMap AgentQosConfigTable::name_map_
private

Definition at line 219 of file qos_config.h.

std::set<boost::uuids::uuid> AgentQosConfigTable::vhost_qos_config_uuids_
private

Definition at line 220 of file qos_config.h.


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