YugabyteDB (2.13.1.0-b60, 21121d69985fbf76aa6958d8f04a9bfa936293b5)

Coverage Report

Created: 2022-03-22 16:43

/Users/deen/code/yugabyte-db/src/yb/rpc/server_event.h
Line
Count
Source (jump to first uncovered line)
1
// Copyright (c) YugaByte, Inc.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
4
// in compliance with the License.  You may obtain a copy of the License at
5
//
6
// http://www.apache.org/licenses/LICENSE-2.0
7
//
8
// Unless required by applicable law or agreed to in writing, software distributed under the License
9
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
10
// or implied.  See the License for the specific language governing permissions and limitations
11
// under the License.
12
//
13
14
#ifndef YB_RPC_SERVER_EVENT_H
15
#define YB_RPC_SERVER_EVENT_H
16
17
#include <stdint.h>
18
19
#include <vector>
20
21
#include "yb/rpc/rpc_call.h"
22
23
#include "yb/util/slice.h"
24
25
namespace yb {
26
namespace rpc {
27
28
class ServerEvent {
29
 public:
30
176k
  virtual ~ServerEvent() {}
31
  // Serializes the data to be sent out via the RPC framework.
32
  virtual void Serialize(boost::container::small_vector_base<RefCntBuffer>* output) const = 0;
33
  virtual std::string ToString() const = 0;
34
};
35
36
class ServerEventList : public OutboundData {
37
 public:
38
37.0k
  virtual ~ServerEventList() {}
39
40
0
  bool DumpPB(const DumpRunningRpcsRequestPB& req, RpcCallInProgressPB* resp) override {
41
0
    return false;
42
0
  }
43
};
44
45
}  // namespace rpc
46
}  // namespace yb
47
#endif // YB_RPC_SERVER_EVENT_H