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

#include <kstate.h>

Inheritance diagram for KState:
Collaboration diagram for KState:

Public Member Functions

 KState (const std::string &s, Sandesh *obj)
 
void EncodeAndSend (Sandesh &encoder)
 
virtual void SendResponse ()=0
 
virtual void SendNextRequest ()=0
 
virtual void Handler ()=0
 
virtual void Release ()
 
const std::string response_context () const
 
Sandeshresponse_object () const
 
const boost::any & more_context () const
 
void set_vr_response_code (int value)
 
bool MoreData () const
 
const std::string MacToString (const std::vector< signed char > &mac) const
 
virtual void IfMsgHandler (vr_interface_req *req)
 
virtual void NHMsgHandler (vr_nexthop_req *req)
 
virtual void RouteMsgHandler (vr_route_req *req)
 
virtual void MplsMsgHandler (vr_mpls_req *req)
 
virtual void MirrorMsgHandler (vr_mirror_req *req)
 
virtual int VrResponseMsgHandler (vr_response *r)
 
virtual void FlowMsgHandler (vr_flow_req *req)
 
virtual void VrfAssignMsgHandler (vr_vrf_assign_req *req)
 
virtual void VrfMsgHandler (vr_vrf_req *req)
 
virtual void VrfStatsMsgHandler (vr_vrf_stats_req *req)
 
virtual void DropStatsMsgHandler (vr_drop_stats_req *req)
 
virtual void VxLanMsgHandler (vr_vxlan_req *req)
 
virtual void VrouterOpsMsgHandler (vrouter_ops *req)
 
virtual void ForwardingClassMsgHandler (vr_fc_map_req *req)
 
virtual void QosConfigMsgHandler (vr_qos_map_req *req)
 
- Public Member Functions inherited from AgentSandeshContext
 AgentSandeshContext ()
 
virtual ~AgentSandeshContext ()
 
virtual void FlowResponseHandler (vr_flow_response *req)
 
virtual void FlowTableInfoHandler (vr_flow_table_data *r)
 
virtual void BridgeTableInfoHandler (vr_bridge_table_data *r)
 
virtual void VrouterHugePageHandler (vr_hugepage_config *req)
 
virtual void SetErrno (int err)
 
int GetErrno () const
 
void set_ksync_io_ctx (const KSyncIoContext *ioc)
 
const KSyncIoContextksync_io_ctx () const
 
- Public Member Functions inherited from SandeshContext
virtual ~SandeshContext ()
 

Static Public Attributes

static const int kMaxEntriesPerResponse = 100
 

Protected Attributes

std::string response_context_
 
Sandeshresponse_object_
 
int vr_response_code_
 
boost::any more_context_
 

Private Member Functions

void UpdateContext (const boost::any &)
 
const std::string PrefixToString (const std::vector< int8_t > &prefix)
 

Additional Inherited Members

- Protected Member Functions inherited from SandeshContext
 SandeshContext ()
 

Detailed Description

Definition at line 24 of file kstate.h.

Constructor & Destructor Documentation

KState::KState ( const std::string &  s,
Sandesh obj 
)
inline

Definition at line 27 of file kstate.h.

Member Function Documentation

void KState::DropStatsMsgHandler ( vr_drop_stats_req *  req)
virtual

Implements AgentSandeshContext.

Definition at line 527 of file kstate.cc.

Here is the call graph for this function:

void KState::EncodeAndSend ( Sandesh encoder)

Definition at line 63 of file kstate.cc.

Here is the call graph for this function:

virtual void KState::FlowMsgHandler ( vr_flow_req *  req)
inlinevirtual

Implements AgentSandeshContext.

Definition at line 53 of file kstate.h.

void KState::ForwardingClassMsgHandler ( vr_fc_map_req *  req)
virtual

Implements AgentSandeshContext.

Definition at line 579 of file kstate.cc.

Here is the call graph for this function:

void KState::IfMsgHandler ( vr_interface_req *  req)
virtual

Implements AgentSandeshContext.

Definition at line 108 of file kstate.cc.

Here is the call graph for this function:

const string KState::MacToString ( const std::vector< signed char > &  mac) const

Definition at line 90 of file kstate.cc.

void KState::MirrorMsgHandler ( vr_mirror_req *  req)
virtual

Implements AgentSandeshContext.

Definition at line 385 of file kstate.cc.

Here is the call graph for this function:

const boost::any& KState::more_context ( ) const
inline

Definition at line 43 of file kstate.h.

bool KState::MoreData ( ) const

Definition at line 29 of file kstate.cc.

void KState::MplsMsgHandler ( vr_mpls_req *  req)
virtual

Implements AgentSandeshContext.

Definition at line 365 of file kstate.cc.

Here is the call graph for this function:

void KState::NHMsgHandler ( vr_nexthop_req *  req)
virtual

Implements AgentSandeshContext.

Definition at line 235 of file kstate.cc.

Here is the call graph for this function:

const std::string KState::PrefixToString ( const std::vector< int8_t > &  prefix)
private

Definition at line 286 of file kstate.cc.

void KState::QosConfigMsgHandler ( vr_qos_map_req *  req)
virtual

Implements AgentSandeshContext.

Definition at line 603 of file kstate.cc.

Here is the call graph for this function:

virtual void KState::Release ( )
inlinevirtual

Definition at line 35 of file kstate.h.

Here is the call graph for this function:

const std::string KState::response_context ( ) const
inline

Definition at line 41 of file kstate.h.

Sandesh* KState::response_object ( ) const
inline

Definition at line 42 of file kstate.h.

void KState::RouteMsgHandler ( vr_route_req *  req)
virtual

Implements AgentSandeshContext.

Definition at line 309 of file kstate.cc.

Here is the call graph for this function:

void KState::set_vr_response_code ( int  value)
inline

Definition at line 44 of file kstate.h.

void KState::UpdateContext ( const boost::any &  ctx)
private

Definition at line 86 of file kstate.cc.

void KState::VrfAssignMsgHandler ( vr_vrf_assign_req *  req)
virtual

Implements AgentSandeshContext.

Definition at line 408 of file kstate.cc.

Here is the call graph for this function:

void KState::VrfMsgHandler ( vr_vrf_req *  req)
virtual

Implements AgentSandeshContext.

Definition at line 437 of file kstate.cc.

Here is the call graph for this function:

void KState::VrfStatsMsgHandler ( vr_vrf_stats_req *  req)
virtual

Implements AgentSandeshContext.

Definition at line 464 of file kstate.cc.

Here is the call graph for this function:

virtual void KState::VrouterOpsMsgHandler ( vrouter_ops *  req)
inlinevirtual

Implements AgentSandeshContext.

Definition at line 59 of file kstate.h.

int KState::VrResponseMsgHandler ( vr_response *  r)
virtual

Implements AgentSandeshContext.

Definition at line 35 of file kstate.cc.

Here is the call graph for this function:

void KState::VxLanMsgHandler ( vr_vxlan_req *  req)
virtual

Implements AgentSandeshContext.

Definition at line 507 of file kstate.cc.

Here is the call graph for this function:

Member Data Documentation

const int KState::kMaxEntriesPerResponse = 100
static

Definition at line 26 of file kstate.h.

boost::any KState::more_context_
protected

Definition at line 66 of file kstate.h.

std::string KState::response_context_
protected

Definition at line 63 of file kstate.h.

Sandesh* KState::response_object_
protected

Definition at line 64 of file kstate.h.

int KState::vr_response_code_
protected

Definition at line 65 of file kstate.h.


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