aboutsummaryrefslogtreecommitdiffstats
path: root/slobrok/src/vespa/slobrok/server/i_rpc_server_manager.h
blob: e495abbb742a197c359fa066fca6c4b0c42b503d (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
29
30
31
32
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include <string>

class FRT_Supervisor;

namespace slobrok {

class ManagedRpcServer;

//-----------------------------------------------------------------------------

/**
 * @class IRpcServerManager
 * @brief A manager for ManagedRpcServer objects.
 *
 * Interface class.
 **/

class IRpcServerManager
{
public:
    virtual void notifyFailedRpcSrv(ManagedRpcServer *rpcsrv, std::string errmsg) = 0;
    virtual void notifyOkRpcSrv(ManagedRpcServer *rpcsrv) = 0;
    virtual FRT_Supervisor *getSupervisor() = 0;
    virtual ~IRpcServerManager() {}
};

//-----------------------------------------------------------------------------

} // namespace slobrok