OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ksync_object.cc File Reference
#include <sys/socket.h>
#include <sys/types.h>
#include <boost/bind.hpp>
#include <boost/assign/list_of.hpp>
#include <base/logging.h>
#include <db/db.h>
#include <db/db_entry.h>
#include <db/db_table.h>
#include <db/db_table_partition.h>
#include <sandesh/sandesh_trace.h>
#include "ksync_index.h"
#include "ksync_entry.h"
#include "ksync_object.h"
#include "ksync_types.h"
Include dependency graph for ksync_object.cc:

Go to the source code of this file.

Classes

class  KSyncDummyEntry
 

Typedefs

typedef std::map< uint32_t,
std::string > 
VrouterErrorDescriptionMap
 

Functions

SandeshTraceBufferPtr KSyncErrorTraceBuf (SandeshTraceBufferCreate("KSync Error", 5000))
 
void TestTriggerStaleEntryCleanupCb (KSyncObject *obj)
 
void intrusive_ptr_add_ref (KSyncEntry *p)
 
void intrusive_ptr_release (KSyncEntry *p)
 
KSyncEntry::KSyncState KSyncSM_Add (KSyncObject *obj, KSyncEntry *entry)
 
KSyncEntry::KSyncState KSyncSM_Change (KSyncObject *obj, KSyncEntry *entry)
 
KSyncEntry::KSyncState KSyncSM_Delete (KSyncEntry *entry)
 
KSyncEntry::KSyncState KSyncSM_DeleteAdd (KSyncObject *obj, KSyncEntry *entry)
 
