identt
Public Types | Public Member Functions | List of all members
identt::hrpc::RemoteKeeper Class Reference

Public Types

using pointer = std::shared_ptr< RemoteKeeper >
 

Public Member Functions

 RemoteKeeper (identt::utils::SharedTable::pointer s)
 constructor More...
 
 RemoteKeeper ()=delete
 make noncopyable
 
 RemoteKeeper (const RemoteKeeper &)=delete
 
RemoteKeeperoperator= (const RemoteKeeper &)=delete
 
virtual ~RemoteKeeper ()
 destructor
 
void SetHosts (identt::hrpc::StateT *state)
 SetHosts : get list of hosts. More...
 
void AddHost (identt::hrpc::RemoteT *rms)
 AddHost : add a single host. More...
 
void AddHost (std::string name, uint64_t logcounter, uint64_t updated_at)
 AddHost : add a single host. More...
 
void GetHosts (identt::hrpc::StateT *state)
 GetHosts : get params and list of hosts. More...
 
void HostUpdate ()
 HostUpdate: update all hosts. More...
 
void MasterUpdate (uint64_t cutoff)
 MasterUpdate: elect the master based on info received after cutoff. More...
 

Constructor & Destructor Documentation

§ RemoteKeeper()

identt::hrpc::RemoteKeeper::RemoteKeeper ( identt::utils::SharedTable::pointer  s)

constructor

Member Function Documentation

§ AddHost() [1/2]

void identt::hrpc::RemoteKeeper::AddHost ( identt::hrpc::RemoteT *  rms)

AddHost : add a single host.

Parameters
rmsidentt::hrpc::RemoteT* rms
Returns
none

§ AddHost() [2/2]

void identt::hrpc::RemoteKeeper::AddHost ( std::string  name,
uint64_t  logcounter,
uint64_t  updated_at 
)

AddHost : add a single host.

Parameters
namestd::string name
logcounteruint64_t logcounter
updated_atuint64_t updated_at
Returns
none

§ GetHosts()

void identt::hrpc::RemoteKeeper::GetHosts ( identt::hrpc::StateT *  state)

GetHosts : get params and list of hosts.

Parameters
stateidentt::hrpc::StateT* state
Returns
none

§ HostUpdate()

void identt::hrpc::RemoteKeeper::HostUpdate ( )

HostUpdate: update all hosts.

HostUpdate : update hosts with latest.

Returns
none

§ MasterUpdate()

void identt::hrpc::RemoteKeeper::MasterUpdate ( uint64_t  cutoff)

MasterUpdate: elect the master based on info received after cutoff.

Parameters
stateuint64_t cutoff
Returns
none

§ SetHosts()

void identt::hrpc::RemoteKeeper::SetHosts ( identt::hrpc::StateT *  state)

SetHosts : get list of hosts.

SetHosts : set list of hosts.

Parameters
stateidentt::hrpc::StateT* state
Returns
none

The documentation for this class was generated from the following files: