OpenSDN source code
KSyncVxlanBridgeEntry Class Referenceabstract

#include <ksync_vxlan_bridge.h>

Inheritance diagram for KSyncVxlanBridgeEntry:
Collaboration diagram for KSyncVxlanBridgeEntry:

Public Member Functions

 KSyncVxlanBridgeEntry (KSyncVxlanBridgeObject *obj, const KSyncVxlanBridgeEntry *entry)
 
 KSyncVxlanBridgeEntry (KSyncVxlanBridgeObject *obj, const VxLanId *vxlan)
 
 ~KSyncVxlanBridgeEntry ()
 
KSyncDBObjectGetObject () const
 
virtual std::string ToString () const
 
virtual bool Sync (DBEntry *e)
 
virtual bool IsLess (const KSyncEntry &rhs) const
 
virtual KSyncEntryUnresolvedReference ()
 
virtual bool Add ()=0
 
virtual bool Change ()
 
virtual bool Delete ()=0
 
uint32_t vxlan_id () const
 
- 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 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 DBState
virtual ~DBState ()
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (KSyncVxlanBridgeEntry)
 

Private Attributes

uint32_t vxlan_id_
 
KSyncVxlanBridgeObjectksync_obj_
 

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< 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 40 of file ksync_vxlan_bridge.h.

Constructor & Destructor Documentation

◆ KSyncVxlanBridgeEntry() [1/2]

KSyncVxlanBridgeEntry::KSyncVxlanBridgeEntry ( KSyncVxlanBridgeObject obj,
const KSyncVxlanBridgeEntry entry 
)

Definition at line 31 of file ksync_vxlan_bridge.cc.

◆ KSyncVxlanBridgeEntry() [2/2]

KSyncVxlanBridgeEntry::KSyncVxlanBridgeEntry ( KSyncVxlanBridgeObject obj,
const VxLanId vxlan 
)

Definition at line 36 of file ksync_vxlan_bridge.cc.

◆ ~KSyncVxlanBridgeEntry()

KSyncVxlanBridgeEntry::~KSyncVxlanBridgeEntry ( )

Definition at line 41 of file ksync_vxlan_bridge.cc.

Member Function Documentation

◆ Add()

virtual bool KSyncVxlanBridgeEntry::Add ( )
pure virtual

Implements KSyncEntry.

Implemented in KSyncLinuxBridgeEntry.

◆ Change()

virtual bool KSyncVxlanBridgeEntry::Change ( )
inlinevirtual

Implements KSyncEntry.

Definition at line 59 of file ksync_vxlan_bridge.h.

◆ Delete()

virtual bool KSyncVxlanBridgeEntry::Delete ( )
pure virtual

Implements KSyncEntry.

Implemented in KSyncLinuxBridgeEntry.

◆ DISALLOW_COPY_AND_ASSIGN()

KSyncVxlanBridgeEntry::DISALLOW_COPY_AND_ASSIGN ( KSyncVxlanBridgeEntry  )
private

◆ GetObject()

KSyncDBObject * KSyncVxlanBridgeEntry::GetObject ( ) const
virtual

Implements KSyncEntry.

Definition at line 44 of file ksync_vxlan_bridge.cc.

◆ IsLess()

bool KSyncVxlanBridgeEntry::IsLess ( const KSyncEntry rhs) const
virtual

Implements KSyncEntry.

Definition at line 48 of file ksync_vxlan_bridge.cc.

◆ Sync()

bool KSyncVxlanBridgeEntry::Sync ( DBEntry e)
virtual

Implements KSyncDBEntry.

Definition at line 60 of file ksync_vxlan_bridge.cc.

◆ ToString()

std::string KSyncVxlanBridgeEntry::ToString ( ) const
virtual

Implements KSyncEntry.

Definition at line 54 of file ksync_vxlan_bridge.cc.

◆ UnresolvedReference()

KSyncEntry * KSyncVxlanBridgeEntry::UnresolvedReference ( )
virtual

Implements KSyncEntry.

Definition at line 64 of file ksync_vxlan_bridge.cc.

◆ vxlan_id()

uint32_t KSyncVxlanBridgeEntry::vxlan_id ( ) const
inline

Definition at line 66 of file ksync_vxlan_bridge.h.

Member Data Documentation

◆ ksync_obj_

KSyncVxlanBridgeObject* KSyncVxlanBridgeEntry::ksync_obj_
private

Definition at line 69 of file ksync_vxlan_bridge.h.

◆ vxlan_id_

uint32_t KSyncVxlanBridgeEntry::vxlan_id_
private

Definition at line 68 of file ksync_vxlan_bridge.h.


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