32 : m_props(props), m_range_locator(range_locator), m_comm(conn_manager->get_comm()),
33 m_conn_manager(conn_manager), m_hyperspace(hyperspace), m_app_queue(app_queue),
34 m_namemap(namemap), m_master_client(master_client), m_table_cache(table_cache),
35 m_timeout_ms(default_timeout_ms), m_client(client) {
42 lock_guard<mutex> lock(
m_mutex);
44 bool is_namespace =
false;
51 if (!
m_namemap->name_to_id(name,
id, &is_namespace) || !is_namespace)
64 lock_guard<mutex> lock(
m_mutex);
Lib::Master::ClientPtr m_master_client
bool remove(const std::string &name)
ConnectionManagerPtr m_conn_manager
RangeLocatorPtr m_range_locator
std::shared_ptr< RangeLocator > RangeLocatorPtr
Smart pointer to RangeLocator.
std::shared_ptr< Namespace > NamespacePtr
Shared smart pointer to Namespace.
std::shared_ptr< Client > ClientPtr
std::shared_ptr< Session > SessionPtr
NameIdMapperPtr m_namemap
NamespaceCache(PropertiesPtr &props, RangeLocatorPtr &range_locator, ConnectionManagerPtr &conn_manager, Hyperspace::SessionPtr &hyperspace, ApplicationQueueInterfacePtr &app_queue, NameIdMapperPtr &namemap, Lib::Master::ClientPtr &master_client, TableCachePtr &table_cache, uint32_t default_timeout_ms, Client *client)
std::shared_ptr< Properties > PropertiesPtr
Compatibility Macros for C/C++.
std::shared_ptr< ApplicationQueueInterface > ApplicationQueueInterfacePtr
Smart pointer to ApplicationQueueInterface.
NamespaceMap m_namespace_map
Hyperspace::SessionPtr m_hyperspace
std::shared_ptr< TableCache > TableCachePtr
Smart pointer to TableCache.
ApplicationQueueInterfacePtr m_app_queue
std::shared_ptr< ConnectionManager > ConnectionManagerPtr
Smart pointer to ConnectionManager.
std::shared_ptr< NameIdMapper > NameIdMapperPtr
Smart pointer to NameIdMapper.
#define HT_THROW(_code_, _msg_)
NamespacePtr get(const std::string &name)
TableCachePtr m_table_cache