OpenSDN source code
drop_stats_io_context.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  * Copyright Contributors to the OpenSDN project
4  */
5 
8 #include <ksync/ksync_types.h>
9 
10 DropStatsIoContext::DropStatsIoContext(int msg_len, char *msg, uint32_t seqno,
13  : IoContext(msg, msg_len, seqno, ctx, type) {
14 }
15 
17 }
18 
20 }
21 
23  KSYNC_ERROR(VRouterError, "VRouter drop stats query failed. Error <", err,
25  ">. Object <", "N/A", ">. State <", "N/A",
26  ">. Message number :", GetSeqno());
27  LOG(ERROR, "Error reading Drop Stats. Error <" << err << ": "
29  << ": Sequence No : " << GetSeqno());
30 }
31 
virtual void ErrorHandler(int err)
DropStatsIoContext(int msg_len, char *msg, uint32_t seqno, AgentStatsSandeshContext *ctx, IoContext::Type type)
uint32_t GetSeqno() const
Definition: ksync_sock.h:139
static std::string VrouterErrorToString(uint32_t error)
#define KSYNC_ERROR(obj,...)
Definition: ksync_entry.h:17
uint8_t type
Definition: load_balance.h:2
#define LOG(_Level, _Msg)
Definition: logging.h:35