-
Notifications
You must be signed in to change notification settings - Fork 2
/
kvs_serv.tmpl.hpp
39 lines (30 loc) · 1.19 KB
/
kvs_serv.tmpl.hpp
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
32
33
34
35
36
37
38
39
// This file is auto-generated from kvs.idl with jenerator version 0.9.4-42-g70f7539/develop
#ifndef KVS_SERV_TMPL_HPP_
#define KVS_SERV_TMPL_HPP_
#include <string>
#include <jubatus/server/framework.hpp>
#include "kvs_types.hpp"
namespace jubatus {
namespace server {
class kvs_serv : public jubatus::server::framework::server_base { // do not change
public:
kvs_serv(
const jubatus::server::framework::server_argv& a,
const jubatus::util::lang::shared_ptr<jubatus::server::common::lock_service>& zk); // do not change
virtual ~kvs_serv(); // do not change
virtual jubatus::server::framework::mixer::mixer* get_mixer() const;
virtual jubatus::core::driver::driver_base* get_driver() const;
std::string get_config() const;
uint64_t user_data_version() const;
void get_status(status_t& status) const;
void set_config(const std::string& config);
bool put(const std::string& key, const std::string& value);
std::string get(const std::string& key) const;
bool del(const std::string& key);
bool clear();
private:
// add user defined driver like: jubatus::util::lang::shared_ptr<some_type> some_;
};
} // namespace server
} // namespace jubatus
#endif // KVS_SERV_TMPL_HPP_