Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/structSNetStorageRPC.html below:
NCBI C++ ToolKit: SNetStorageRPC Struct Reference
Search Toolkit Book for SNetStorageRPC
#include "netstorage_rpc.hpp"
(Private to src/connect/services
.)
SNetStorageRPC (const TConfig &config, TNetStorageFlags default_flags) SNetStorageRPC (SNetServerInPool *server, SNetStorageRPC *parent) SNetStorageObjectImpl * Create (TNetStorageFlags flags) override SNetStorageObjectImpl * Open (const string &object_loc) override CJsonNode Exchange (CNetService service, const CJsonNode &request, CNetServerConnection *conn=NULL, CNetServer::TInstance server_to_use=NULL) const CJsonNode MkStdRequest (const string &request_type) const CJsonNode MkObjectRequest (const string &request_type, const string &object_loc) const CJsonNode MkObjectRequest (const string &request_type, const string &unique_key, TNetStorageFlags flags) const EVoid x_InitNetCacheAPI () CNetService GetServiceIfLocator (const string &object_loc) TNetStorageFlags GetFlags (TNetStorageFlags flags) const CObject (void) Constructor. More...
CObject (const CObject &src) Copy constructor. More...
virtual ~CObject (void) Destructor. More...
CObject & operator= (const CObject &src) THROWS_NONE Assignment operator. More...
bool CanBeDeleted (void) const THROWS_NONE Check if object can be deleted. More...
bool IsAllocatedInPool (void) const THROWS_NONE Check if object is allocated in memory pool (not system heap) More...
bool Referenced (void) const THROWS_NONE Check if object is referenced. More...
bool ReferencedOnlyOnce (void) const THROWS_NONE Check if object is referenced only once. More...
void AddReference (void) const Add reference to object. More...
void RemoveReference (void) const Remove reference to object. More...
void ReleaseReference (void) const Remove reference without deleting object. More...
virtual void DoNotDeleteThisObject (void) Mark this object as not allocated in heap – do not delete this object. More...
virtual void DoDeleteThisObject (void) Mark this object as allocated in heap – object can be deleted. More...
void * operator new (size_t size) Define new operator for memory allocation. More...
void * operator new[] (size_t size) Define new[] operator for 'array' memory allocation. More...
void operator delete (void *ptr) Define delete operator for memory deallocation. More...
void operator delete[] (void *ptr) Define delete[] operator for memory deallocation. More...
void * operator new (size_t size, void *place) Define new operator. More...
void operator delete (void *ptr, void *place) Define delete operator. More...
void * operator new (size_t size, CObjectMemoryPool *place) Define new operator using memory pool. More...
void operator delete (void *ptr, CObjectMemoryPool *place) Define delete operator. More...
virtual void DebugDump (CDebugDumpContext ddc, unsigned int depth) const Define method for dumping debug information. More...
CDebugDumpable (void) virtual ~CDebugDumpable (void) void DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const void DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const void DumpToConsole (void) const
Definition at line 43 of file netstorage_rpc.hpp.
◆ SNetStorageRPC() [1/2]
Definition at line 759 of file netstorage_rpc.cpp.
References SNetStorage::SConfig::client_name, SNetServiceImpl::Create(), SNetStorage::SConfig::err_mode, CNcbiApplicationAPI::GetProgramExecutablePath(), SNetStorage::SConfig::hello_service, CNcbiApplicationAPI::InstanceGuard(), m_Config, m_RequestNumber, m_Service, SNetStorage::SConfig::metadata, MkStdRequest(), NST_PROTOCOL_VERSION, SNetStorage::SConfig::service, CAtomicCounter::Set(), CJsonNode::SetString(), and SNetStorage::SConfig::ticket.
◆ SNetStorageRPC() [2/2] ◆ Create()
Implements SNetStorageImpl.
Definition at line 798 of file netstorage_rpc.cpp.
References conn, SNetStorage::SConfig::default_storage, SNetStorage::SConfig::eNetCache, SNetStorage::SConfig::eNetStorage, Exchange(), flags, GetFlags(), GetServiceIfLocator(), kEmptyStr, l(), m_Config, m_NetCacheAPI, m_Service, MkObjectRequest(), MkStdRequest(), NCBI_THROW_FMT, r(), s_SetStorageFlags(), SNetStorage_NetCacheBlob::StartWriting(), and x_InitNetCacheAPI().
◆ Exchange() ◆ GetFlags() ◆ GetServiceIfLocator()
Definition at line 985 of file netstorage_rpc.cpp.
References CNetService::Clone(), SNetStorage::SConfig::default_storage, eCIC_NetCacheBlobKey, map_checker< Container >::end(), SNetStorage::SConfig::eNetCache, map_checker< Container >::find(), CCompoundIDPool::FromString(), CCompoundID::GetClass(), CNetStorageObjectLoc::GetServiceName(), i, map_checker< Container >::insert(), m_CompoundIDPool, m_Config, m_Service, m_ServiceMap, CNetCacheKey::ParseBlobKey(), and x_InitNetCacheAPI().
Referenced by Create(), and Open().
◆ MkObjectRequest() [1/2] ◆ MkObjectRequest() [2/2] ◆ MkStdRequest()
Definition at line 931 of file netstorage_rpc.cpp.
References CAtomicCounter::Add(), context, CRequestContext_PassThrough::eFormat_UrlEncoded, format, CRequestContext::GetClientIP(), CRequestContext::GetNextSubHitID(), CDiagContext::GetRequestContext(), CRequestContext::GetSessionID(), CRequestContext::IsSetClientIP(), CRequestContext::IsSetSessionID(), m_RequestNumber, CJsonNode::NewObjectNode(), CJsonNode::SetInteger(), and CJsonNode::SetString().
Referenced by Create(), MkObjectRequest(), and SNetStorageRPC().
◆ Open() ◆ x_InitNetCacheAPI() EVoid SNetStorageRPC::x_InitNetCacheAPI ( ) ◆ m_CompoundIDPool ◆ m_Config ◆ m_DefaultFlags ◆ m_NetCacheAPI ◆ m_RequestNumber ◆ m_Service ◆ m_ServiceMap
The documentation for this struct was generated from the following files:
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4