2018-01-22 19:36:14 +08:00
|
|
|
#pragma once
|
|
|
|
|
2018-01-24 19:16:14 +08:00
|
|
|
#include "communication/rpc/server.hpp"
|
2018-01-22 19:36:14 +08:00
|
|
|
#include "database/graph_db.hpp"
|
|
|
|
|
|
|
|
namespace distributed {
|
|
|
|
|
2018-03-19 21:42:32 +08:00
|
|
|
/// Serves this worker's data to others.
|
2018-03-23 22:21:46 +08:00
|
|
|
class DataRpcServer {
|
2018-01-22 19:36:14 +08:00
|
|
|
public:
|
2018-03-23 22:21:46 +08:00
|
|
|
DataRpcServer(database::GraphDb &db, communication::rpc::Server &server);
|
2018-01-22 19:36:14 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
database::GraphDb &db_;
|
2018-02-23 17:56:56 +08:00
|
|
|
communication::rpc::Server &rpc_server_;
|
2018-01-22 19:36:14 +08:00
|
|
|
};
|
|
|
|
} // namespace distributed
|