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

#include <tsn_elector.h>

Inheritance diagram for TsnElectorWalker:
Collaboration diagram for TsnElectorWalker:

Public Member Functions

 TsnElectorWalker (const std::string &name, Agent *agent)
 
virtual ~TsnElectorWalker ()
 
void LeaveTsnMastership ()
 
void AcquireTsnMastership ()
 
virtual bool RouteWalkNotify (DBTablePartBase *partition, DBEntryBase *e)
 
- Public Member Functions inherited from AgentRouteWalker
virtual ~AgentRouteWalker ()
 
void StartVrfWalk ()
 
void StartRouteWalk (VrfEntry *vrf)
 
virtual bool VrfWalkNotify (DBTablePartBase *partition, DBEntryBase *e)
 
virtual void VrfWalkDone (DBTableBase *part)
 
virtual void RouteWalkDone (DBTableBase *part)
 
void WalkDoneCallback (WalkDone cb)
 
void RouteWalkDoneForVrfCallback (RouteWalkDoneCb cb)
 
int walk_count () const
 
bool IsWalkCompleted () const
 
bool IsValidDeleteWalkRef () const
 
bool IsValidVrfWalkRef () const
 
bool IsDeregisterDone () const
 
bool AreAllWalksDone () const
 
bool AreAllRouteWalksDone (const VrfEntry *vrf) const
 
bool IsRouteTableWalkCompleted (RouteWalkerDBState *state)
 
AgentRouteWalkerManagermgr ()
 
Agentagent () const
 
uint32_t refcount () const
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (TsnElectorWalker)
 

Private Attributes

bool master_
 

Additional Inherited Members

- Public Types inherited from AgentRouteWalker
typedef boost::function< void()> WalkDone
 
typedef boost::function< void(VrfEntry *)> RouteWalkDoneCb
 
typedef std::map< const
VrfEntry *, tbb::atomic< int > > 
VrfRouteWalkCountMap
 
- Static Public Attributes inherited from AgentRouteWalker
static const int kInvalidWalkCount = 0
 
- Protected Member Functions inherited from AgentRouteWalker
 AgentRouteWalker (const std::string &name, Agent *agent)
 
void set_mgr (AgentRouteWalkerManager *mgr)
 

Detailed Description

Definition at line 20 of file tsn_elector.h.

Constructor & Destructor Documentation

TsnElectorWalker::TsnElectorWalker ( const std::string &  name,
Agent agent 
)

Definition at line 33 of file tsn_elector.cc.

TsnElectorWalker::~TsnElectorWalker ( )
virtual

Definition at line 37 of file tsn_elector.cc.

Member Function Documentation

void TsnElectorWalker::AcquireTsnMastership ( )

Definition at line 75 of file tsn_elector.cc.

Here is the call graph for this function:

TsnElectorWalker::DISALLOW_COPY_AND_ASSIGN ( TsnElectorWalker  )
private
void TsnElectorWalker::LeaveTsnMastership ( )

Definition at line 70 of file tsn_elector.cc.

Here is the call graph for this function:

bool TsnElectorWalker::RouteWalkNotify ( DBTablePartBase partition,
DBEntryBase e 
)
virtual

Reimplemented from AgentRouteWalker.

Definition at line 40 of file tsn_elector.cc.

Here is the call graph for this function:

Member Data Documentation

bool TsnElectorWalker::master_
private

Definition at line 30 of file tsn_elector.h.


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