-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconvchecker_client.hpp
59 lines (38 loc) · 1.54 KB
/
convchecker_client.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// This file is auto-generated from convchecker.idl
// *** DO NOT EDIT ***
#ifndef CONVCHECKER_CLIENT_HPP_
#define CONVCHECKER_CLIENT_HPP_
#include "convchecker_types.hpp"
#include <pficommon/network/mprpc.h>
namespace jubatus {
namespace client {
class convchecker : public pfi::network::mprpc::rpc_client {
public:
convchecker(const std::string &host, uint64_t port, double timeout_sec)
: rpc_client(host, port, timeout_sec) {}
bool set_config(std::string name, config_data c) {
return call<bool(std::string, config_data)>("set_config")(name, c);
}
config_data get_config(std::string name) {
return call<config_data(std::string)>("get_config")(name);
}
std::string query(std::string name, datum query) {
return call<std::string(std::string, datum)>("query")(name, query);
}
std::string bulk_query(std::string name, std::vector<datum > query) {
return call<std::string(std::string, std::vector<datum >)>("bulk_query")(name, query);
}
bool save(std::string name, std::string id) {
return call<bool(std::string, std::string)>("save")(name, id);
}
bool load(std::string name, std::string id) {
return call<bool(std::string, std::string)>("load")(name, id);
}
std::map<std::string, std::map<std::string, std::string > > get_status(std::string name) {
return call<std::map<std::string, std::map<std::string, std::string > >(std::string)>("get_status")(name);
}
private:
};
} // namespace client
} // namespace jubatus
#endif // CONVCHECKER_CLIENT_HPP_