|
OpenSDN source code
|
#include <agent_db.h>


Public Types | |
| typedef boost::intrusive_ptr< AgentDBEntry > | AgentDBEntyRef |
Public Types inherited from DBEntryBase | |
| typedef DBTableBase::ListenerId | ListenerId |
| typedef std::unique_ptr< DBRequestKey > | KeyPtr |
Public Member Functions | |
| AgentDBEntry () | |
| virtual | ~AgentDBEntry () |
| virtual uint32_t | GetRefCount () const =0 |
| void | SetRefState () const |
| void | ClearRefState () const |
| bool | IsActive () const |
| DBState * | GetAgentDBEntryState (int listener_id) |
| const DBState * | GetAgentDBEntryState (int listener_id) const |
| virtual void | AllocateResources (ResourceManager *resource_manager) |
| virtual void | FreeResources (ResourceManager *resource_manager) |
| virtual void | PostAdd () |
| virtual bool | DBEntrySandesh (Sandesh *resp, std::string &name) const =0 |
Public Member Functions inherited from DBEntry | |
| DBEntry () | |
| virtual | ~DBEntry () |
| virtual void | SetKey (const DBRequestKey *key)=0 |
| virtual bool | IsLess (const DBEntry &rhs) const =0 |
| bool | operator< (const DBEntry &rhs) const |
Public Member Functions inherited from DBEntryBase | |
| DBEntryBase () | |
| virtual | ~DBEntryBase () |
| virtual std::string | ToString () const =0 |
| virtual KeyPtr | GetDBRequestKey () const =0 |
| virtual bool | IsMoreSpecific (const std::string &match) const |
| virtual bool | IsLessSpecific (const std::string &match) const |
| void | SetState (DBTableBase *tbl_base, ListenerId listener, DBState *state) |
| void | ClearState (DBTableBase *tbl_base, ListenerId listener) |
| DBState * | GetState (DBTableBase *tbl_base, ListenerId listener) const |
| const DBState * | GetState (const DBTableBase *tbl_base, ListenerId listener) const |
| bool | is_state_empty (DBTablePartBase *tpart) |
| bool | is_state_empty_unlocked (DBTablePartBase *tpart) |
| void | Delete () |
| void | MarkDelete () |
| void | ClearDelete () |
| bool | IsDeleted () const |
| void | set_onlist () |
| void | clear_onlist () |
| bool | is_onlist () |
| void | SetOnRemoveQ () |
| bool | IsOnRemoveQ () |
| void | ClearOnRemoveQ () |
| void | set_last_change_at (uint64_t time) |
| void | set_last_change_at_to_now () |
| const uint64_t | last_change_at () const |
| const std::string | last_change_at_str () const |
| void | set_last_update_at (uint64_t time) |
| void | set_last_update_at_to_now () |
| const uint64_t | last_update_at () const |
| DBTablePartBase * | get_table_partition () const |
| void | set_table_partition (DBTablePartBase *tpart) |
| DBTableBase * | get_table () const |
| void | Notify () |
Private Member Functions | |
| DISALLOW_COPY_AND_ASSIGN (AgentDBEntry) | |
Friends | |
| class | AgentDBTable |
Additional Inherited Members | |
Public Attributes inherited from DBEntryBase | |
| boost::intrusive::list_member_hook | chg_list_ |
Definition at line 123 of file agent_db.h.
| typedef boost::intrusive_ptr<AgentDBEntry> AgentDBEntry::AgentDBEntyRef |
Definition at line 129 of file agent_db.h.
|
inline |
Definition at line 125 of file agent_db.h.
|
inlinevirtual |
Definition at line 126 of file agent_db.h.
|
virtual |
Definition at line 43 of file agent_db.cc.
| void AgentDBEntry::ClearRefState | ( | ) | const |
|
pure virtual |
Implemented in VxLanId, VlanVrfAssign, VrfEntry, VnEntry, VmEntry, TagEntry, SgEntry, ServiceInstance, PhysicalDeviceVn, NextHop, MulticastPolicyEntry, MplsLabel, MirrorEntry, Interface, CryptTunnelEntry, SecurityLoggingObject, QosQueue, AgentQosConfig, PhysicalDevice, HealthCheckService, ForwardingClass, BridgeDomainEntry, PolicySet, and AclDBEntry.
|
private |
|
virtual |
Definition at line 46 of file agent_db.cc.
| DBState * AgentDBEntry::GetAgentDBEntryState | ( | int | listener_id | ) |
| const DBState * AgentDBEntry::GetAgentDBEntryState | ( | int | listener_id | ) | const |
|
pure virtual |
Implemented in VxLanId, VrfAssign, VrfEntry, VnEntry, VmEntry, TagEntry, SgEntry, ServiceInstance, SecurityLoggingObject, QosQueue, AgentQosConfig, PhysicalDeviceVn, PhysicalDevice, NextHop, MulticastPolicyEntry, MplsLabel, MirrorEntry, Interface, HealthCheckService, ForwardingClass, CryptTunnelEntry, BridgeDomainEntry, PolicySet, and AclDBEntry.
| bool AgentDBEntry::IsActive | ( | ) | const |
|
virtual |
Reimplemented in VrfEntry, VmInterface, QosQueue, PhysicalInterface, PacketInterface, NextHop, InetInterface, HealthCheckService, and CryptTunnelEntry.
Definition at line 49 of file agent_db.cc.
| void AgentDBEntry::SetRefState | ( | ) | const |
|
friend |
Definition at line 141 of file agent_db.h.