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

#include <ovsdb_entry.h>

Inheritance diagram for OVSDB::OvsdbDBEntry:
Collaboration diagram for OVSDB::OvsdbDBEntry:

Public Member Functions

 OvsdbDBEntry (OvsdbDBObject *table)
 
 OvsdbDBEntry (OvsdbDBObject *table, struct ovsdb_idl_row *ovs_entry)
 
virtual ~OvsdbDBEntry ()
 
virtual void PreAddChange ()
 
virtual void PostDelete ()
 
virtual void AddMsg (struct ovsdb_idl_txn *)
 
virtual void ChangeMsg (struct ovsdb_idl_txn *)
 
virtual void DeleteMsg (struct ovsdb_idl_txn *)
 
virtual void OvsdbChange ()
 
virtual void StaleTimerExpired ()
 
bool AllowDeleteStateComp ()
 
virtual void NotifyAdd (struct ovsdb_idl_row *)
 
virtual void NotifyDelete (struct ovsdb_idl_row *)
 
virtual bool Add ()
 
virtual bool Change ()
 
virtual bool Delete ()
 
virtual bool IsDataResolved ()
 
bool IsDelAckWaiting ()
 
bool IsAddChangeAckWaiting ()
 
struct ovsdb_idl_row * ovs_entry ()
 
OvsdbDBObjecttable ()
 
KSyncObjectGetObject () const
 
virtual void Ack (bool success)
 
void TriggerDeleteAdd ()
 
- Public Member Functions inherited from KSyncDBEntry
 KSyncDBEntry ()
 
 KSyncDBEntry (uint32_t index)
 
virtual ~KSyncDBEntry ()
 
virtual bool Sync (DBEntry *entry)=0
 
void SetDBEntry (DBEntry *db_entry)
 
DBEntryGetDBEntry ()
 
- Public Member Functions inherited from KSyncEntry
std::string StateString () const
 
std::string AckOperationString (KSyncEvent ack_event) const
 
std::string EventString (KSyncEvent event) const
 
 KSyncEntry ()
 
 KSyncEntry (uint32_t index)
 
virtual ~KSyncEntry ()
 
void Reset ()
 
void Reset (uint32_t index)
 
bool operator< (const KSyncEntry &rhs) const
 
virtual bool IsLess (const KSyncEntry &rhs) const =0
 
virtual std::string ToString () const =0
 
virtual KSyncEntryUnresolvedReference ()=0
 
virtual bool ShouldReEvalBackReference () const
 
bool IsResolved ()
 
virtual void Response ()
 
virtual void ErrorHandler (int err, uint32_t seqno, KSyncEvent event) const
 
virtual std::string VrouterError (uint32_t error) const
 
virtual bool pre_alloc_rx_buffer () const
 
virtual uint32_t GetTableIndex () const
 
size_t GetIndex () const
 
KSyncState GetState () const
 
bool del_add_pending () const
 
uint32_t GetRefCount () const
 
bool Seen () const
 
bool stale () const
 
void SetSeen ()
 
bool IsDeleted ()
 
bool IsActive ()
 
void set_del_add_pending (bool pending)
 
void RecordTransition (KSyncState from, KSyncState to, KSyncEvent event)
 
- Public Member Functions inherited from DBState
virtual ~DBState ()
 
- Public Member Functions inherited from OVSDB::OvsdbEntryBase
virtual void TxnDoneNoMessage ()
 
KSyncEntry::KSyncEvent ack_event ()
 

Protected Member Functions

virtual bool IsNoTxnEntry ()
 
virtual bool UseBulkTxn ()
 
- Protected Member Functions inherited from KSyncEntry
void SetIndex (size_t index)
 
void SetState (KSyncState state)
 

Protected Attributes

OvsdbDBObjecttable_
 
struct ovsdb_idl_row * ovs_entry_
 
- Protected Attributes inherited from OVSDB::OvsdbEntryBase
KSyncEntry::KSyncEvent ack_event_
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (OvsdbDBEntry)
 

