OpenSDN source code
OVSDB::OvsdbEntry Class Reference

#include <ovsdb_entry.h>

Inheritance diagram for OVSDB::OvsdbEntry:
Collaboration diagram for OVSDB::OvsdbEntry:

Public Member Functions

 OvsdbEntry (OvsdbObject *table)
 
 OvsdbEntry (OvsdbObject *table, uint32_t index)
 
virtual ~OvsdbEntry ()
 
virtual bool Add ()
 
virtual bool Change ()
 
virtual bool Delete ()
 
struct ovsdb_idl_row * ovs_entry ()
 
KSyncObjectGetObject () const
 
void Ack (bool success)
 
- 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 bool IsDataResolved ()
 
virtual void Response ()
 
virtual bool AllowDeleteStateComp ()
 
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
 
virtual void StaleTimerExpired ()
 
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 OVSDB::OvsdbEntryBase
virtual void TxnDoneNoMessage ()
 
KSyncEntry::KSyncEvent ack_event ()
 

Protected Attributes

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

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (OvsdbEntry)
 

Additional Inherited Members

- 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< KSyncEntryKSyncEntryPtr
 
- 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
 
- Protected Member Functions inherited from KSyncEntry
void SetIndex (size_t index)
 
void SetState (KSyncState state)
 

Detailed Description

Definition at line 37 of file ovsdb_entry.h.

Constructor & Destructor Documentation

◆ OvsdbEntry() [1/2]

OvsdbEntry::OvsdbEntry ( OvsdbObject table)

Definition at line 16 of file ovsdb_entry.cc.

◆ OvsdbEntry() [2/2]

OvsdbEntry::OvsdbEntry ( OvsdbObject table,
uint32_t  index 
)

Definition at line 20 of file ovsdb_entry.cc.

◆ ~OvsdbEntry()

OvsdbEntry::~OvsdbEntry ( )
virtual

Definition at line 24 of file ovsdb_entry.cc.

Member Function Documentation

◆ Ack()

void OvsdbEntry::Ack ( bool  success)
virtual

Implements OVSDB::OvsdbEntryBase.

Definition at line 43 of file ovsdb_entry.cc.

Here is the call graph for this function:

◆ Add()

bool OvsdbEntry::Add ( )
virtual

◆ Change()

bool OvsdbEntry::Change ( )
virtual

Implements KSyncEntry.

Reimplemented in OVSDB::PhysicalPortEntry, and OVSDB::MulticastMacLocalEntry.

Definition at line 31 of file ovsdb_entry.cc.

◆ Delete()

bool OvsdbEntry::Delete ( )
virtual

◆ DISALLOW_COPY_AND_ASSIGN()

OVSDB::OvsdbEntry::DISALLOW_COPY_AND_ASSIGN ( OvsdbEntry  )
private

◆ GetObject()

KSyncObject * OvsdbEntry::GetObject ( ) const
virtual

Implements KSyncEntry.

Definition at line 39 of file ovsdb_entry.cc.

◆ ovs_entry()

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

Definition at line 47 of file ovsdb_entry.h.

Member Data Documentation

◆ ovs_entry_

struct ovsdb_idl_row* OVSDB::OvsdbEntry::ovs_entry_
protected

Definition at line 53 of file ovsdb_entry.h.

◆ table_

OvsdbObject* OVSDB::OvsdbEntry::table_
protected

Definition at line 52 of file ovsdb_entry.h.


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