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);
281 #endif // SRC_VNSW_AGENT_OPER_OPER_DB_H_
boost::uuids::uuid uuid()
AgentOperDBData(const Agent *agent, IFMapNode *node)
DISALLOW_COPY_AND_ASSIGN(AgentOperDBTable)
IFMapDependencyManager::IFMapNodePtr ifmap_node_state_
AgentOperDBTable(DB *db, const std::string &name)
void UpdateIfMapNode(AgentOperDBEntry *entry, IFMapNode *node)
void SetObject(IFMapNode *node, DBEntry *entry)
virtual ~AgentOperDBData()
IFMapNodeState * IFMapNodeGet(IFMapNode *node)
void set_uuid(const boost::uuids::uuid &u)
std::unique_ptr< DBRequestData > data
void SetIFMapNode(IFMapNode *node)
bool Enqueue(DBRequest *req)
virtual bool OperDBDelete(DBEntry *entry, const DBRequest *req)=0
IFMapNode * ifmap_node() const
AgentOperDBKey(DBSubOperation sub_op)
std::map< IFMapNode *, IFMapDependencyManager::IFMapNodePtr > Tree
DISALLOW_COPY_AND_ASSIGN(OperIFMapTable)
IFMapDependencyManager * dependency_manager()
AgentOperDBTable(DB *db, const std::string &name, bool del_on_zero_refcount)
void ConfigEventHandler(IFMapNode *node, DBEntry *entry)
DISALLOW_COPY_AND_ASSIGN(AgentOperDBEntry)
virtual void ConfigDelete(IFMapNode *node)=0
virtual DBEntry * OperDBAdd(const DBRequest *req)=0
virtual ~AgentOperDBEntry()
void ProcessConfig(IFMapNode *node)
virtual void ConfigAddChange(IFMapNode *node)=0
const std::string & name() const
virtual bool IFNodeToUuid(IFMapNode *node, boost::uuids::uuid &id)
bool IsNodeIdentifiedByUuid(const IFMapNode *node)
virtual ~AgentOperDBTable()
IFMapNodePtr SetState(IFMapNode *node)
IFMapNode * ifmap_node() const
virtual bool Resync(DBEntry *entry, const DBRequest *req)
const Agent * agent() const
virtual bool IFNodeToReq(IFMapNode *node, DBRequest &req, const boost::uuids::uuid &uuid)
virtual DBEntry * Add(const DBRequest *req)
boost::intrusive_ptr< IFMapNodeState > IFMapNodePtr
OperIFMapTable(Agent *agent)
virtual bool OperDBResync(DBEntry *entry, const DBRequest *req)
IFMapDependencyManager::IFMapNodePtr ifmap_node_state_
void set_oper_db_request_enqueued(bool oper_db_request_enqueued)
virtual bool OnChange(DBEntry *entry, const DBRequest *req)
virtual bool OperDBOnChange(DBEntry *entry, const DBRequest *req)=0
virtual void ConfigEventHandler(IFMapNode *node, DBEntry *entry)
void SetIFMapNodeState(IFMapDependencyManager::IFMapNodePtr sref)
virtual ~AgentOperDBKey()
virtual void ConfigManagerEnqueue(IFMapNode *node)=0
virtual bool Delete(DBEntry *entry, const DBRequest *req)
virtual ~OperIFMapTable()