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

#include <vn_uve_entry.h>

Inheritance diagram for VnUveEntry:
Collaboration diagram for VnUveEntry:

Classes

struct  VnAceStats
 
struct  VnStats
 
class  VnStatsCmp
 

Public Types

typedef boost::shared_ptr
< VnStats
VnStatsPtr
 
typedef std::set< VnStatsPtr,
VnStatsCmp
VnStatsSet
 
typedef std::set< VnAceStatsVnAceStatsSet
 
- Public Types inherited from VnUveEntryBase
typedef std::set< const
Interface * > 
InterfaceSet
 
typedef std::set< std::string > VmSet
 

Public Member Functions

 VnUveEntry (Agent *agent, const VnEntry *vn)
 
 VnUveEntry (Agent *agent)
 
virtual ~VnUveEntry ()
 
void UpdatePortBitmap (uint8_t proto, uint16_t sport, uint16_t dport)
 
bool FillVrfStats (int vrf_id, UveVirtualNetworkAgent &s_vn)
 
bool PopulateInterVnStats (UveVirtualNetworkAgent &s_vn)
 
bool FrameVnStatsMsg (const VnEntry *vn, UveVirtualNetworkAgent &uve)
 
void UpdateInterVnStats (const string &dst_vn, uint64_t bytes, uint64_t pkts, bool outgoing)
 
void UpdateVnAceStats (const std::string &ace_uuid)
 
void ClearInterVnStats ()
 
virtual void Reset ()
 
void set_prev_stats_update_time (uint64_t t)
 
uint64_t in_bytes () const
 
uint64_t out_bytes () const
 
bool FrameVnAceStatsMsg (const VnEntry *vn, UveVirtualNetworkAgent &uve)
 
- Public Member Functions inherited from VnUveEntryBase
 VnUveEntryBase (Agent *agent, const VnEntry *vn)
 
 VnUveEntryBase (Agent *agent)
 
virtual ~VnUveEntryBase ()
 
void set_vn (const VnEntry *vn)
 
void InterfaceAdd (const Interface *intf)
 
void InterfaceDelete (const Interface *intf)
 
void VmAdd (const std::string &vm)
 
void VmDelete (const std::string &vm)
 
bool BuildInterfaceVmList (UveVirtualNetworkAgent &s_vn)
 
bool FrameVnMsg (const VnEntry *vn, UveVirtualNetworkAgent &uve)
 
const VnEntryvn () const
 
bool FrameVnAclRuleCountMsg (const VnEntry *vn, UveVirtualNetworkAgent *uve)
 
void set_changed (bool val)
 
bool changed () const
 
void set_deleted (bool value)
 
bool deleted () const
 
void set_renewed (bool value)
 
bool renewed () const
 
void set_add_by_vn_notify (bool val)
 

Protected Attributes

L4PortBitmap port_bitmap_
 
VnStatsSet inter_vn_stats_
 
VnAceStatsSet ace_stats_
 
- Protected Attributes inherited from VnUveEntryBase
Agentagent_
 
const VnEntryvn_
 
UveVirtualNetworkAgent uve_info_
 
InterfaceSet interface_tree_
 
VmSet vm_tree_
 
bool add_by_vn_notify_
 
bool changed_
 
bool deleted_
 
bool renewed_
 

Private Member Functions

bool SetVnPortBitmap (UveVirtualNetworkAgent &uve)
 
bool UveVnInBandChanged (uint64_t out_band) const
 
bool UveVnOutBandChanged (uint64_t out_band) const
 
bool UpdateVnFlowCount (const VnEntry *vn, UveVirtualNetworkAgent &s_vn)
 
bool UpdateVnFipCount (int count, UveVirtualNetworkAgent &s_vn)
 
bool UveVnFipCountChanged (int32_t size) const
 
bool UveInterVnInStatsChanged (const std::vector< UveInterVnStats > &new_list) const
 
