OpenSDN source code
|
#include <agent_db.h>
Public Types | |
typedef boost::intrusive_ptr < AgentDBEntry > | AgentDBEntyRef |
![]() | |
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 |
![]() | |
DBEntry () | |
virtual | ~DBEntry () |
virtual void | SetKey (const DBRequestKey *key)=0 |
virtual bool | IsLess (const DBEntry &rhs) const =0 |
bool | operator< (const DBEntry &rhs) const |
![]() | |
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 | |
![]() | |
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 NextHop, HealthCheckService, VnEntry, VrfEntry, AclDBEntry, Interface, ServiceInstance, PhysicalDevice, PhysicalDeviceVn, TagEntry, VlanVrfAssign, PolicySet, MulticastPolicyEntry, MirrorEntry, SecurityLoggingObject, MplsLabel, CryptTunnelEntry, SgEntry, ForwardingClass, VmEntry, AgentQosConfig, BridgeDomainEntry, QosQueue, and VxLanId.
|
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 NextHop, HealthCheckService, VnEntry, AclDBEntry, ServiceInstance, VrfEntry, Interface, TagEntry, PolicySet, PhysicalDevice, SecurityLoggingObject, PhysicalDeviceVn, MirrorEntry, MulticastPolicyEntry, ForwardingClass, BridgeDomainEntry, MplsLabel, AgentQosConfig, CryptTunnelEntry, QosQueue, SgEntry, VrfAssign, VmEntry, and VxLanId.
bool AgentDBEntry::IsActive | ( | ) | const |
|
virtual |
Reimplemented in VmInterface, NextHop, HealthCheckService, VrfEntry, CryptTunnelEntry, QosQueue, PhysicalInterface, InetInterface, and PacketInterface.
Definition at line 49 of file agent_db.cc.
void AgentDBEntry::SetRefState | ( | ) | const |
|
friend |
Definition at line 141 of file agent_db.h.