33 #ifndef _IDENTT_HRPC_SYNC_SERVER_HPP_ 34 #define _IDENTT_HRPC_SYNC_SERVER_HPP_ 46 virtual public std::enable_shared_from_this<SyncServer> {
49 using pointer=std::shared_ptr<SyncServer>;
73 static pointer
create(std::shared_ptr<::identt::http::io_whatever> io_whatever_, identt::utils::SharedTable::pointer stptr)
87 return shared_from_this();
110 const static identt::utils::ServerBase::ParamsListT
GetRequire();
121 void init(identt::utils::ServerBase::ParamsListT params);
132 std::shared_ptr<HttpServerT> server;
133 std::shared_ptr<::identt::http::io_whatever> io_whatever;
149 SyncServer(std::shared_ptr<::identt::http::io_whatever> io_whatever_, identt::utils::SharedTable::pointer stptr);
165 void SyncFromMaster();
176 bool CompareLog(std::string address);
void stop()
stop : shutdown
Definition: SyncServer.cc:139
virtual ~SyncServer()
destructor
Definition: SyncServer.cc:61
void init(identt::utils::ServerBase::ParamsListT params)
init : initialize rocksdb and others
Definition: SyncServer.cc:89
pointer share()
share : return instance
Definition: SyncServer.hpp:85
Definition: CryptoBase.hpp:49
SyncServer()=delete
make noncopyable
static const identt::utils::ServerBase::ParamsListT GetRequire()
GetRequire : parameters required.
Definition: SyncServer.cc:79
static const std::string GetSection()
GetSection : section required.
Definition: SyncServer.cc:70
static pointer create(std::shared_ptr<::identt::http::io_whatever > io_whatever_, identt::utils::SharedTable::pointer stptr)
create : static construction creates new first time
Definition: SyncServer.hpp:73
Definition: HttpServer.hpp:42
Definition: SyncServer.hpp:44
Definition: ServerBase.hpp:46