NCBI C++ ToolKit
|
#include <ncbi_pch.hpp>
#include "netcache_api_impl.hpp"
#include <connect/services/neticache_client.hpp>
#include <connect/services/error_codes.hpp>
#include <connect/services/netcache_api_expt.hpp>
#include <connect/services/srv_connections.hpp>
#include <connect/ncbi_conn_exception.hpp>
#include <util/cache/icache_cf.hpp>
#include <util/transmissionrw.hpp>
#include <corelib/ncbitime.hpp>
#include <corelib/request_ctx.hpp>
#include <corelib/plugin_manager_impl.hpp>
#include <corelib/ncbi_system.hpp>
#include <corelib/ncbi_safe_static.hpp>
#include <memory>
#include <sstream>
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
struct | SNetICacheClientImpl |
class | SWeightedServiceTraversal |
class | CSetValidWarningSuppressor |
class | CNetICacheCF |
Class factory for NetCache implementation of ICache. More... | |
Macros | |
#define | MAX_ICACHE_CACHE_NAME_LENGTH 64 |
#define | MAX_ICACHE_KEY_LENGTH 256 |
#define | MAX_ICACHE_SUBKEY_LENGTH 256 |
#define | NCBI_USE_ERRCODE_X ConnServ_NetCache |
Functions | |
static string | s_CheckKeySubkey (const string &key, const string &subkey, string *encoded_key) |
static string | s_KeySubkeyToBlobID (const string &key, const string &subkey) |
static string | s_KeyVersionSubkeyToBlobID (const string &key, int version, const string &subkey) |
void | NCBI_EntryPoint_xcache_netcache (CPluginManager< ICache >::TDriverInfoList &info_list, CPluginManager< ICache >::EEntryPointRequest method) |
void | Cache_RegisterDriver_NetCache (void) |
Variables | |
const char *const | kNetICacheDriverName = "netcache" |
static const char | s_NetICacheAPIName [] = "NetICacheClient" |
#define MAX_ICACHE_CACHE_NAME_LENGTH 64 |
Definition at line 56 of file neticache_client.cpp.
#define MAX_ICACHE_KEY_LENGTH 256 |
Definition at line 57 of file neticache_client.cpp.
#define MAX_ICACHE_SUBKEY_LENGTH 256 |
Definition at line 58 of file neticache_client.cpp.
#define NCBI_USE_ERRCODE_X ConnServ_NetCache |
Definition at line 60 of file neticache_client.cpp.
|
static |
Definition at line 67 of file neticache_client.cpp.
References ncbi::grid::netcache::search::fields::key, MAX_ICACHE_KEY_LENGTH, MAX_ICACHE_SUBKEY_LENGTH, NCBI_THROW, NStr::PrintableString(), and ncbi::grid::netcache::search::fields::subkey.
Referenced by s_KeySubkeyToBlobID(), and s_KeyVersionSubkeyToBlobID().
Definition at line 84 of file neticache_client.cpp.
References kEmptyStr, ncbi::grid::netcache::search::fields::key, s_CheckKeySubkey(), and ncbi::grid::netcache::search::fields::subkey.
Referenced by SNetICacheClientImpl::ReadCurrentBlobNotOlderThan().
|
static |
Definition at line 100 of file neticache_client.cpp.
References NStr::IntToString(), kEmptyStr, ncbi::grid::netcache::search::fields::key, s_CheckKeySubkey(), ncbi::grid::netcache::search::fields::subkey, and dtl::version.
Referenced by SNetICacheClientImpl::ExecStdCmd(), CNetICacheClient::GetBlobInfo(), CNetICacheClient::GetNetCacheWriter(), SNetICacheClientImpl::GetReadStreamPart(), CNetICacheClient::SetBlobVersionAsCurrent(), and CNetICacheClient::Store().
|
static |
Definition at line 120 of file neticache_client.cpp.
Referenced by SNetICacheClientImpl::SNetICacheClientImpl().