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

#include <vm_interface_ksync.h>

Inheritance diagram for OVSDB::VMInterfaceKSyncEntry:
Collaboration diagram for OVSDB::VMInterfaceKSyncEntry:

Public Member Functions

 VMInterfaceKSyncEntry (VMInterfaceKSyncObject *table, const VMInterfaceKSyncEntry *key)
 
 VMInterfaceKSyncEntry (VMInterfaceKSyncObject *table, const VmInterface *entry)
 
 VMInterfaceKSyncEntry (VMInterfaceKSyncObject *table, boost::uuids::uuid uuid)
 
bool IsDataResolved ()
 
void AddMsg (struct ovsdb_idl_txn *)
 
void ChangeMsg (struct ovsdb_idl_txn *)
 
void DeleteMsg (struct ovsdb_idl_txn *)
 
bool Sync (DBEntry *)
 
bool IsLess (const KSyncEntry &) const
 
std::string ToString () const
 
KSyncEntryUnresolvedReference ()
 
const std::string & vn_name () const
 
- Public Member Functions inherited from OVSDB::OvsdbDBEntry
 OvsdbDBEntry (OvsdbDBObject *table)
 
 OvsdbDBEntry (OvsdbDBObject *table, struct ovsdb_idl_row *ovs_entry)
 
virtual ~OvsdbDBEntry ()
 
virtual void PreAddChange ()
 
virtual void PostDelete ()
 
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 ()
 
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 ()
 
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 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 ()
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (VMInterfaceKSyncEntry)
 

Private Attributes

boost::uuids::uuid uuid_
 
std::string vn_name_
 
SecurityGroupList sg_list_
 

Friends

class VMInterfaceKSyncObject
 

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
 
- Protected Member Functions inherited from OVSDB::OvsdbDBEntry
virtual bool IsNoTxnEntry ()
 
virtual bool UseBulkTxn ()
 
- Protected Member Functions inherited from KSyncEntry
void SetIndex (size_t index)
 
void SetState (KSyncState state)
 
- Protected Attributes inherited from OVSDB::OvsdbDBEntry
OvsdbDBObjecttable_
 
struct ovsdb_idl_row * ovs_entry_
 
- Protected Attributes inherited from OVSDB::OvsdbEntryBase
KSyncEntry::KSyncEvent ack_event_
 

Detailed Description

Definition at line 28 of file vm_interface_ksync.h.

Constructor & Destructor Documentation

VMInterfaceKSyncEntry::VMInterfaceKSyncEntry ( VMInterfaceKSyncObject table,
const VMInterfaceKSyncEntry key 
)

Definition at line 27 of file vm_interface_ksync.cc.

VMInterfaceKSyncEntry::VMInterfaceKSyncEntry ( VMInterfaceKSyncObject table,
const VmInterface entry 
)

Definition at line 22 of file vm_interface_ksync.cc.

VMInterfaceKSyncEntry::VMInterfaceKSyncEntry ( VMInterfaceKSyncObject table,
boost::uuids::uuid  uuid 
)

Definition at line 32 of file vm_interface_ksync.cc.

Member Function Documentation

void VMInterfaceKSyncEntry::AddMsg ( struct ovsdb_idl_txn *  txn)
virtual

Reimplemented from OVSDB::OvsdbDBEntry.

Definition at line 36 of file vm_interface_ksync.cc.

void VMInterfaceKSyncEntry::ChangeMsg ( struct ovsdb_idl_txn *  txn)
virtual

Reimplemented from OVSDB::OvsdbDBEntry.

Definition at line 39 of file vm_interface_ksync.cc.

void VMInterfaceKSyncEntry::DeleteMsg ( struct ovsdb_idl_txn *  txn)
virtual

Reimplemented from OVSDB::OvsdbDBEntry.

Definition at line 42 of file vm_interface_ksync.cc.

OVSDB::VMInterfaceKSyncEntry::DISALLOW_COPY_AND_ASSIGN ( VMInterfaceKSyncEntry  )
private
bool OVSDB::VMInterfaceKSyncEntry::IsDataResolved ( )
inlinevirtual

Reimplemented from OVSDB::OvsdbDBEntry.

Definition at line 39 of file vm_interface_ksync.h.

bool VMInterfaceKSyncEntry::IsLess ( const KSyncEntry entry) const
virtual

Implements KSyncEntry.

Definition at line 86 of file vm_interface_ksync.cc.

bool VMInterfaceKSyncEntry::Sync ( DBEntry db_entry)
virtual

Implements KSyncDBEntry.

Definition at line 45 of file vm_interface_ksync.cc.

Here is the call graph for this function:

std::string OVSDB::VMInterfaceKSyncEntry::ToString ( ) const
inlinevirtual

Implements KSyncEntry.

Definition at line 45 of file vm_interface_ksync.h.

KSyncEntry * VMInterfaceKSyncEntry::UnresolvedReference ( )
virtual

Implements KSyncEntry.

Definition at line 92 of file vm_interface_ksync.cc.

Here is the call graph for this function:

const std::string & VMInterfaceKSyncEntry::vn_name ( ) const

Definition at line 99 of file vm_interface_ksync.cc.

Friends And Related Function Documentation

friend class VMInterfaceKSyncObject
friend

Definition at line 51 of file vm_interface_ksync.h.

Member Data Documentation

SecurityGroupList OVSDB::VMInterfaceKSyncEntry::sg_list_
private

Definition at line 54 of file vm_interface_ksync.h.

boost::uuids::uuid OVSDB::VMInterfaceKSyncEntry::uuid_
private

Definition at line 52 of file vm_interface_ksync.h.

std::string OVSDB::VMInterfaceKSyncEntry::vn_name_
private

Definition at line 53 of file vm_interface_ksync.h.


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