Friends

class OvsdbDBObject
 

Additional Inherited Members

- Public Types inherited from KSyncDBEntry
typedef std::list< DBEntry * > DupEntryList
 
- Public Types inherited from KSyncEntry
enum  KSyncState {
  INIT, TEMP, ADD_DEFER, CHANGE_DEFER,
  IN_SYNC, SYNC_WAIT, NEED_SYNC, DEL_DEFER_SYNC,
  DEL_DEFER_REF, DEL_DEFER_DEL_ACK, DEL_ACK_WAIT, RENEW_WAIT,
  FREE_WAIT
}
 
enum  KSyncEvent {
  ADD_CHANGE_REQ, ADD_ACK, CHANGE_ACK, DEL_REQ,
  DEL_ADD_REQ, DEL_ACK, RE_EVAL, INT_PTR_REL,
  INVALID
}
 
typedef boost::intrusive_ptr
< KSyncEntry
KSyncEntryPtr
 
- Static Public Member Functions inherited from KSyncEntry
static std::string VrouterErrorToString (uint32_t error)
 
- Static Public Attributes inherited from KSyncEntry
static const size_t kInvalidIndex = 0xFFFFFFFF
 
static const int kDefaultMsgSize = 512
 

Detailed Description

Definition at line 59 of file ovsdb_entry.h.

Constructor & Destructor Documentation

OvsdbDBEntry::OvsdbDBEntry ( OvsdbDBObject table)

Definition at line 53 of file ovsdb_entry.cc.

OvsdbDBEntry::OvsdbDBEntry ( OvsdbDBObject table,
struct ovsdb_idl_row *  ovs_entry 
)

Definition at line 57 of file ovsdb_entry.cc.

OvsdbDBEntry::~OvsdbDBEntry ( )
virtual

Definition at line 61 of file ovsdb_entry.cc.

Member Function Documentation

void OvsdbDBEntry::Ack ( bool  success)
virtual

Implements OVSDB::OvsdbEntryBase.

Reimplemented in OVSDB::LogicalSwitchEntry, and OVSDB::UnicastMacRemoteEntry.

Definition at line 198 of file ovsdb_entry.cc.

Here is the call graph for this function:

bool OvsdbDBEntry::Add ( )
virtual

Implements KSyncEntry.

Reimplemented in OVSDB::HaStaleDevVnEntry, OVSDB::HaStaleL2RouteEntry, and OVSDB::VrfOvsdbEntry.

Definition at line 64 of file ovsdb_entry.cc.

Here is the call graph for this function:

virtual void OVSDB::OvsdbDBEntry::AddMsg ( struct ovsdb_idl_txn *  )
inlinevirtual
bool OVSDB::OvsdbDBEntry::AllowDeleteStateComp ( )
inlinevirtual

Reimplemented from KSyncEntry.

Definition at line 82 of file ovsdb_entry.h.

bool OvsdbDBEntry::Change ( )
virtual

Implements KSyncEntry.

Reimplemented in OVSDB::HaStaleDevVnEntry, OVSDB::HaStaleL2RouteEntry, and OVSDB::VrfOvsdbEntry.

Definition at line 97 of file ovsdb_entry.cc.

Here is the call graph for this function:

virtual void OVSDB::OvsdbDBEntry::ChangeMsg ( struct ovsdb_idl_txn *  )
inlinevirtual
bool OvsdbDBEntry::Delete ( )
virtual

Implements KSyncEntry.

Reimplemented in OVSDB::HaStaleDevVnEntry, OVSDB::HaStaleL2RouteEntry, and OVSDB::VrfOvsdbEntry.

Definition at line 130 of file ovsdb_entry.cc.

Here is the call graph for this function:

virtual void OVSDB::OvsdbDBEntry::DeleteMsg ( struct ovsdb_idl_txn *  )
inlinevirtual
OVSDB::OvsdbDBEntry::DISALLOW_COPY_AND_ASSIGN ( OvsdbDBEntry  )
private
KSyncObject * OvsdbDBEntry::GetObject ( ) const
virtual

