memgraph/src/distributed/cluster_discovery_master.hpp
Matej Ferencevic baae40fcc6 Move RPC server to Coordination
Reviewers: teon.banek, msantl

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1658
2018-10-16 09:12:37 +02:00

25 lines
661 B
C++

#pragma once
#include "distributed/coordination_master.hpp"
namespace distributed {
using Server = communication::rpc::Server;
/** Handle cluster discovery on master.
*
* Cluster discovery on master handles worker registration and broadcasts new
* worker information to already registered workers, and already registered
* worker information to the new worker.
*/
class ClusterDiscoveryMaster final {
public:
ClusterDiscoveryMaster(MasterCoordination *coordination,
const std::string &durability_directory);
private:
MasterCoordination *coordination_;
std::string durability_directory_;
};
} // namespace distributed