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

#include <flow_mgmt_dbclient.h>

Collaboration diagram for FlowMgmtDbClient:

Classes

struct  AclFlowHandlerState
 
struct  FlowMgmtState
 
struct  NhFlowHandlerState
 
struct  RouteFlowHandlerState
 
struct  VmIntfFlowHandlerState
 
struct  VnFlowHandlerState
 
struct  VrfFlowHandlerState
 

Public Member Functions

 FlowMgmtDbClient (Agent *agent, FlowMgmtManager *mgr)
 
virtual ~FlowMgmtDbClient ()
 
void Init ()
 
void Shutdown ()
 
bool FreeDBState (const DBEntry *entry, uint32_t gen_id)
 
void FreeVrfState (VrfEntry *vrf, uint32_t gen_id)
 

Private Member Functions

void AddEvent (const DBEntry *entry, FlowMgmtState *state)
 
void DeleteEvent (const DBEntry *entry, FlowMgmtState *state)
 
void DeleteAllFlow (const DBEntry *entry, FlowMgmtState *state)
 
void ChangeEvent (const DBEntry *entry, FlowMgmtState *state)
 
void RouteNHChangeEvent (const DBEntry *entry, FlowMgmtState *state)
 
void FreeInterfaceState (Interface *intf, uint32_t gen_id)
 
void InterfaceNotify (DBTablePartBase *part, DBEntryBase *e)
 
void FreeVnState (VnEntry *vn, uint32_t gen_id)
 
void VnNotify (DBTablePartBase *part, DBEntryBase *e)
 
void FreeAclState (AclDBEntry *acl, uint32_t gen_id)
 
void AclNotify (DBTablePartBase *part, DBEntryBase *e)
 
void FreeNhState (NextHop *nh, uint32_t gen_id)
 
void NhNotify (DBTablePartBase *part, DBEntryBase *e)
 
void VrfNotify (DBTablePartBase *part, DBEntryBase *e)
 
void TraceMsg (AgentRoute *entry, const AgentPath *path, const SecurityGroupList &sg_list, bool deleted)
 
void FreeRouteState (AgentRoute *route, uint32_t gen_id)
 
void RouteNotify (VrfFlowHandlerState *vrf_state, Agent::RouteTableType type, DBTablePartBase *partition, DBEntryBase *e)
 
bool HandleTrackingIpChange (const AgentRoute *rt, RouteFlowHandlerState *state)
 
 DISALLOW_COPY_AND_ASSIGN (FlowMgmtDbClient)
 

Private Attributes

Agentagent_
 
FlowMgmtManagermgr_
 
DBTableBase::ListenerId acl_listener_id_
 
DBTableBase::ListenerId interface_listener_id_
 
DBTableBase::ListenerId vn_listener_id_
 
DBTableBase::ListenerId vm_listener_id_
 
DBTableBase::ListenerId vrf_listener_id_
 
DBTableBase::ListenerId nh_listener_id_
 

Friends

class FlowMgmtRouteTest
 

Detailed Description

Definition at line 13 of file flow_mgmt_dbclient.h.

Constructor & Destructor Documentation

FlowMgmtDbClient::FlowMgmtDbClient ( Agent agent,
FlowMgmtManager mgr 
)

Definition at line 34 of file flow_mgmt_dbclient.cc.

FlowMgmtDbClient::~FlowMgmtDbClient ( )
virtual

Definition at line 45 of file flow_mgmt_dbclient.cc.

Member Function Documentation

void FlowMgmtDbClient::AclNotify ( DBTablePartBase part,
DBEntryBase e 
)
private

Definition at line 294 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::AddEvent ( const DBEntry entry,
FlowMgmtState state 
)
private

Definition at line 48 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::ChangeEvent ( const DBEntry entry,
FlowMgmtState state 
)
private

Definition at line 63 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::DeleteAllFlow ( const DBEntry entry,
FlowMgmtState state 
)
private

Definition at line 58 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::DeleteEvent ( const DBEntry entry,
FlowMgmtState state 
)
private

Definition at line 52 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

FlowMgmtDbClient::DISALLOW_COPY_AND_ASSIGN ( FlowMgmtDbClient  )
private
void FlowMgmtDbClient::FreeAclState ( AclDBEntry acl,
uint32_t  gen_id 
)
private

Definition at line 284 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

bool FlowMgmtDbClient::FreeDBState ( const DBEntry entry,
uint32_t  gen_id 
)

Definition at line 762 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::FreeInterfaceState ( Interface intf,
uint32_t  gen_id 
)
private

Definition at line 93 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::FreeNhState ( NextHop nh,
uint32_t  gen_id 
)
private

Definition at line 317 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::FreeRouteState ( AgentRoute route,
uint32_t  gen_id 
)
private

Definition at line 553 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::FreeVnState ( VnEntry vn,
uint32_t  gen_id 
)
private

Definition at line 208 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::FreeVrfState ( VrfEntry vrf,
uint32_t  gen_id 
)

Definition at line 384 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

bool FlowMgmtDbClient::HandleTrackingIpChange ( const AgentRoute rt,
RouteFlowHandlerState state 
)
private

Definition at line 583 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::Init ( )

Definition at line 7 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::InterfaceNotify ( DBTablePartBase part,
DBEntryBase e 
)
private

Definition at line 107 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::NhNotify ( DBTablePartBase part,
DBEntryBase e 
)
private

Definition at line 327 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::RouteNHChangeEvent ( const DBEntry entry,
FlowMgmtState state 
)
private

Definition at line 67 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::RouteNotify ( VrfFlowHandlerState vrf_state,
Agent::RouteTableType  type,
DBTablePartBase partition,
DBEntryBase e 
)
private

Definition at line 639 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::Shutdown ( )

Definition at line 25 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::TraceMsg ( AgentRoute entry,
const AgentPath path,
const SecurityGroupList sg_list,
bool  deleted 
)
private

Definition at line 520 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::VnNotify ( DBTablePartBase part,
DBEntryBase e 
)
private

Definition at line 218 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

void FlowMgmtDbClient::VrfNotify ( DBTablePartBase part,
DBEntryBase e 
)
private

Definition at line 496 of file flow_mgmt_dbclient.cc.

Here is the call graph for this function:

Friends And Related Function Documentation

friend class FlowMgmtRouteTest
friend

Definition at line 120 of file flow_mgmt_dbclient.h.

Member Data Documentation

DBTableBase::ListenerId FlowMgmtDbClient::acl_listener_id_
private

Definition at line 151 of file flow_mgmt_dbclient.h.

Agent* FlowMgmtDbClient::agent_
private

Definition at line 148 of file flow_mgmt_dbclient.h.

DBTableBase::ListenerId FlowMgmtDbClient::interface_listener_id_
private

Definition at line 152 of file flow_mgmt_dbclient.h.

FlowMgmtManager* FlowMgmtDbClient::mgr_
private

Definition at line 149 of file flow_mgmt_dbclient.h.

DBTableBase::ListenerId FlowMgmtDbClient::nh_listener_id_
private

Definition at line 156 of file flow_mgmt_dbclient.h.

DBTableBase::ListenerId FlowMgmtDbClient::vm_listener_id_
private

Definition at line 154 of file flow_mgmt_dbclient.h.

DBTableBase::ListenerId FlowMgmtDbClient::vn_listener_id_
private

Definition at line 153 of file flow_mgmt_dbclient.h.

DBTableBase::ListenerId FlowMgmtDbClient::vrf_listener_id_
private

Definition at line 155 of file flow_mgmt_dbclient.h.


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