NCBI C++ ToolKit
|
Search Toolkit Book for CBDB_CacheReaderCF
Class factory for BDB implementation of ICache. More...
Public Types | |
typedef CICacheCF< CBDB_Cache > | TParent |
Public Types inherited from CICacheCF< CBDB_Cache > | |
typedef CSimpleClassFactoryImpl< ICache, CBDB_Cache > | TParent |
Public Types inherited from CSimpleClassFactoryImpl< ICache, CBDB_Cache > | |
typedef CBDB_Cache | TImplementation |
typedef ICache | TInterface |
typedef IClassFactory< ICache > | TParent |
typedef TParent::SDriverInfo | TDriverInfo |
typedef TParent::TDriverList | TDriverList |
Public Types inherited from IClassFactory< ICache > | |
typedef ICache | TInterface |
typedef ncbi::SDriverInfo | SDriverInfo |
typedef ncbi::TDriverList | TDriverList |
typedef CDefaultDriverVersion< ICache > | TDefaultDriverVersion |
Public Member Functions | |
CBDB_CacheReaderCF () | |
~CBDB_CacheReaderCF () | |
Public Member Functions inherited from CICacheCF< CBDB_Cache > | |
CICacheCF (const string &driver_name, int patch_level=-1) | |
void | ConfigureICache (ICache *icache, const TPluginManagerParamTree *params) const |
Utility function, configures common ICache parameters. More... | |
void | ConfigureTimeStamp (ICache *icache, const TPluginManagerParamTree *params, const string &options) const |
TParent::TInterface * | CreateInstance (const string &driver=kEmptyStr, CVersionInfo version=TParent::GetDefaultDrvVers(), const TPluginManagerParamTree *params=0) const final |
Create instance of TDriver. More... | |
Public Member Functions inherited from CSimpleClassFactoryImpl< ICache, CBDB_Cache > | |
CSimpleClassFactoryImpl (const string &driver_name, int patch_level=-1) | |
Construction. More... | |
void | GetDriverVersions (TDriverList &info_list) const |
Versions of the interface exported by the factory. More... | |
Public Member Functions inherited from IClassFactory< ICache > | |
virtual | ~IClassFactory (void) |
Private Member Functions | |
virtual ICache * | x_CreateInstance (const string &driver=kEmptyStr, CVersionInfo version=NCBI_INTERFACE_VERSION(ICache), const TPluginManagerParamTree *params=0) const |
Additional Inherited Members | |
Static Public Member Functions inherited from IClassFactory< ICache > | |
static const CVersionInfo & | GetDefaultDrvVers (void) |
Protected Member Functions inherited from CSimpleClassFactoryImpl< ICache, CBDB_Cache > | |
string | GetParam (const TPluginManagerParamTree *params, const string ¶m_name, bool mandatory, const string &default_value) const |
Utility function to get an element of parameter tree Throws an exception when mandatory parameter is missing (or returns the deafult value) More... | |
const string & | GetParam (const TPluginManagerParamTree *params, const string ¶m_name, bool mandatory) const |
This version always defaults to the empty string so that it can safely return a reference. More... | |
int | GetParamInt (const TPluginManagerParamTree *params, const string ¶m_name, bool, int default_value) const |
Utility function to get an integer of parameter tree Throws an exception when mandatory parameter is missing (or returns the deafult value) More... | |
Uint8 | GetParamDataSize (const TPluginManagerParamTree *params, const string ¶m_name, bool, unsigned int default_value) const |
Utility function to get an integer of parameter tree Throws an exception when mandatory parameter is missing (or returns the deafult value) More... | |
bool | GetParamBool (const TPluginManagerParamTree *params, const string ¶m_name, bool, bool default_value) const |
Utility function to get an bool of parameter tree Throws an exception when mandatory parameter is missing (or returns the deafult value) More... | |
double | GetParamDouble (const TPluginManagerParamTree *params, const string ¶m_name, bool, double default_value) const |
Utility function to get a double of parameter tree Throws an exception when mandatory parameter is missing (or returns the default value) More... | |
Protected Member Functions inherited from IClassFactory< ICache > | |
string | GetParam (const string &driver_name, const TPluginManagerParamTree *params, const string ¶m_name, bool mandatory, const string &default_value) const |
Utility function to get an element of parameter tree Throws an exception when mandatory parameter is missing (or returns the default value) More... | |
const string & | GetParam (const string &driver_name, const TPluginManagerParamTree *params, const string ¶m_name, bool mandatory) const |
This version always defaults to the empty string so that it can safely return a reference. More... | |
Protected Attributes inherited from CSimpleClassFactoryImpl< ICache, CBDB_Cache > | |
CVersionInfo | m_DriverVersionInfo |
string | m_DriverName |
Class factory for BDB implementation of ICache.
Definition at line 5163 of file bdb_blobcache.cpp.
Definition at line 5166 of file bdb_blobcache.cpp.
|
inline |
Definition at line 5168 of file bdb_blobcache.cpp.
|
inline |
Definition at line 5171 of file bdb_blobcache.cpp.
|
privatevirtual |
Implements CICacheCF< CBDB_Cache >.
Definition at line 5244 of file bdb_blobcache.cpp.
References CBDB_Cache::CBDB_Cache(), NStr::CompareNocase(), CBDB_Env::eDeadLock_Default, CBDB_Cache::eNoLock, CVersionInfo::eNonCompatible, CBDB_Cache::eNoTrans, env, CBDB_Cache::ePidLock, CBDB_Cache::eUseTrans, CBDB_Cache::eWriteNoSync, CBDB_Cache::eWriteSync, kCFParam_checkpoint_bytes, kCFParam_checkpoint_delay, kCFParam_direct_db, kCFParam_direct_log, kCFParam_drop_if_dirty, kCFParam_lock, kCFParam_lock_default, kCFParam_lock_pid_lock, kCFParam_log_file_max, kCFParam_log_mem_size, kCFParam_max_blob_size, kCFParam_mem_size, kCFParam_memp_trickle, kCFParam_name, kCFParam_overflow_limit, kCFParam_path, kCFParam_purge_batch_size, kCFParam_purge_batch_sleep, kCFParam_purge_clean_log, kCFParam_purge_thread, kCFParam_purge_thread_delay, kCFParam_read_only, kCFParam_rr_volumes, kCFParam_TAS_spins, kCFParam_transaction_log_path, kCFParam_ttl_prolong, kCFParam_use_transactions, kCFParam_write_sync, NCBI_INTERFACE_VERSION, and dtl::version.