summaryrefslogtreecommitdiffstats
path: root/configd/src/apps/sentinel/rpcserver.h
blob: f295975f224b892be933e4033a641ef4fd398e57 (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
// 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:
    FRT_Supervisor _supervisor;
    RPCHooks _rpcHooks;
    int _port;

public:
    RpcServer(int port, CommandQueue &cmdQ);
    ~RpcServer();

    int getPort() const { return _port; }
};

} // namespace config::sentinel