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

#include <tsn_elector.h>

Collaboration diagram for TsnElector:

Public Types

typedef std::vector< std::string > ManagedPhysicalDevicesList
 

Public Member Functions

 TsnElector (Agent *agent)
 
virtual ~TsnElector ()
 
void Register ()
 
void Shutdown ()
 
void Notify (DBTablePartBase *partition, DBEntryBase *e)
 
void RouteNotify (DBTablePartBase *partition, DBEntryBase *e)
 
bool IsMaster () const
 
const Agentagent () const
 
const std::vector< string > & active_tsn_servers () const
 
const ManagedPhysicalDevicesListManagedPhysicalDevices () const
 

Private Member Functions

bool IsTsnNoForwardingEnabled () const
 
TsnElectorWalkerwalker ()
 
 DISALLOW_COPY_AND_ASSIGN (TsnElector)
 

Private Attributes

const Agentagent_
 
DBTable::ListenerId vrf_listener_id_
 
std::vector< std::string > active_tsn_servers_
 
AgentRouteWalkerPtr walker_
 

Detailed Description

Definition at line 34 of file tsn_elector.h.

Member Typedef Documentation

typedef std::vector<std::string> TsnElector::ManagedPhysicalDevicesList

Definition at line 36 of file tsn_elector.h.

Constructor & Destructor Documentation

TsnElector::TsnElector ( Agent agent)

Definition at line 80 of file tsn_elector.cc.

Here is the call graph for this function:

TsnElector::~TsnElector ( )
virtual

Definition at line 87 of file tsn_elector.cc.

Member Function Documentation

const std::vector<string>& TsnElector::active_tsn_servers ( ) const
inline

Definition at line 46 of file tsn_elector.h.

const Agent* TsnElector::agent ( ) const
inline

Definition at line 45 of file tsn_elector.h.

TsnElector::DISALLOW_COPY_AND_ASSIGN ( TsnElector  )
private
bool TsnElector::IsMaster ( ) const

Definition at line 176 of file tsn_elector.cc.

Here is the call graph for this function:

bool TsnElector::IsTsnNoForwardingEnabled ( ) const
private

Definition at line 90 of file tsn_elector.cc.

Here is the call graph for this function:

const TsnElector::ManagedPhysicalDevicesList & TsnElector::ManagedPhysicalDevices ( ) const

Definition at line 183 of file tsn_elector.cc.

Here is the call graph for this function:

void TsnElector::Notify ( DBTablePartBase partition,
DBEntryBase e 
)

Definition at line 104 of file tsn_elector.cc.

Here is the call graph for this function:

void TsnElector::Register ( )

Definition at line 95 of file tsn_elector.cc.

Here is the call graph for this function:

void TsnElector::RouteNotify ( DBTablePartBase partition,
DBEntryBase e 
)

Definition at line 126 of file tsn_elector.cc.

Here is the call graph for this function:

void TsnElector::Shutdown ( )

Definition at line 167 of file tsn_elector.cc.

Here is the call graph for this function:

TsnElectorWalker* TsnElector::walker ( )
inlineprivate

Definition at line 53 of file tsn_elector.h.

Member Data Documentation

std::vector<std::string> TsnElector::active_tsn_servers_
private

Definition at line 59 of file tsn_elector.h.

const Agent* TsnElector::agent_
private

Definition at line 57 of file tsn_elector.h.

DBTable::ListenerId TsnElector::vrf_listener_id_
private

Definition at line 58 of file tsn_elector.h.

AgentRouteWalkerPtr TsnElector::walker_
private

Definition at line 60 of file tsn_elector.h.


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