33 #ifndef _IDENTT_HRPC_REMOTE_KEEPER_HPP_ 34 #define _IDENTT_HRPC_REMOTE_KEEPER_HPP_ 44 using pointer=std::shared_ptr<RemoteKeeper>;
73 void SetHosts(identt::hrpc::StateT* state);
84 void AddHost(identt::hrpc::RemoteT* rms);
101 void AddHost(std::string name, uint64_t logcounter, uint64_t updated_at);
112 void GetHosts(identt::hrpc::StateT* state);
134 identt::utils::SharedTable::pointer stptr;
void SetHosts(identt::hrpc::StateT *state)
SetHosts : get list of hosts.
Definition: RemoteKeeper.cc:52
void GetHosts(identt::hrpc::StateT *state)
GetHosts : get params and list of hosts.
Definition: RemoteKeeper.cc:89
RemoteKeeper()=delete
make noncopyable
void HostUpdate()
HostUpdate: update all hosts.
Definition: RemoteKeeper.cc:112
void AddHost(identt::hrpc::RemoteT *rms)
AddHost : add a single host.
Definition: RemoteKeeper.cc:71
Definition: CryptoBase.hpp:49
virtual ~RemoteKeeper()
destructor
Definition: RemoteKeeper.cc:46
Definition: RemoteKeeper.hpp:41
void MasterUpdate(uint64_t cutoff)
MasterUpdate: elect the master based on info received after cutoff.
Definition: RemoteKeeper.cc:128