bool UveInterVnOutStatsChanged (const std::vector< UveInterVnStats > &new_list) const
 
bool UveVnVrfStatsChanged (const std::vector< UveVrfStats > &vlist) const
 
bool UpdateVrfStats (const VnEntry *vn, UveVirtualNetworkAgent &s_vn)
 
bool UveVnInFlowCountChanged (uint32_t size)
 
bool UveVnOutFlowCountChanged (uint32_t size)
 
void BuildNhStats (const StatsManager::VrfStats *s, UveVrfStats &vrf_stats) const
 
void BuildArpStats (const StatsManager::VrfStats *s, UveVrfStats &vrf_stats) const
 
 DISALLOW_COPY_AND_ASSIGN (VnUveEntry)
 

Private Attributes

tbb::mutex mutex_
 
uint64_t in_bytes_
 
uint64_t out_bytes_
 
uint64_t prev_stats_update_time_
 
uint64_t prev_in_bytes_
 
uint64_t prev_out_bytes_
 
bool ace_stats_changed_
 

Additional Inherited Members

- Protected Member Functions inherited from VnUveEntryBase
bool UveVnAclRuleCountChanged (int32_t size) const
 

Detailed Description

Definition at line 16 of file vn_uve_entry.h.

Member Typedef Documentation

Definition at line 71 of file vn_uve_entry.h.

typedef boost::shared_ptr<VnStats> VnUveEntry::VnStatsPtr

Definition at line 46 of file vn_uve_entry.h.

Definition at line 58 of file vn_uve_entry.h.

Constructor & Destructor Documentation

VnUveEntry::VnUveEntry ( Agent agent,
const VnEntry vn 
)

Definition at line 8 of file vn_uve_entry.cc.

VnUveEntry::VnUveEntry ( Agent agent)

Definition at line 14 of file vn_uve_entry.cc.

VnUveEntry::~VnUveEntry ( )
virtual

Definition at line 20 of file vn_uve_entry.cc.

Member Function Documentation

void VnUveEntry::BuildArpStats ( const StatsManager::VrfStats s,
UveVrfStats &  vrf_stats 
) const
private

Definition at line 258 of file vn_uve_entry.cc.

void VnUveEntry::BuildNhStats ( const StatsManager::VrfStats s,
UveVrfStats &  vrf_stats 
) const
private

Definition at line 281 of file vn_uve_entry.cc.

void VnUveEntry::ClearInterVnStats ( )

Definition at line 64 of file vn_uve_entry.cc.

VnUveEntry::DISALLOW_COPY_AND_ASSIGN ( VnUveEntry  )
private
bool VnUveEntry::FillVrfStats ( int  vrf_id,
UveVirtualNetworkAgent &  s_vn 
)

Definition at line 309 of file vn_uve_entry.cc.

Here is the call graph for this function:

bool VnUveEntry::FrameVnAceStatsMsg ( const VnEntry vn,
UveVirtualNetworkAgent &  uve 
)

Definition at line 460 of file vn_uve_entry.cc.

Here is the call graph for this function:

bool VnUveEntry::FrameVnStatsMsg ( const VnEntry vn,
UveVirtualNetworkAgent &  uve 
)

Definition at line 357 of file vn_uve_entry.cc.

Here is the call graph for this function:

uint64_t VnUveEntry::in_bytes ( ) const
inline

Definition at line 87 of file vn_uve_entry.h.

uint64_t VnUveEntry::out_bytes ( ) const
inline

Definition at line 88 of file vn_uve_entry.h.

bool VnUveEntry::PopulateInterVnStats ( UveVirtualNetworkAgent &  s_vn)

Definition at line 192 of file vn_uve_entry.cc.

Here is the call graph for this function:

void VnUveEntry::Reset ( )
virtual

Reimplemented from VnUveEntryBase.

Definition at line 437 of file vn_uve_entry.cc.

Here is the call graph for this function:

void VnUveEntry::set_prev_stats_update_time ( uint64_t  t)
inline

