OpenSDN source code
 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 
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 
22  KDropStatsResp *resp = static_cast<KDropStatsResp *>(response_object_);
23  if (resp) {
24  resp->set_context(response_context_);
25  resp->Response();
26  }
27 }
28 
std::string response_context_
Definition: kstate.h:63
Definition: kstate.h:24
Sandesh * response_object_
Definition: kstate.h:64
DropStatsKState(KDropStatsResp *obj, const std::string &resp_ctx, vr_drop_stats_req &encoder)