Implements OVSDB::OvsdbEntryBase.

Definition at line 194 of file ovsdb_entry.cc.

bool OvsdbDBEntry::IsAddChangeAckWaiting ( )

Definition at line 173 of file ovsdb_entry.cc.

Here is the call graph for this function:

bool OvsdbDBEntry::IsDataResolved ( )
virtual

Reimplemented from KSyncEntry.

Reimplemented in OVSDB::HaStaleVnEntry, OVSDB::VMInterfaceKSyncEntry, and OVSDB::VnOvsdbEntry.

Definition at line 164 of file ovsdb_entry.cc.

bool OvsdbDBEntry::IsDelAckWaiting ( )

Definition at line 168 of file ovsdb_entry.cc.

Here is the call graph for this function:

virtual bool OVSDB::OvsdbDBEntry::IsNoTxnEntry ( )
inlineprotectedvirtual

Reimplemented in OVSDB::VrfOvsdbEntry, OVSDB::HaStaleVnEntry, and OVSDB::VlanPortBindingEntry.

Definition at line 105 of file ovsdb_entry.h.

void OvsdbDBEntry::NotifyAdd ( struct ovsdb_idl_row *  row)
virtual

Reimplemented in OVSDB::UnicastMacRemoteEntry.

Definition at line 179 of file ovsdb_entry.cc.

Here is the call graph for this function:

void OvsdbDBEntry::NotifyDelete ( struct ovsdb_idl_row *  row)
virtual

Reimplemented in OVSDB::LogicalSwitchEntry, and OVSDB::UnicastMacRemoteEntry.

Definition at line 190 of file ovsdb_entry.cc.

struct ovsdb_idl_row* OVSDB::OvsdbDBEntry::ovs_entry ( )
inline

Definition at line 94 of file ovsdb_entry.h.

virtual void OVSDB::OvsdbDBEntry::OvsdbChange ( )
inlinevirtual

Reimplemented in OVSDB::LogicalSwitchEntry, and OVSDB::UnicastMacRemoteEntry.

Definition at line 78 of file ovsdb_entry.h.

virtual void OVSDB::OvsdbDBEntry::PostDelete ( )
inlinevirtual

Reimplemented in OVSDB::UnicastMacRemoteEntry, and OVSDB::VlanPortBindingEntry.

Definition at line 70 of file ovsdb_entry.h.

virtual void OVSDB::OvsdbDBEntry::PreAddChange ( )
inlinevirtual

Reimplemented in OVSDB::UnicastMacRemoteEntry, and OVSDB::VlanPortBindingEntry.

Definition at line 66 of file ovsdb_entry.h.

virtual void OVSDB::OvsdbDBEntry::StaleTimerExpired ( )
inlinevirtual

Reimplemented from KSyncEntry.

Reimplemented in OVSDB::LogicalSwitchEntry.

Definition at line 80 of file ovsdb_entry.h.

OvsdbDBObject* OVSDB::OvsdbDBEntry::table ( )
inline

Definition at line 96 of file ovsdb_entry.h.

void OvsdbDBEntry::TriggerDeleteAdd ( )

Definition at line 247 of file ovsdb_entry.cc.

Here is the call graph for this function:

virtual bool OVSDB::OvsdbDBEntry::UseBulkTxn ( )
inlineprotectedvirtual

Reimplemented in OVSDB::UnicastMacRemoteEntry.

Definition at line 108 of file ovsdb_entry.h.

Friends And Related Function Documentation

friend class OvsdbDBObject
friend

Definition at line 114 of file ovsdb_entry.h.

Member Data Documentation

struct ovsdb_idl_row* OVSDB::OvsdbDBEntry::ovs_entry_
protected

Definition at line 111 of file ovsdb_entry.h.

OvsdbDBObject* OVSDB::OvsdbDBEntry::table_
protected

Definition at line 110 of file ovsdb_entry.h.


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