-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconvchecker_serv.hpp
41 lines (30 loc) · 1.23 KB
/
convchecker_serv.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
// this is automatically generated template header please implement and edit.
#pragma once
#include <jubatus/framework.hpp>
#include "convchecker_types.hpp"
using namespace jubatus::framework;
namespace jubatus { namespace server { // do not change
class convchecker_serv : public server_base // do not change
{
public:
convchecker_serv(const server_argv& a,
const jubatus::common::cshared_ptr<jubatus::common::lock_service>& zk); // do not change
virtual ~convchecker_serv(); // do not change
mixer::mixer* get_mixer() const {
return mixer_.get();
}
bool set_config(const config_data& c); //update broadcast
config_data get_config() const; //analysis random
std::string query(const datum& query); //update random
std::string bulk_query(const std::vector<datum >& query); //update random
bool save(const std::string& id); //update broadcast
bool load(const std::string& id); //update broadcast
void get_status(status_t& status) const; //analysis broadcast
void after_load();
private:
pfi::lang::scoped_ptr<framework::mixer::mixer> mixer_;
void check_set_config()const;
config_data config_;
pfi::lang::shared_ptr<fv_converter::datum_to_fv_converter> converter_;
};
}} // namespace jubatus::server