KSyncEntry::KSyncState KSyncSM_Init (KSyncObject *obj, KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 
KSyncEntry::KSyncState KSyncSM_Temp (KSyncObject *obj, KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 
KSyncEntry::KSyncState KSyncSM_AddDefer (KSyncObject *obj, KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 
KSyncEntry::KSyncState KSyncSM_ChangeDefer (KSyncObject *obj, KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 
KSyncEntry::KSyncState KSyncSM_InSync (KSyncObject *obj, KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 
KSyncEntry::KSyncState KSyncSM_SyncWait (KSyncObject *obj, KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 
KSyncEntry::KSyncState KSyncSM_NeedSync (KSyncObject *obj, KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 
KSyncEntry::KSyncState KSyncSM_DelPending_Sync (KSyncObject *obj, KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 
KSyncEntry::KSyncState KSyncSM_DelPending_Ref (KSyncObject *obj, KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 
KSyncEntry::KSyncState KSyncSM_DelPending_DelAck (KSyncObject *obj, KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 
KSyncEntry::KSyncState KSyncSM_DelAckWait (KSyncObject *obj, KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 
KSyncEntry::KSyncState KSyncSM_RenewWait (KSyncObject *obj, KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 

Variables

VrouterErrorDescriptionMap g_error_description
 

Typedef Documentation

typedef std::map<uint32_t, std::string> VrouterErrorDescriptionMap

Definition at line 37 of file ksync_object.cc.

Function Documentation

void intrusive_ptr_add_ref ( KSyncEntry p)

Definition at line 670 of file ksync_object.cc.

void intrusive_ptr_release ( KSyncEntry p)

Definition at line 678 of file ksync_object.cc.

Here is the call graph for this function:

SandeshTraceBufferPtr KSyncErrorTraceBuf ( SandeshTraceBufferCreate("KSync Error", 5000)  )
KSyncEntry::KSyncState KSyncSM_Add ( KSyncObject obj,
KSyncEntry entry 
)

Definition at line 746 of file ksync_object.cc.

Here is the call graph for this function:

KSyncEntry::KSyncState KSyncSM_AddDefer ( KSyncObject obj,
KSyncEntry entry,
KSyncEntry::KSyncEvent  event 
)

Definition at line 904 of file ksync_object.cc.

Here is the call graph for this function:

KSyncEntry::KSyncState KSyncSM_Change ( KSyncObject obj,
KSyncEntry entry 
)

Definition at line 763 of file ksync_object.cc.

Here is the call graph for this function:

KSyncEntry::KSyncState KSyncSM_ChangeDefer ( KSyncObject obj,
KSyncEntry entry,
KSyncEntry::KSyncEvent  event 
)

Definition at line 960 of file ksync_object.cc.

Here is the call graph for this function:

KSyncEntry::KSyncState KSyncSM_DelAckWait ( KSyncObject obj,
KSyncEntry entry,
KSyncEntry::KSyncEvent  event 
)

Definition at line 1243 of file ksync_object.cc.

Here is the call graph for this function:

KSyncEntry::KSyncState KSyncSM_Delete ( KSyncEntry entry)

Definition at line 785 of file ksync_object.cc.

Here is the call graph for this function:

KSyncEntry::KSyncState KSyncSM_DeleteAdd ( KSyncObject obj,
KSyncEntry entry 
)

Definition at line 806 of file ksync_object.cc.

Here is the call graph for this function:

KSyncEntry::KSyncState KSyncSM_DelPending_DelAck ( KSyncObject obj,
KSyncEntry entry,
KSyncEntry::KSyncEvent  event 
)

Definition at line 1200 of file ksync_object.cc.

Here is the call graph for this function:

KSyncEntry::KSyncState KSyncSM_DelPending_Ref ( KSyncObject obj,
KSyncEntry entry,
KSyncEntry::KSyncEvent  event 
)

Definition at line 1163 of file ksync_object.cc.

Here is the call graph for this function:

KSyncEntry::KSyncState KSyncSM_DelPending_Sync ( KSyncObject obj,
KSyncEntry entry,
KSyncEntry::KSyncEvent  event 
)

Definition at line 1126 of file ksync_object.cc.

Here is the call graph for this function:

KSyncEntry::KSyncState KSyncSM_Init ( KSyncObject obj,
KSyncEntry entry,
KSyncEntry::KSyncEvent  event 
)

Definition at line 831 of file ksync_object.cc.

Here is the call graph for this function:

KSyncEntry::KSyncState KSyncSM_InSync ( KSyncObject obj,
KSyncEntry entry,
KSyncEntry::KSyncEvent  event 
)

Definition at line 1002 of file ksync_object.cc.

Here is the call graph for this function:

KSyncEntry::KSyncState KSyncSM_NeedSync ( KSyncObject obj,
KSyncEntry entry,
KSyncEntry::KSyncEvent  event 
)

Definition at line 1078 of file ksync_object.cc.

Here is the call graph for this function:

KSyncEntry::KSyncState KSyncSM_RenewWait ( KSyncObject obj,
KSyncEntry entry,
KSyncEntry::KSyncEvent  event 
)

Definition at line 1286 of file ksync_object.cc.

Here is the call graph for this function:

KSyncEntry::KSyncState KSyncSM_SyncWait ( KSyncObject obj,
KSyncEntry entry,
KSyncEntry::KSyncEvent  event 
)

Definition at line 1034 of file ksync_object.cc.

Here is the call graph for this function:

KSyncEntry::KSyncState KSyncSM_Temp ( KSyncObject obj,
KSyncEntry entry,
KSyncEntry::KSyncEvent  event 
)

Definition at line 865 of file ksync_object.cc.

Here is the call graph for this function:

void TestTriggerStaleEntryCleanupCb ( KSyncObject obj)

Definition at line 51 of file ksync_object.cc.

Here is the call graph for this function:

Variable Documentation

VrouterErrorDescriptionMap g_error_description
Initial value:
=
boost::assign::map_list_of<uint32_t, std::string>
(ENOENT, "Entry not present")
(EBADF, "Key mismatch")
(ENOMEM, "Memory insufficient")
(EBUSY, "Object cannot be modified")
(EEXIST, "Object already present")
(ENODEV, "Object not present")
(EINVAL, "Invalid object parameters")
(ENOSPC, "Object table full")

Definition at line 38 of file ksync_object.cc.