NCBI C++ ToolKit
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
SNCCacheData Class Reference

Search Toolkit Book for SNCCacheData

#include "nc_storage.hpp"
(Private to src/app/netcache.)

+ Inheritance diagram for SNCCacheData:
+ Collaboration diagram for SNCCacheData:

Public Member Functions

 SNCCacheData (void)
 
 ~SNCCacheData (void)
 
CNCBlobVerManagerGet_ver_mgr (void) const
 
- Public Member Functions inherited from SNCBlobSummary
 SNCBlobSummary (void)
 
void reset (void)
 
SNCBlobSummaryoperator= (const SNCBlobSummary &other)
 
bool isOlder (const SNCBlobSummary &other) const
 
bool isSameData (const SNCBlobSummary &other) const
 
bool isEqual (const SNCBlobSummary &other) const
 
bool isExpired (void) const
 
- Public Member Functions inherited from CSrvRCUUser
void CallRCU (void)
 Method to be called to schedule call of ExecuteRCU() at appropriate time. More...
 
 CSrvRCUUser (void)
 
virtual ~CSrvRCUUser (void)
 

Public Attributes

SNCDataCoord coord
 
string key
 
int saved_dead_time
 
Uint2 time_bucket
 
Uint2 map_size
 
Uint4 chunk_size
 
CAtomicCounter_WithAutoInit ref_cnt
 
CMiniMutex lock
 
- Public Attributes inherited from SNCBlobSummary
Uint8 size
 
Uint8 create_time
 
Uint8 create_server
 
Uint4 create_id
 
int dead_time
 
int expire
 
int ver_expire
 
- Public Attributes inherited from CSrvRCUUser
TSrvRCUListHook m_RCUListHook
 

Private Member Functions

 SNCCacheData (const SNCCacheData &)
 
SNCCacheDataoperator= (const SNCCacheData &)
 
virtual void ExecuteRCU (void)
 Method implementing RCU job that was scheduled earlier by CallRCU(). More...
 

Private Attributes

CNCBlobVerManagerver_mgr
 

Friends

class CNCBlobVerManager
 

Detailed Description

Definition at line 57 of file nc_storage.hpp.

Constructor & Destructor Documentation

◆ SNCCacheData() [1/2]

SNCCacheData::SNCCacheData ( void  )
inline

Definition at line 193 of file nc_storage.hpp.

◆ ~SNCCacheData()

SNCCacheData::~SNCCacheData ( void  )
inline

Definition at line 206 of file nc_storage.hpp.

References abort(), coord, SNCDataCoord::empty(), CAtomicCounter::Get(), ref_cnt, and ver_mgr.

◆ SNCCacheData() [2/2]

SNCCacheData::SNCCacheData ( const SNCCacheData )
private

Member Function Documentation

◆ ExecuteRCU()

void SNCCacheData::ExecuteRCU ( void  )
privatevirtual

Method implementing RCU job that was scheduled earlier by CallRCU().

Implements CSrvRCUUser.

Definition at line 4728 of file nc_storage.cpp.

◆ Get_ver_mgr()

CNCBlobVerManager* SNCCacheData::Get_ver_mgr ( void  ) const
inline

◆ operator=()

SNCCacheData& SNCCacheData::operator= ( const SNCCacheData )
private

Friends And Related Function Documentation

◆ CNCBlobVerManager

friend class CNCBlobVerManager
friend

Definition at line 91 of file nc_storage.hpp.

Member Data Documentation

◆ chunk_size

Uint4 SNCCacheData::chunk_size

◆ coord

SNCDataCoord SNCCacheData::coord

◆ key

string SNCCacheData::key

◆ lock

CMiniMutex SNCCacheData::lock

◆ map_size

Uint2 SNCCacheData::map_size

◆ ref_cnt

CAtomicCounter_WithAutoInit SNCCacheData::ref_cnt

Definition at line 69 of file nc_storage.hpp.

Referenced by CBlobCacher::x_CacheMetaRec(), and ~SNCCacheData().

◆ saved_dead_time

int SNCCacheData::saved_dead_time

◆ time_bucket

Uint2 SNCCacheData::time_bucket

◆ ver_mgr

CNCBlobVerManager* SNCCacheData::ver_mgr
private

The documentation for this class was generated from the following files:
Modified on Sat Apr 20 12:20:11 2024 by modify_doxy.py rev. 669887