blob: 4c6dea00ddf011510d54976cf6390fecb512cf72 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <memory>
#include "cmdq.h"
#include "rpchooks.h"
#include <vespa/fnet/frt/supervisor.h>
namespace config::sentinel {
class RpcServer
{
private:
fnet::frt::StandaloneFRT _server;
RPCHooks _rpcHooks;
int _port;
public:
RpcServer(int port, CommandQueue &cmdQ);
~RpcServer();
int getPort() const { return _port; }
FRT_Supervisor &orb() { return _server.supervisor(); }
};
} // namespace config::sentinel
|