blob: 1c7ee8ddc57f95015505ca344497ea50e5edd2a2 (
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
|
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "rpcserver.h"
#include <vespa/config-sentinel.h>
#include <vespa/config-model.h>
#include <string>
#include <map>
using cloud::config::SentinelConfig;
using cloud::config::ModelConfig;
namespace config::sentinel {
/**
* Utility class for running connectivity check.
**/
class Connectivity {
public:
Connectivity();
~Connectivity();
void configure(const SentinelConfig::Connectivity &config);
bool checkConnectivity(RpcServer &rpcServer);
private:
SentinelConfig::Connectivity _config;
std::map<std::string, std::string> _checkSpecs;
std::map<std::string, std::string> _detailsPerHost;
};
}
|