src/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
3 / 3
100.0%
Branches:
1 / 2
50.0%
Functions:
1 / 1
100.0%

ps/grpc/dist_grpc_ps_client.h
Line Branch Exec Source
1 #pragma once
2
3 #include "base/json.h"
4 #include "ps/base/dist_sharded_client.h"
5 #include "grpc_ps_client.h"
6
7 using json = nlohmann::json;
8
9 namespace recstore {
10
11 /**
12 * @brief Distributed gRPC parameter-server client
13 *
14 * Many-to-many connections; routes keys to shards via a hash function.
15 * Server list and hash method come from JSON config. All logic lives in
16 * DistributedShardedClient<GRPCParameterClient>.
17 */
18 class DistributedGRPCParameterClient
19 : public DistributedShardedClient<GRPCParameterClient> {
20 public:
21 16 explicit DistributedGRPCParameterClient(json config)
22 16 : DistributedShardedClient<GRPCParameterClient>(
23
1/2
✓ Branch 3 taken 16 times.
✗ Branch 4 not taken.
16 std::move(config), "GRPC") {}
24 };
25
26 } // namespace recstore
27