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
"
10
#include "
vrouter/flow_stats/flow_export_info.h
"
11
13
// Request to the Flow StatsCollector module
15
class
FlowExportReq
{
16
public
:
17
enum
Event
{
18
INVALID
,
19
ADD_FLOW
,
20
DELETE_FLOW
,
21
UPDATE_FLOW_STATS
22
};
23
24
FlowExportReq
(
Event
event
,
const
FlowExportInfo
&
info
) :
25
event_
(
event
),
info_
(
info
),
time_
(0) {
26
}
27
28
FlowExportReq
(
Event
event
,
const
FlowExportInfo
&
info
, uint64_t
time
,
29
const
RevFlowDepParams
&p) :
30
event_
(
event
),
info_
(
info
),
time_
(
time
),
params_
(p) {
31
}
32
33
FlowExportReq
(
Event
event
,
const
FlowExportInfo
&
info
, uint32_t
bytes
,
34
uint32_t
packets
, uint32_t
oflow_bytes
,
35
const
boost::uuids::uuid
&u) :
36
event_
(
event
),
info_
(
info
),
bytes_
(
bytes
),
packets_
(
packets
),
37
oflow_bytes_
(
oflow_bytes
),
uuid_
(u) {
38
}
39
40
~FlowExportReq
() { }
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
:
52
Event
event_
;
53
FlowExportInfo
info_
;
54
uint64_t
time_
;
55
uint32_t
bytes_
;
56
uint32_t
packets_
;
57
uint32_t
oflow_bytes_
;
58
RevFlowDepParams
params_
;
59
boost::uuids::uuid
uuid_
;
60
DISALLOW_COPY_AND_ASSIGN
(
FlowExportReq
);
61
};
62
#endif
// __AGENT_FLOW_EXPORT_REQUEST_H__
FlowExportInfo
Definition:
flow_export_info.h:11
FlowExportReq
Definition:
flow_export_request.h:15
FlowExportReq::bytes
uint32_t bytes() const
Definition:
flow_export_request.h:45
FlowExportReq::uuid
boost::uuids::uuid uuid() const
Definition:
flow_export_request.h:49
FlowExportReq::event
Event event() const
Definition:
flow_export_request.h:42
FlowExportReq::FlowExportReq
FlowExportReq(Event event, const FlowExportInfo &info, uint32_t bytes, uint32_t packets, uint32_t oflow_bytes, const boost::uuids::uuid &u)
Definition:
flow_export_request.h:33
FlowExportReq::uuid_
boost::uuids::uuid uuid_
Definition:
flow_export_request.h:59
FlowExportReq::FlowExportReq
FlowExportReq(Event event, const FlowExportInfo &info, uint64_t time, const RevFlowDepParams &p)
Definition:
flow_export_request.h:28
FlowExportReq::oflow_bytes
uint32_t oflow_bytes() const
Definition:
flow_export_request.h:47
FlowExportReq::params_
RevFlowDepParams params_
Definition:
flow_export_request.h:58
FlowExportReq::bytes_
uint32_t bytes_
Definition:
flow_export_request.h:55
FlowExportReq::info
FlowExportInfo info() const
Definition:
flow_export_request.h:43
FlowExportReq::Event
Event
Definition:
flow_export_request.h:17
FlowExportReq::INVALID
@ INVALID
Definition:
flow_export_request.h:18
FlowExportReq::ADD_FLOW
@ ADD_FLOW
Definition:
flow_export_request.h:19
FlowExportReq::DELETE_FLOW
@ DELETE_FLOW
Definition:
flow_export_request.h:20
FlowExportReq::UPDATE_FLOW_STATS
@ UPDATE_FLOW_STATS
Definition:
flow_export_request.h:21
FlowExportReq::packets
uint32_t packets() const
Definition:
flow_export_request.h:46
FlowExportReq::packets_
uint32_t packets_
Definition:
flow_export_request.h:56
FlowExportReq::FlowExportReq
FlowExportReq(Event event, const FlowExportInfo &info)
Definition:
flow_export_request.h:24
FlowExportReq::params
const RevFlowDepParams & params() const
Definition:
flow_export_request.h:48
FlowExportReq::DISALLOW_COPY_AND_ASSIGN
DISALLOW_COPY_AND_ASSIGN(FlowExportReq)
FlowExportReq::time_
uint64_t time_
Definition:
flow_export_request.h:54
FlowExportReq::oflow_bytes_
uint32_t oflow_bytes_
Definition:
flow_export_request.h:57
FlowExportReq::info_
FlowExportInfo info_
Definition:
flow_export_request.h:53
FlowExportReq::event_
Event event_
Definition:
flow_export_request.h:52
FlowExportReq::time
uint64_t time() const
Definition:
flow_export_request.h:44
FlowExportReq::~FlowExportReq
~FlowExportReq()
Definition:
flow_export_request.h:40
flow_entry.h
flow_export_info.h
flow_table.h
RevFlowDepParams
Definition:
flow_entry.h:58
uuid
boost::uuids::uuid uuid
Definition:
vnsw/agent/filter/policy.h:12
contrail
controller
src
vnsw
agent
vrouter
flow_stats
flow_export_request.h
Generated by
1.9.1