Definition at line 86 of file vn_uve_entry.h.

bool VnUveEntry::SetVnPortBitmap ( UveVirtualNetworkAgent &  uve)
private

Definition at line 75 of file vn_uve_entry.cc.

Here is the call graph for this function:

void VnUveEntry::UpdateInterVnStats ( const string &  dst_vn,
uint64_t  bytes,
uint64_t  pkts,
bool  outgoing 
)

Definition at line 33 of file vn_uve_entry.cc.

void VnUveEntry::UpdatePortBitmap ( uint8_t  proto,
uint16_t  sport,
uint16_t  dport 
)

Definition at line 23 of file vn_uve_entry.cc.

Here is the call graph for this function:

void VnUveEntry::UpdateVnAceStats ( const std::string &  ace_uuid)

Definition at line 448 of file vn_uve_entry.cc.

bool VnUveEntry::UpdateVnFipCount ( int  count,
UveVirtualNetworkAgent &  s_vn 
)
private

Definition at line 183 of file vn_uve_entry.cc.

Here is the call graph for this function:

bool VnUveEntry::UpdateVnFlowCount ( const VnEntry vn,
UveVirtualNetworkAgent &  s_vn 
)
private

Definition at line 167 of file vn_uve_entry.cc.

Here is the call graph for this function:

bool VnUveEntry::UpdateVrfStats ( const VnEntry vn,
UveVirtualNetworkAgent &  s_vn 
)
private

Definition at line 339 of file vn_uve_entry.cc.

Here is the call graph for this function:

bool VnUveEntry::UveInterVnInStatsChanged ( const std::vector< UveInterVnStats > &  new_list) const
private

Definition at line 145 of file vn_uve_entry.cc.

bool VnUveEntry::UveInterVnOutStatsChanged ( const std::vector< UveInterVnStats > &  new_list) const
private

Definition at line 156 of file vn_uve_entry.cc.

bool VnUveEntry::UveVnFipCountChanged ( int32_t  size) const
private

Definition at line 105 of file vn_uve_entry.cc.

bool VnUveEntry::UveVnInBandChanged ( uint64_t  out_band) const
private

Definition at line 115 of file vn_uve_entry.cc.

bool VnUveEntry::UveVnInFlowCountChanged ( uint32_t  size)
private
bool VnUveEntry::UveVnOutBandChanged ( uint64_t  out_band) const
private

Definition at line 125 of file vn_uve_entry.cc.

bool VnUveEntry::UveVnOutFlowCountChanged ( uint32_t  size)
private
bool VnUveEntry::UveVnVrfStatsChanged ( const std::vector< UveVrfStats > &  vlist) const
private

Definition at line 135 of file vn_uve_entry.cc.

Member Data Documentation

VnAceStatsSet VnUveEntry::ace_stats_
protected

Definition at line 93 of file vn_uve_entry.h.

bool VnUveEntry::ace_stats_changed_
private

Definition at line 127 of file vn_uve_entry.h.

uint64_t VnUveEntry::in_bytes_
private

Definition at line 122 of file vn_uve_entry.h.

VnStatsSet VnUveEntry::inter_vn_stats_
protected

Definition at line 92 of file vn_uve_entry.h.

tbb::mutex VnUveEntry::mutex_
private

Definition at line 121 of file vn_uve_entry.h.

uint64_t VnUveEntry::out_bytes_
private

Definition at line 123 of file vn_uve_entry.h.

L4PortBitmap VnUveEntry::port_bitmap_
protected

Definition at line 91 of file vn_uve_entry.h.

uint64_t VnUveEntry::prev_in_bytes_
private

Definition at line 125 of file vn_uve_entry.h.

uint64_t VnUveEntry::prev_out_bytes_
private

Definition at line 126 of file vn_uve_entry.h.

uint64_t VnUveEntry::prev_stats_update_time_
private

Definition at line 124 of file vn_uve_entry.h.


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