NCBI C++ ToolKit
|
Search Toolkit Book for CNCBlobKeyLight
#include "netcached.hpp"
(Private to src/app/netcache
.)
Public Member Functions | |
CNCBlobKeyLight (void) | |
CNCBlobKeyLight (const CNCBlobKeyLight &another) | |
CNCBlobKeyLight & | operator= (const CNCBlobKeyLight &another) |
CNCBlobKeyLight (const string &packed_key) | |
CNCBlobKeyLight & | operator= (const string &packed_key) |
CNCBlobKeyLight (const CTempString &packed_key) | |
CNCBlobKeyLight & | operator= (const CTempString &packed_key) |
CNCBlobKeyLight & | Copy (const CNCBlobKeyLight &another) |
void | Clear (void) |
bool | IsValid (void) const |
unsigned int | KeyVersion (void) const |
bool | IsICacheKey (void) const |
const string & | PackedKey (void) const |
const CTempString & | RawKey (void) const |
const CTempString & | SubKey (void) const |
const CTempString & | Cache (void) const |
string | KeyForLogs (void) const |
Protected Member Functions | |
void | PackBlobKey (const CTempString &cache_name, const CTempString &blob_key, const CTempString &blob_subkey) |
void | UnpackBlobKey (void) |
void | SetKeyVersion (unsigned int v) |
Private Attributes | |
string | m_PackedKey |
CTempString | m_Cachename |
CTempString | m_RawKey |
CTempString | m_SubKey |
unsigned int | m_KeyVersion |
Definition at line 89 of file netcached.hpp.
|
inline |
Definition at line 152 of file netcached.hpp.
References Clear().
|
inline |
Definition at line 156 of file netcached.hpp.
References Copy().
Definition at line 164 of file netcached.hpp.
|
inline |
Definition at line 172 of file netcached.hpp.
|
inline |
Definition at line 192 of file netcached.hpp.
References m_Cachename.
Referenced by CNCActiveHandler::CopyPurge(), CNCActiveHandler::CopyRemove(), CNCActiveHandler::CopyUpdate(), CNCBlobAccessor::IsPurged(), CNCDistributionConf::IsThisServerKey(), CNCActiveHandler::ProxyBList(), CNCActiveHandler::ProxyGetMeta(), CNCActiveHandler::ProxyGetSize(), CNCActiveHandler::ProxyHasBlob(), CNCActiveHandler::ProxyProlong(), CNCActiveHandler::ProxyRead(), CNCActiveHandler::ProxyReadLast(), CNCActiveHandler::ProxyRemove(), CNCActiveHandler::ProxySetValid(), CNCActiveHandler::ProxyWrite(), CNCBlobAccessor::Purge(), CNCActiveHandler::SearchMeta(), CNCActiveHandler::SyncProlongOur(), CNCActiveHandler::x_SendCopyProlongCmd(), CNCActiveHandler::x_SendCopyPutCmd(), and CNCActiveHandler::x_SendSyncGetCmd().
void CNCBlobKeyLight::Clear | ( | void | ) |
Definition at line 174 of file netcached.cpp.
References CTempString::clear(), m_Cachename, m_KeyVersion, m_PackedKey, m_RawKey, and m_SubKey.
Referenced by CNCBlobKey::Assign(), CNCBlobKeyLight(), and CNCMessageHandler::x_AssignCmdParams().
CNCBlobKeyLight & CNCBlobKeyLight::Copy | ( | const CNCBlobKeyLight & | another | ) |
Definition at line 165 of file netcached.cpp.
References m_KeyVersion, m_PackedKey, and UnpackBlobKey().
Referenced by CNCBlobKeyLight(), and operator=().
|
inline |
Definition at line 176 of file netcached.hpp.
References CTempString::empty(), and m_Cachename.
Referenced by CNCMessageHandler::x_CloseCmdAndConn(), CNCMessageHandler::x_FinishCommand(), CNCMessageHandler::x_GetCurSlotServers(), CBulkCleaner::x_RequestBlobAccess(), and CNCMessageHandler::x_StartCommand().
|
inline |
Definition at line 196 of file netcached.hpp.
References CTempString::empty(), and RawKey().
Referenced by CNCMessageHandler::x_StartCommand().
string CNCBlobKeyLight::KeyForLogs | ( | void | ) | const |
Definition at line 212 of file netcached.cpp.
References CTempString::data(), CTempString::empty(), m_Cachename, m_RawKey, m_SubKey, result, and CTempString::size().
Referenced by CCurVerReader::ExecuteSlice().
unsigned int CNCBlobKeyLight::KeyVersion | ( | void | ) | const |
Definition at line 154 of file netcached.cpp.
References CTempString::data(), m_KeyVersion, m_RawKey, CNetCacheKey::ParseBlobKey(), CTempString::size(), and tmp.
|
inline |
Definition at line 160 of file netcached.hpp.
References Copy().
CNCBlobKeyLight & CNCBlobKeyLight::operator= | ( | const CTempString & | packed_key | ) |
Definition at line 146 of file netcached.cpp.
References CTempString::data(), m_KeyVersion, m_PackedKey, CTempString::size(), and UnpackBlobKey().
|
inline |
Definition at line 168 of file netcached.hpp.
|
protected |
Definition at line 183 of file netcached.cpp.
References CTempString::data(), m_PackedKey, and CTempString::size().
Referenced by CNCBlobKey::Assign().
Definition at line 180 of file netcached.hpp.
References m_PackedKey.
Referenced by CNCSyncLog::AddEvent(), CNCActiveSyncControl::AddStartEvent(), CNCSyncLog::GetEventsList(), s_WriteRecord(), CNCActiveHandler::SyncProlongPeer(), CNCMessageHandler::x_CloseCmdAndConn(), CNCMessageHandler::x_DoCmd_GetBList(), CNCMessageHandler::x_DoCmd_SyncStart(), CNCActiveHandler::x_DoCopyPut(), CNCActiveHandler::x_DoProlongOur(), CNCActiveHandler::x_DoSyncGet(), CNCMessageHandler::x_FinishCommand(), CNCMessageHandler::x_GetCurSlotServers(), CBulkCleaner::x_RequestBlobAccess(), CNCActiveHandler::x_SetSlotAndBucketAndVerifySlot(), and CNCMessageHandler::x_StartCommand().
|
inline |
Definition at line 184 of file netcached.hpp.
References m_RawKey.
Referenced by CNCActiveHandler::CopyPurge(), CNCActiveHandler::CopyRemove(), CNCActiveHandler::CopyUpdate(), CNCDistributionConf::GetSlotByNetCacheKey(), CNCBlobAccessor::IsPurged(), CNCDistributionConf::IsThisServerKey(), IsValid(), CNCActiveHandler::ProxyBList(), CNCActiveHandler::ProxyGetMeta(), CNCActiveHandler::ProxyGetSize(), CNCActiveHandler::ProxyHasBlob(), CNCActiveHandler::ProxyProlong(), CNCActiveHandler::ProxyRead(), CNCActiveHandler::ProxyReadLast(), CNCActiveHandler::ProxyRemove(), CNCActiveHandler::ProxySetValid(), CNCActiveHandler::ProxyWrite(), CNCBlobAccessor::Purge(), CNCActiveHandler::SearchMeta(), CNCActiveHandler::SyncProlongOur(), CNCMessageHandler::x_DoCmd_GetMeta(), CNCMessageHandler::x_DoCmd_Prolong(), CNCMessageHandler::x_DoCmd_Put(), CNCMessageHandler::x_FinishReadingBlob(), CNCMessageHandler::x_PurgeToNextPeer(), CNCActiveHandler::x_SendCopyProlongCmd(), CNCActiveHandler::x_SendCopyPutCmd(), CNCActiveHandler::x_SendSyncGetCmd(), and CNCMessageHandler::x_StartCommand().
|
inlineprotected |
Definition at line 200 of file netcached.hpp.
References m_KeyVersion.
Referenced by CNCBlobKey::Assign().
|
inline |
Definition at line 188 of file netcached.hpp.
References m_SubKey.
Referenced by CNCActiveHandler::CopyRemove(), CNCActiveHandler::CopyUpdate(), CNCDistributionConf::IsThisServerKey(), CNCActiveHandler::ProxyBList(), CNCActiveHandler::ProxyGetMeta(), CNCActiveHandler::ProxyGetSize(), CNCActiveHandler::ProxyHasBlob(), CNCActiveHandler::ProxyProlong(), CNCActiveHandler::ProxyRead(), CNCActiveHandler::ProxyReadLast(), CNCActiveHandler::ProxyRemove(), CNCActiveHandler::ProxySetValid(), CNCActiveHandler::ProxyWrite(), CNCActiveHandler::SearchMeta(), CNCActiveHandler::SyncProlongOur(), CNCActiveHandler::x_SendCopyProlongCmd(), CNCActiveHandler::x_SendCopyPutCmd(), and CNCActiveHandler::x_SendSyncGetCmd().
|
protected |
Definition at line 195 of file netcached.cpp.
References CTempString::assign(), m_Cachename, m_PackedKey, m_RawKey, and m_SubKey.
Referenced by CNCBlobKey::Assign(), Copy(), and operator=().
|
private |
Definition at line 122 of file netcached.hpp.
Referenced by Cache(), Clear(), IsICacheKey(), KeyForLogs(), and UnpackBlobKey().
|
private |
Definition at line 125 of file netcached.hpp.
Referenced by Clear(), Copy(), KeyVersion(), operator=(), and SetKeyVersion().
|
private |
Definition at line 121 of file netcached.hpp.
Referenced by Clear(), Copy(), operator=(), PackBlobKey(), PackedKey(), and UnpackBlobKey().
|
private |
Definition at line 123 of file netcached.hpp.
Referenced by Clear(), KeyForLogs(), KeyVersion(), RawKey(), and UnpackBlobKey().
|
private |
Definition at line 124 of file netcached.hpp.
Referenced by Clear(), KeyForLogs(), SubKey(), and UnpackBlobKey().