Line data Source code
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 0 : DropStatsKState::DropStatsKState(KDropStatsResp *obj, 14 : const std::string &resp_ctx, 15 0 : vr_drop_stats_req &req) 16 0 : : KState(resp_ctx, obj) { 17 0 : req.set_h_op(sandesh_op::GET); 18 0 : req.set_vds_rid(0); 19 0 : } 20 : 21 0 : void DropStatsKState::Handler() { 22 0 : KDropStatsResp *resp = static_cast<KDropStatsResp *>(response_object_); 23 0 : if (resp) { 24 0 : resp->set_context(response_context_); 25 0 : resp->Response(); 26 : } 27 0 : } 28 :