OpenSDN source code
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
interface_uve_stats_table.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #ifndef vnsw_agent_interface_uve_stats_table_h
6 #define vnsw_agent_interface_uve_stats_table_h
7 
9 #include <uve/l4_port_bitmap.h>
10 #include <pkt/flow_proto.h>
11 #include <pkt/flow_table.h>
12 #include <uve/stats_manager.h>
14 
16 public:
17  InterfaceUveStatsTable(Agent *agent, uint32_t default_intvl);
18  virtual ~InterfaceUveStatsTable();
19  void UpdateBitmap(const VmEntry* vm, uint8_t proto, uint16_t sport,
20  uint16_t dport);
21  void SendInterfaceStats(void);
22  void UpdateFloatingIpStats(const FipInfo &fip_info);
24  (uint32_t fip, const string &vn, Interface *intf);
25  void UpdatePortBitmap
26  (const string &name, uint8_t proto, uint16_t sport, uint16_t dport);
28  bool IncrInterfaceEndpointHits(const std::string &itf,
29  const FlowUveFwPolicyInfo &info);
30  void SendInterfaceAceStats(const string &name, UveInterfaceEntry *entry);
31  void UpdateVmiTagBasedStats(const EndpointStatsInfo &info);
32  void BuildInterfaceUveInfo(InterfaceUveInfoResp *r);
33 
34 private:
36  EndpointSecurityStats *obj) const;
38  uint64_t GetVmPortBandwidth
39  (StatsManager::InterfaceStats *s, bool dir_in) const;
40  bool FrameFipStatsMsg(const VmInterface *vm_intf,
41  vector<VmFloatingIPStats> &fip_list,
42  vector<VmFloatingIPStats> &diff_list,
43  bool &diff_list_send) const;
45  VMIStats *uve) const;
46 
48 };
49 
50 #endif // vnsw_agent_interface_uve_stats_table_h
void BuildInterfaceUveInfo(InterfaceUveInfoResp *r)
bool FrameInterfaceObjectLog(UveInterfaceEntry *entry, EndpointSecurityStats *obj) const
Definition: vm.h:32
InterfaceUveTable::FloatingIp * FipEntry(uint32_t fip, const string &vn, Interface *intf)
void SendInterfaceStatsMsg(UveInterfaceEntry *entry)
bool IncrInterfaceEndpointHits(const std::string &itf, const FlowUveFwPolicyInfo &info)
DISALLOW_COPY_AND_ASSIGN(InterfaceUveStatsTable)
bool FrameFipStatsMsg(const VmInterface *vm_intf, vector< VmFloatingIPStats > &fip_list, vector< VmFloatingIPStats > &diff_list, bool &diff_list_send) const
void UpdatePortBitmap(const string &name, uint8_t proto, uint16_t sport, uint16_t dport)
uint64_t GetVmPortBandwidth(StatsManager::InterfaceStats *s, bool dir_in) const
void SendInterfaceAceStats(const string &name, UveInterfaceEntry *entry)
Definition: agent.h:358
bool FrameInterfaceStatsMsg(UveInterfaceEntry *entry, VMIStats *uve) const
void UpdateBitmap(const VmEntry *vm, uint8_t proto, uint16_t sport, uint16_t dport)
InterfaceUveStatsTable(Agent *agent, uint32_t default_intvl)
void UpdateFloatingIpStats(const FipInfo &fip_info)
void UpdateVmiTagBasedStats(const EndpointStatsInfo &info)
void IncrInterfaceAceStats(const FlowUveStatsRequest *req)