OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AgentSandesh Class Referenceabstract

#include <agent_sandesh.h>

Inheritance diagram for AgentSandesh:
Collaboration diagram for AgentSandesh:

Public Member Functions

 AgentSandesh (const std::string &context, const std::string &name)
 
 AgentSandesh (const std::string &context)
 
virtual ~AgentSandesh ()
 
virtual bool Filter (const DBEntryBase *entry)
 
virtual bool FilterToArgs (AgentSandeshArguments *args)
 
std::string context () const
 
void DoSandeshInternal (AgentSandeshPtr sandesh, int start, int count)
 
void MakeSandeshPageReq (PageReqData *req, DBTable *table, int first, int last, int end, int count, int page_size)
 

Static Public Member Functions

static void DoSandesh (AgentSandeshPtr sandesh, int start, int count)
 
static void DoSandesh (AgentSandeshPtr sandesh)
 

Static Public Attributes

static const uint8_t entries_per_sandesh = 100
 
static const uint16_t kEntriesPerPage = 100
 

Protected Attributes

std::string name_
 
SandeshResponseresp_
 

Private Member Functions

bool EntrySandesh (DBEntryBase *entry, int first, int last)
 
void SandeshDone (AgentSandeshPtr ptr, int first, int page_size, DBTable::DBTableWalkRef walk_ref, DBTableBase *partition)
 
void SetResp ()
 
virtual DBTableAgentGetTable ()=0
 
virtual void Alloc ()=0
 
virtual bool UpdateResp (DBEntryBase *entry)
 
 DISALLOW_COPY_AND_ASSIGN (AgentSandesh)
 

Private Attributes

int count_
 
int total_entries_
 
std::string context_
 
DBTableWalker::WalkId walkid_
 

Detailed Description

Definition at line 88 of file agent_sandesh.h.

Constructor & Destructor Documentation

AgentSandesh::AgentSandesh ( const std::string &  context,
const std::string &  name 
)
inline

Definition at line 92 of file agent_sandesh.h.

AgentSandesh::AgentSandesh ( const std::string &  context)
inline

Definition at line 96 of file agent_sandesh.h.

virtual AgentSandesh::~AgentSandesh ( )
inlinevirtual

Definition at line 101 of file agent_sandesh.h.

Member Function Documentation

std::string AgentSandesh::context ( ) const
inline

Definition at line 111 of file agent_sandesh.h.

AgentSandesh::DISALLOW_COPY_AND_ASSIGN ( AgentSandesh  )
private
void AgentSandesh::DoSandesh ( AgentSandeshPtr  sandesh,
int  start,
int  count 
)
static

Definition at line 987 of file agent_sandesh.cc.

void AgentSandesh::DoSandesh ( AgentSandeshPtr  sandesh)
static

Definition at line 991 of file agent_sandesh.cc.

Here is the call graph for this function:

void AgentSandesh::DoSandeshInternal ( AgentSandeshPtr  sandesh,
int  start,
int  count 
)

Definition at line 963 of file agent_sandesh.cc.

Here is the call graph for this function:

bool AgentSandesh::EntrySandesh ( DBEntryBase entry,
int  first,
int  last 
)
private

Definition at line 1005 of file agent_sandesh.cc.

Here is the call graph for this function:

void AgentSandesh::MakeSandeshPageReq ( PageReqData *  req,
DBTable table,
int  first,
int  last,
int  end,
int  count,
int  page_size 
)

Definition at line 877 of file agent_sandesh.cc.

Here is the call graph for this function:

void AgentSandesh::SandeshDone ( AgentSandeshPtr  ptr,
int  first,
int  page_size,
DBTable::DBTableWalkRef  walk_ref,
DBTableBase partition 
)
private

Definition at line 1027 of file agent_sandesh.cc.

Here is the call graph for this function:

void AgentSandesh::SetResp ( )
private

Definition at line 995 of file agent_sandesh.cc.

Here is the call graph for this function:

Member Data Documentation

std::string AgentSandesh::context_
private

Definition at line 134 of file agent_sandesh.h.

int AgentSandesh::count_
private

Definition at line 132 of file agent_sandesh.h.

const uint8_t AgentSandesh::entries_per_sandesh = 100
static

Definition at line 90 of file agent_sandesh.h.

const uint16_t AgentSandesh::kEntriesPerPage = 100
static

Definition at line 91 of file agent_sandesh.h.

std::string AgentSandesh::name_
protected

Definition at line 120 of file agent_sandesh.h.

SandeshResponse* AgentSandesh::resp_
protected

Definition at line 121 of file agent_sandesh.h.

int AgentSandesh::total_entries_
private

Definition at line 133 of file agent_sandesh.h.

DBTableWalker::WalkId AgentSandesh::walkid_
private

Definition at line 135 of file agent_sandesh.h.


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