OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
flow_export_request.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
3  */
4 #ifndef __AGENT_FLOW_EXPORT_REQUEST_H__
5 #define __AGENT_FLOW_EXPORT_REQUEST_H__
6 
7 #include "pkt/flow_table.h"
8 #include "pkt/flow_entry.h"
10 
12 // Request to the Flow StatsCollector module
15 public:
16  enum Event {
21  };
22 
24  event_(event), info_(info), time_(0) {
25  }
26 
28  const RevFlowDepParams &p) :
29  event_(event), info_(info), time_(time), params_(p) {
30  }
31 
33  uint32_t packets, uint32_t oflow_bytes,
34  const boost::uuids::uuid &u) :
35  event_(event), info_(info), bytes_(bytes), packets_(packets),
36  oflow_bytes_(oflow_bytes), uuid_(u) {
37  }
38 
40 
41  Event event() const { return event_; }
42  FlowExportInfo info() const { return info_; }
43  uint64_t time() const { return time_; }
44  uint32_t bytes() const { return bytes_;}
45  uint32_t packets() const { return packets_;}
46  uint32_t oflow_bytes() const { return oflow_bytes_;}
47  const RevFlowDepParams& params() const { return params_; }
48  boost::uuids::uuid uuid() const { return uuid_; }
49 
50 private:
53  uint64_t time_;
54  uint32_t bytes_;
55  uint32_t packets_;
56  uint32_t oflow_bytes_;
60 };
61 #endif // __AGENT_FLOW_EXPORT_REQUEST_H__
boost::uuids::uuid uuid
FlowExportInfo info() const
FlowExportReq(Event event, const FlowExportInfo &info)
FlowExportReq(Event event, const FlowExportInfo &info, uint32_t bytes, uint32_t packets, uint32_t oflow_bytes, const boost::uuids::uuid &u)
DISALLOW_COPY_AND_ASSIGN(FlowExportReq)
const RevFlowDepParams & params() const
uint64_t time() const
boost::uuids::uuid uuid() const
Event event() const
uint32_t bytes() const
FlowExportReq(Event event, const FlowExportInfo &info, uint64_t time, const RevFlowDepParams &p)
uint32_t packets() const
boost::uuids::uuid uuid_
uint32_t oflow_bytes() const
FlowExportInfo info_
RevFlowDepParams params_