OpenSDN source code
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
"
9
#include "
vrouter/flow_stats/flow_export_info.h
"
10
12
// Request to the Flow StatsCollector module
14
class
FlowExportReq
{
15
public
:
16
enum
Event
{
17
INVALID
,
18
ADD_FLOW
,
19
DELETE_FLOW
,
20
UPDATE_FLOW_STATS
21
};
22
23
FlowExportReq
(
Event
event
,
const
FlowExportInfo
&
info
) :
24
event_
(event),
info_
(info),
time_
(0) {
25
}
26
27
FlowExportReq
(
Event
event
,
const
FlowExportInfo
&
info
, uint64_t
time
,
28
const
RevFlowDepParams
&p) :
29
event_
(event),
info_
(info),
time_
(time),
params_
(p) {
30
}
31
32
FlowExportReq
(
Event
event
,
const
FlowExportInfo
&
info
, uint32_t
bytes
,
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
39
~FlowExportReq
() { }
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
:
51
Event
event_
;
52
FlowExportInfo
info_
;
53
uint64_t
time_
;
54
uint32_t
bytes_
;
55
uint32_t
packets_
;
56
uint32_t
oflow_bytes_
;
57
RevFlowDepParams
params_
;
58
boost::uuids::uuid
uuid_
;
59
DISALLOW_COPY_AND_ASSIGN
(
FlowExportReq
);
60
};
61
#endif // __AGENT_FLOW_EXPORT_REQUEST_H__
FlowExportReq::DELETE_FLOW
Definition:
flow_export_request.h:19
FlowExportReq::oflow_bytes_
uint32_t oflow_bytes_
Definition:
flow_export_request.h:56
FlowExportInfo
Definition:
flow_export_info.h:10
flow_table.h
FlowExportReq::time_
uint64_t time_
Definition:
flow_export_request.h:53
uuid
boost::uuids::uuid uuid
Definition:
vnsw/agent/filter/policy.h:11
flow_export_info.h
FlowExportReq::info
FlowExportInfo info() const
Definition:
flow_export_request.h:42
FlowExportReq::FlowExportReq
FlowExportReq(Event event, const FlowExportInfo &info)
Definition:
flow_export_request.h:23
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:32
FlowExportReq::DISALLOW_COPY_AND_ASSIGN
DISALLOW_COPY_AND_ASSIGN(FlowExportReq)
flow_entry.h
FlowExportReq::event_
Event event_
Definition:
flow_export_request.h:51
FlowExportReq::params
const RevFlowDepParams & params() const
Definition:
flow_export_request.h:47
FlowExportReq::time
uint64_t time() const
Definition:
flow_export_request.h:43
FlowExportReq::uuid
boost::uuids::uuid uuid() const
Definition:
flow_export_request.h:48
FlowExportReq::Event
Event
Definition:
flow_export_request.h:16
FlowExportReq::packets_
uint32_t packets_
Definition:
flow_export_request.h:55
FlowExportReq::event
Event event() const
Definition:
flow_export_request.h:41
FlowExportReq::bytes_
uint32_t bytes_
Definition:
flow_export_request.h:54
FlowExportReq::ADD_FLOW
Definition:
flow_export_request.h:18
FlowExportReq
Definition:
flow_export_request.h:14
RevFlowDepParams
Definition:
flow_entry.h:57
FlowExportReq::INVALID
Definition:
flow_export_request.h:17
FlowExportReq::bytes
uint32_t bytes() const
Definition:
flow_export_request.h:44
FlowExportReq::FlowExportReq
FlowExportReq(Event event, const FlowExportInfo &info, uint64_t time, const RevFlowDepParams &p)
Definition:
flow_export_request.h:27
FlowExportReq::~FlowExportReq
~FlowExportReq()
Definition:
flow_export_request.h:39
FlowExportReq::packets
uint32_t packets() const
Definition:
flow_export_request.h:45
FlowExportReq::uuid_
boost::uuids::uuid uuid_
Definition:
flow_export_request.h:58
FlowExportReq::oflow_bytes
uint32_t oflow_bytes() const
Definition:
flow_export_request.h:46
FlowExportReq::UPDATE_FLOW_STATS
Definition:
flow_export_request.h:20
FlowExportReq::info_
FlowExportInfo info_
Definition:
flow_export_request.h:52
FlowExportReq::params_
RevFlowDepParams params_
Definition:
flow_export_request.h:57
contrail
controller
src
vnsw
agent
vrouter
flow_stats
flow_export_request.h
Generated by
1.8.5