|
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
6 #ifndef swcdb_db_client_mngr_Groups_h
7 #define swcdb_db_client_mngr_Groups_h
16 namespace SWC {
namespace client {
namespace Mngr {
23 typedef std::shared_ptr<Group>
Ptr;
45 void print(std::ostream& out);
61 public std::enable_shared_from_this<Groups>{
78 typedef std::shared_ptr<Groups>
Ptr;
106 void print(std::ostream& out);
108 void add(GroupHost&& g_host);
119 uint16_t port, std::string host_or_ips);
132 #ifdef SWC_IMPL_SOURCE
137 #endif // swcdb_db_client_mngr_Groups_h
void _get_host(const Comm::EndPoint &point, Comm::EndPoints *&found_host) noexcept
void remove(const Comm::EndPoints &endpoints)
Group(uint8_t role, cid_t cid_begin, cid_t cid_end, const Comm::EndPoints &endpoints)
void hosts(uint8_t role, cid_t cid, Hosts &hosts, GroupHost &group_host)
void print(std::ostream &out)
void add(GroupHost &&g_host)
asio::ip::tcp::endpoint EndPoint
void select(const cid_t &cid, Comm::EndPoints &endpoints)
std::shared_ptr< Groups > Ptr
std::shared_ptr< Group > Ptr
bool is_in_group(const Comm::EndPoint &endpoint) noexcept
Core::Vector< Comm::EndPoints > Hosts
Comm::EndPoints get_endpoints(uint8_t role=0, cid_t cid_begin=0, cid_t cid_end=0)
The SWC-DB C++ namespace 'SWC'.
void apply_endpoints(Comm::EndPoints &to_endpoints)
void add_host(Comm::EndPoints &new_endpoints)
Groups & operator=(const Groups &)=delete
Core::Vector< GroupHost > m_active_g_host
SWC_CAN_INLINE GroupHost() noexcept
GroupHost(GroupHost &&) noexcept=default
void _add_host(uint8_t role, cid_t cid_begin, cid_t cid_end, uint16_t port, std::string host_or_ips)
Groups(const Config::Settings &settings)
Groups(const Groups &)=delete
Comm::EndPoints endpoints
Config::Property::Value_strings_g::Ptr cfg_hosts
Core::Vector< Group::Ptr > Vec
void print(std::ostream &out)