OpenSDN source code
flow_export_request.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
3  * Copyright Contributors to the OpenSDN project
4  */
5 #ifndef __AGENT_FLOW_EXPORT_REQUEST_H__
6 #define __AGENT_FLOW_EXPORT_REQUEST_H__
7 
8 #include "pkt/flow_table.h"
9 #include "pkt/flow_entry.h"
11 
13 // Request to the Flow StatsCollector module
16 public:
17  enum Event {
22  };
23 
25  event_(event), info_(info), time_(0) {
26  }
27 
29  const RevFlowDepParams &p) :
31  }
32 
34  uint32_t packets, uint32_t oflow_bytes,
35  const boost::uuids::uuid &u) :
38  }
39 
41 
42  Event event() const { return event_; }
43  FlowExportInfo info() const { return info_; }
44  uint64_t time() const { return time_; }
45  uint32_t bytes() const { return bytes_;}
46  uint32_t packets() const { return packets_;}
47  uint32_t oflow_bytes() const { return oflow_bytes_;}
48  const RevFlowDepParams& params() const { return params_; }
49  boost::uuids::uuid uuid() const { return uuid_; }
50 
51 private:
54  uint64_t time_;
55  uint32_t bytes_;
56  uint32_t packets_;
57  uint32_t oflow_bytes_;
61 };
62 #endif // __AGENT_FLOW_EXPORT_REQUEST_H__
uint32_t bytes() const
boost::uuids::uuid uuid() const
Event event() const
FlowExportReq(Event event, const FlowExportInfo &info, uint32_t bytes, uint32_t packets, uint32_t oflow_bytes, const boost::uuids::uuid &u)
boost::uuids::uuid uuid_
FlowExportReq(Event event, const FlowExportInfo &info, uint64_t time, const RevFlowDepParams &p)
uint32_t oflow_bytes() const
RevFlowDepParams params_
FlowExportInfo info() const
uint32_t packets() const
FlowExportReq(Event event, const FlowExportInfo &info)
const RevFlowDepParams & params() const
DISALLOW_COPY_AND_ASSIGN(FlowExportReq)
FlowExportInfo info_
uint64_t time() const
boost::uuids::uuid uuid