OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
drop_stats_io_context.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  */
4 
7 #include <ksync/ksync_types.h>
8 
9 DropStatsIoContext::DropStatsIoContext(int msg_len, char *msg, uint32_t seqno,
12  : IoContext(msg, msg_len, seqno, ctx, type) {
13 }
14 
16 }
17 
19 }
20 
22  KSYNC_ERROR(VRouterError, "VRouter drop stats query failed. Error <", err,
24  ">. Object <", "N/A", ">. State <", "N/A",
25  ">. Message number :", GetSeqno());
26  LOG(ERROR, "Error reading Drop Stats. Error <" << err << ": "
28  << ": Sequence No : " << GetSeqno());
29 }
30 
uint32_t GetSeqno() const
Definition: ksync_sock.h:138
#define KSYNC_ERROR(obj,...)
Definition: ksync_entry.h:16
DropStatsIoContext(int msg_len, char *msg, uint32_t seqno, AgentStatsSandeshContext *ctx, IoContext::Type type)
uint8_t type
Definition: load_balance.h:109
static std::string VrouterErrorToString(uint32_t error)
#define LOG(_Level, _Msg)
Definition: logging.h:33
virtual void ErrorHandler(int err)