NCBI C++ ToolKit
Public Member Functions | Private Attributes | List of all members
NDirectNetStorageImpl::CNetCache Class Reference

Search Toolkit Book for NDirectNetStorageImpl::CNetCache

#include "state.hpp"
(Private to src/misc/netstorage.)

+ Inheritance diagram for NDirectNetStorageImpl::CNetCache:
+ Collaboration diagram for NDirectNetStorageImpl::CNetCache:

Public Member Functions

 CNetCache (CNetStorageObjectLoc &object_loc, SNetStorageObjectImpl &fsm, SContext *context, bool *cancel_relocate)
 
bool Init ()
 
void SetLocator () override
 
INetStorageObjectStateStartRead (void *, size_t, size_t *, ERW_Result *) override
 
INetStorageObjectStateStartWrite (const void *, size_t, size_t *, ERW_Result *) override
 
Uint8 GetSize () override
 
CNetStorageObjectInfo GetInfo () override
 
bool Exists () override
 
ENetStorageRemoveResult Remove () override
 
void SetExpiration (const CTimeout &) override
 
string FileTrack_Path () override
 
pair< string, stringGetUserInfo () override
 
- Public Member Functions inherited from SNetStorageObjectDirectState< TBase >
template<class... TArgs>
 SNetStorageObjectDirectState (CNetStorageObjectLoc &locator, TArgs &&... args)
 
string GetLoc () const override
 
CNetStorageObjectLocLocator () override
 

Private Attributes

CRef< SContextm_Context
 
CNetICacheClientExt m_Client
 
TState< CRONetCachem_Read
 
TState< CWONetCachem_Write
 

Detailed Description

Definition at line 274 of file state.hpp.

Constructor & Destructor Documentation

◆ CNetCache()

NDirectNetStorageImpl::CNetCache::CNetCache ( CNetStorageObjectLoc object_loc,
SNetStorageObjectImpl fsm,
SContext context,
bool cancel_relocate 
)
inline

Definition at line 277 of file state.hpp.

Member Function Documentation

◆ Exists()

bool NDirectNetStorageImpl::CNetCache::Exists ( void  )
override

◆ FileTrack_Path()

string NDirectNetStorageImpl::CNetCache::FileTrack_Path ( )
override

◆ GetInfo()

CNetStorageObjectInfo NDirectNetStorageImpl::CNetCache::GetInfo ( void  )
override

◆ GetSize()

Uint8 NDirectNetStorageImpl::CNetCache::GetSize ( void  )
override

◆ GetUserInfo()

pair< string, string > NDirectNetStorageImpl::CNetCache::GetUserInfo ( )
override

◆ Init()

bool NDirectNetStorageImpl::CNetCache::Init ( void  )

◆ Remove()

ENetStorageRemoveResult NDirectNetStorageImpl::CNetCache::Remove ( void  )
override

◆ SetExpiration()

void NDirectNetStorageImpl::CNetCache::SetExpiration ( const CTimeout requested_ttl)
override

◆ SetLocator()

void NDirectNetStorageImpl::CNetCache::SetLocator ( )
override

◆ StartRead()

INetStorageObjectState * NDirectNetStorageImpl::CNetCache::StartRead ( void *  buf,
size_t  count,
size_t *  bytes_read,
ERW_Result result 
)
override

◆ StartWrite()

INetStorageObjectState * NDirectNetStorageImpl::CNetCache::StartWrite ( const void *  buf,
size_t  count,
size_t *  bytes_written,
ERW_Result result 
)
override

Member Data Documentation

◆ m_Client

CNetICacheClientExt NDirectNetStorageImpl::CNetCache::m_Client
private

Definition at line 299 of file state.hpp.

Referenced by GetInfo(), GetSize(), Init(), Remove(), SetExpiration(), SetLocator(), StartRead(), and StartWrite().

◆ m_Context

CRef<SContext> NDirectNetStorageImpl::CNetCache::m_Context
private

Definition at line 298 of file state.hpp.

Referenced by Init().

◆ m_Read

TState<CRONetCache> NDirectNetStorageImpl::CNetCache::m_Read
private

Definition at line 300 of file state.hpp.

Referenced by StartRead().

◆ m_Write

TState<CWONetCache> NDirectNetStorageImpl::CNetCache::m_Write
private

Definition at line 301 of file state.hpp.

Referenced by StartWrite().


The documentation for this class was generated from the following files:
Modified on Sat Feb 24 07:48:33 2024 by modify_doxy.py rev. 669887