0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Types | Private Attributes | List of all members
Hypertable::NamespaceCache Class Reference

#include <NamespaceCache.h>

Collaboration diagram for Hypertable::NamespaceCache:
Collaboration graph
[legend]

Public Member Functions

 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)
 
NamespacePtr get (const std::string &name)
 
bool remove (const std::string &name)
 

Private Types

typedef std::unordered_map
< String, NamespacePtr
NamespaceMap
 

Private Attributes

PropertiesPtr m_props
 
RangeLocatorPtr m_range_locator
 
Commm_comm
 
ConnectionManagerPtr m_conn_manager
 
Hyperspace::SessionPtr m_hyperspace
 
ApplicationQueueInterfacePtr m_app_queue
 
NameIdMapperPtr m_namemap
 
Lib::Master::ClientPtr m_master_client
 
TableCachePtr m_table_cache
 
uint32_t m_timeout_ms
 
std::mutex m_mutex
 
NamespaceMap m_namespace_map
 
Clientm_client
 

Detailed Description

Definition at line 42 of file NamespaceCache.h.

Member Typedef Documentation

typedef std::unordered_map<String, NamespacePtr> Hypertable::NamespaceCache::NamespaceMap
private

Definition at line 64 of file NamespaceCache.h.

Constructor & Destructor Documentation

NamespaceCache::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 
)

Definition at line 28 of file NamespaceCache.cc.

Member Function Documentation

NamespacePtr NamespaceCache::get ( const std::string &  name)
Parameters
namenamespace name
Returns
NULL if the namespace doesn't exist, ow return a pointer to the Namespace

Definition at line 41 of file NamespaceCache.cc.

bool NamespaceCache::remove ( const std::string &  name)
Parameters
name
Returns
false if entry is not in cache

Definition at line 63 of file NamespaceCache.cc.

Member Data Documentation

ApplicationQueueInterfacePtr Hypertable::NamespaceCache::m_app_queue
private

Definition at line 71 of file NamespaceCache.h.

Client* Hypertable::NamespaceCache::m_client
private

Definition at line 78 of file NamespaceCache.h.

Comm* Hypertable::NamespaceCache::m_comm
private

Definition at line 68 of file NamespaceCache.h.

ConnectionManagerPtr Hypertable::NamespaceCache::m_conn_manager
private

Definition at line 69 of file NamespaceCache.h.

Hyperspace::SessionPtr Hypertable::NamespaceCache::m_hyperspace
private

Definition at line 70 of file NamespaceCache.h.

Lib::Master::ClientPtr Hypertable::NamespaceCache::m_master_client
private

Definition at line 73 of file NamespaceCache.h.

std::mutex Hypertable::NamespaceCache::m_mutex
private

Definition at line 76 of file NamespaceCache.h.

NameIdMapperPtr Hypertable::NamespaceCache::m_namemap
private

Definition at line 72 of file NamespaceCache.h.

NamespaceMap Hypertable::NamespaceCache::m_namespace_map
private

Definition at line 77 of file NamespaceCache.h.

PropertiesPtr Hypertable::NamespaceCache::m_props
private

Definition at line 66 of file NamespaceCache.h.

RangeLocatorPtr Hypertable::NamespaceCache::m_range_locator
private

Definition at line 67 of file NamespaceCache.h.

TableCachePtr Hypertable::NamespaceCache::m_table_cache
private

Definition at line 74 of file NamespaceCache.h.

uint32_t Hypertable::NamespaceCache::m_timeout_ms
private

Definition at line 75 of file NamespaceCache.h.


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