Class ForwarderDistributor

Inheritance Relationships

Base Type

Class Documentation

class gkfs::rpc::ForwarderDistributor : public gkfs::rpc::Distributor

Public Functions

ForwarderDistributor(host_t fwhost, unsigned int hosts_size)
virtual host_t localhost() const final override
virtual host_t locate_data(const std::string &path, const chunkid_t &chnk_id) const final override
virtual host_t locate_data(const std::string &path, const chunkid_t &chnk_id, unsigned int host_size) final override
virtual host_t locate_file_metadata(const std::string &path) const override
virtual std::vector<host_t> locate_directory_metadata(const std::string &path) const override

Private Members

host_t fwd_host_
unsigned int hosts_size_
std::vector<host_t> all_hosts_
std::hash<std::string> str_hash