2 #define _KVSERVICE_H_ 1
4 #include "kvstore.pb.h"
13 class KeyValueRpcService : public ::kvrpc::KeyValueService
16 KeyValueRpcService(Backend *backend);
18 virtual ~KeyValueRpcService();
20 virtual void PutValue(::google::protobuf::RpcController* controller,
21 const ::kvrpc::Put* request,
22 ::kvrpc::PutReply* response,
23 ::google::protobuf::Closure* done);
24 virtual void GetValue(::google::protobuf::RpcController* controller,
25 const ::kvrpc::Get* request,
26 ::kvrpc::GetReply* response,
27 ::google::protobuf::Closure* done);
29 auto_ptr<Backend> _backend;
32 } // namespace kvstore