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
drop_stats_kstate.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3
*/
4
5
#include "
kstate.h
"
6
#include "
drop_stats_kstate.h
"
7
#include <iomanip>
8
#include <sstream>
9
#include "vr_defs.h"
10
11
using namespace
std;
12
13
DropStatsKState::DropStatsKState
(KDropStatsResp *obj,
14
const
std::string &resp_ctx,
15
vr_drop_stats_req &req)
16
:
KState
(resp_ctx, obj) {
17
req.set_h_op(sandesh_op::GET);
18
req.set_vds_rid(0);
19
}
20
21
void
DropStatsKState::Handler
() {
22
KDropStatsResp *resp =
static_cast<
KDropStatsResp *
>
(
response_object_
);
23
if
(resp) {
24
resp->set_context(
response_context_
);
25
resp->Response();
26
}
27
}
28
KState::response_context_
std::string response_context_
Definition:
kstate.h:63
KState
Definition:
kstate.h:24
KState::response_object_
Sandesh * response_object_
Definition:
kstate.h:64
drop_stats_kstate.h
DropStatsKState::Handler
void Handler()
Definition:
drop_stats_kstate.cc:21
kstate.h
DropStatsKState::DropStatsKState
DropStatsKState(KDropStatsResp *obj, const std::string &resp_ctx, vr_drop_stats_req &encoder)
Definition:
drop_stats_kstate.cc:13
contrail
controller
src
vnsw
agent
kstate
drop_stats_kstate.cc
Generated by
1.8.5