5 #ifndef SRC_VNSW_AGENT_OPER_OPER_DB_H_
6 #define SRC_VNSW_AGENT_OPER_OPER_DB_H_
102 bool del_on_zero_refcount) :
130 if ((old_uuid != new_uuid)) {
131 if (old_uuid != boost::uuids::nil_uuid()) {
141 assert(new_uuid != boost::uuids::nil_uuid());
148 if (uuid_set && (old_uuid == boost::uuids::nil_uuid()) &&
174 if (old_node == node)
239 typedef std::map<IFMapNode *, IFMapDependencyManager::IFMapNodePtr>
Tree;
242 assert(
tree_.size() == 0);
virtual bool IFNodeToReq(IFMapNode *node, DBRequest &req, const boost::uuids::uuid &uuid)
virtual bool IFNodeToUuid(IFMapNode *node, boost::uuids::uuid &id)
virtual ~AgentOperDBEntry()
DISALLOW_COPY_AND_ASSIGN(AgentOperDBEntry)
IFMapNode * ifmap_node() const
IFMapDependencyManager::IFMapNodePtr ifmap_node_state_
void SetIFMapNodeState(IFMapDependencyManager::IFMapNodePtr sref)
virtual DBEntry * Add(const DBRequest *req)
virtual bool Resync(DBEntry *entry, const DBRequest *req)
virtual void ConfigEventHandler(IFMapNode *node, DBEntry *entry)
virtual bool Delete(DBEntry *entry, const DBRequest *req)
virtual DBEntry * OperDBAdd(const DBRequest *req)=0
virtual ~AgentOperDBTable()
virtual bool OperDBDelete(DBEntry *entry, const DBRequest *req)=0
virtual bool OperDBResync(DBEntry *entry, const DBRequest *req)
AgentOperDBTable(DB *db, const std::string &name, bool del_on_zero_refcount)
void UpdateIfMapNode(AgentOperDBEntry *entry, IFMapNode *node)
AgentOperDBTable(DB *db, const std::string &name)
virtual bool OperDBOnChange(DBEntry *entry, const DBRequest *req)=0
DISALLOW_COPY_AND_ASSIGN(AgentOperDBTable)
virtual bool OnChange(DBEntry *entry, const DBRequest *req)
bool Enqueue(DBRequest *req)
const std::string & name() const
IFMapNodeState * IFMapNodeGet(IFMapNode *node)
bool IsNodeIdentifiedByUuid(const IFMapNode *node)
boost::intrusive_ptr< IFMapNodeState > IFMapNodePtr
IFMapNodePtr SetState(IFMapNode *node)
void SetObject(IFMapNode *node, DBEntry *entry)
boost::uuids::uuid uuid()
void set_oper_db_request_enqueued(bool oper_db_request_enqueued)
void set_uuid(const boost::uuids::uuid &u)
IFMapDependencyManager * dependency_manager()
void ProcessConfig(IFMapNode *node)
virtual ~OperIFMapTable()
virtual void ConfigDelete(IFMapNode *node)=0
std::map< IFMapNode *, IFMapDependencyManager::IFMapNodePtr > Tree
DISALLOW_COPY_AND_ASSIGN(OperIFMapTable)
OperIFMapTable(Agent *agent)
virtual void ConfigManagerEnqueue(IFMapNode *node)=0
virtual void ConfigAddChange(IFMapNode *node)=0
void ConfigEventHandler(IFMapNode *node, DBEntry *entry)
void SetIFMapNode(IFMapNode *node)
IFMapDependencyManager::IFMapNodePtr ifmap_node_state_
AgentOperDBData(const Agent *agent, IFMapNode *node)
const Agent * agent() const
IFMapNode * ifmap_node() const
virtual ~AgentOperDBData()
virtual ~AgentOperDBKey()
AgentOperDBKey(DBSubOperation sub_op)
std::unique_ptr< DBRequestData > data