OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
peer_stats.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #ifndef SRC_BGP_PEER_STATS_H_
6 #define SRC_BGP_PEER_STATS_H_
7 
8 #include "bgp/bgp_peer_types.h"
9 #include "bgp/ipeer.h"
10 
11 class PeerStats {
12 public:
13  static void FillPeerDebugStats(const IPeerDebugStats *peer_stats,
14  PeerStatsInfo *stats);
15  static void FillPeerUpdateStats(const IPeerDebugStats *peer_stats,
16  PeerStatsData *peer_stats_data);
17 
18 private:
19  static void FillProtoStats(const IPeerDebugStats::ProtoStats &stats,
20  PeerProtoStats *proto_stats);
21  static void FillRouteUpdateStats(const IPeerDebugStats::UpdateStats &stats,
22  PeerUpdateStats *rt_stats);
23  static void FillRxErrorStats(const IPeerDebugStats::RxErrorStats &src,
24  PeerRxErrorStats *dest);
25  static void FillRxRouteStats(const IPeerDebugStats::RxRouteStats &src,
26  PeerRxRouteStats *dest);
27  static void FillPeerUpdateStats(const IPeerDebugStats *peer_stats,
28  PeerUpdateStats *rt_stats_rx,
29  PeerUpdateStats *rt_stats_tx);
30 };
31 
32 #endif // SRC_BGP_PEER_STATS_H_
static void FillRxRouteStats(const IPeerDebugStats::RxRouteStats &src, PeerRxRouteStats *dest)
Definition: peer_stats.cc:35
static void FillRxErrorStats(const IPeerDebugStats::RxErrorStats &src, PeerRxErrorStats *dest)
Definition: peer_stats.cc:25
static void FillPeerUpdateStats(const IPeerDebugStats *peer_stats, PeerStatsData *peer_stats_data)
Definition: peer_stats.cc:54
static void FillProtoStats(const IPeerDebugStats::ProtoStats &stats, PeerProtoStats *proto_stats)
Definition: peer_stats.cc:7
static void FillRouteUpdateStats(const IPeerDebugStats::UpdateStats &stats, PeerUpdateStats *rt_stats)
Definition: peer_stats.cc:18
static void FillPeerDebugStats(const IPeerDebugStats *peer_stats, PeerStatsInfo *stats)
Definition: peer_stats.cc:64