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

Search Toolkit Book for CExpiredCleaner

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

+ Inheritance diagram for CExpiredCleaner:
+ Collaboration diagram for CExpiredCleaner:

Public Member Functions

 CExpiredCleaner (void)
 
virtual ~CExpiredCleaner (void)
 
- Public Member Functions inherited from CSrvTask
 CSrvTask (void)
 
void SetRunnable (bool boost=false)
 Set this task "runnable", i.e. More...
 
void RunAfter (Uint4 delay_sec)
 This call is basically equivalent to SetRunnable() but with guarantee that task will be scheduled for execution no earlier than delay_sec later (approximately, can be up to a second less if measured in absolute wall time). More...
 
virtual void Terminate (void)
 Stops task's execution and deletes it. More...
 
void SetPriority (Uint4 prty)
 Set and retrieve task's priority. More...
 
Uint4 GetPriority (void)
 
void CreateNewDiagCtx (void)
 Create new diagnostic context for this task to work in. More...
 
void SetDiagCtx (CRequestContext *ctx)
 Set diagnostic context for this task to work in. More...
 
CRequestContextGetDiagCtx (void)
 Get current diagnostic context for the task. More...
 
void ReleaseDiagCtx (void)
 Releases current diagnostic context of the task. More...
 
virtual ~CSrvTask (void)
 
virtual void InternalRunSlice (TSrvThreadNum thr_num)
 This is the real time slice execution method called from TaskServer. More...
 

Static Public Member Functions

static void x_DeleteData (SNCCacheData *cache_data)
 
- Static Public Member Functions inherited from CSrvTask
static void PrintState (CSrvSocketTask &task)
 

Private Member Functions

State x_StartSession (void)
 
State x_CleanNextBucket (void)
 
State x_DeleteNextData (void)
 
State x_FinishSession (void)
 

Private Attributes

int m_StartTime
 
int m_NextDead
 
Uint4 m_ExtraGCTime
 
Uint2 m_CurBucket
 
size_t m_CurDelData
 
int m_BatchSize
 
bool m_DoExtraGC
 
vector< SNCCacheData * > m_CacheDatas
 

Additional Inherited Members

- Public Attributes inherited from CSrvTask
TSrvTaskListHook m_TaskListHook
 Hook to put this task into TSrvTaskList. More...
 
TSrvThreadNum m_LastThread
 Thread number where this task was executed last time. More...
 
TSrvTaskFlags m_TaskFlags
 Bit-OR of flags for this task. More...
 
int m_LastActive
 Time (in seconds) when the task was active last time, i.e. More...
 
Uint4 m_Priority
 Task's priority. More...
 
CRequestContextm_DiagCtx
 Current diagnostic context for this task. More...
 
CRequestContext ** m_DiagChain
 Nested diagnostic contexts of this task. More...
 
size_t m_DiagChainSize
 
STimerTicketm_Timer
 Timer ticket assigned to this task when it calls RunAfter(). More...
 
CSrvTaskTerminator m_Terminator
 Object that will delete this task after call to Terminate(). More...
 
- Protected Types inherited from CSrvStatesTask< CExpiredCleaner >
typedef CExpiredCleaner Me
 Convenient typedef to use in state pointers. More...
 
typedef State(Me::* FStateFunc) (void)
 State-implementing method typedef. More...
 
- Protected Member Functions inherited from CSrvStatesTask< CExpiredCleaner >
 CSrvStatesTask (void)
 
virtual ~CSrvStatesTask (void)
 
void SetState (State state)
 Sets current state of the machine. More...
 
virtual void ExecuteSlice (TSrvThreadNum)
 Time slice execution for the state machine. More...
 

Detailed Description

Definition at line 367 of file storage_types.hpp.

Constructor & Destructor Documentation

◆ CExpiredCleaner()

CExpiredCleaner::CExpiredCleaner ( void  )

◆ ~CExpiredCleaner()

CExpiredCleaner::~CExpiredCleaner ( void  )
virtual

Definition at line 3940 of file nc_storage.cpp.

Member Function Documentation

◆ x_CleanNextBucket()

CExpiredCleaner::State CExpiredCleaner::x_CleanNextBucket ( void  )
private

◆ x_DeleteData()

void CExpiredCleaner::x_DeleteData ( SNCCacheData cache_data)
static

◆ x_DeleteNextData()

CExpiredCleaner::State CExpiredCleaner::x_DeleteNextData ( void  )
private

◆ x_FinishSession()

CExpiredCleaner::State CExpiredCleaner::x_FinishSession ( void  )
private

◆ x_StartSession()

CExpiredCleaner::State CExpiredCleaner::x_StartSession ( void  )
private

Member Data Documentation

◆ m_BatchSize

int CExpiredCleaner::m_BatchSize
private

Definition at line 387 of file storage_types.hpp.

Referenced by x_CleanNextBucket(), and x_DeleteNextData().

◆ m_CacheDatas

vector<SNCCacheData*> CExpiredCleaner::m_CacheDatas
private

Definition at line 389 of file storage_types.hpp.

Referenced by x_CleanNextBucket(), and x_DeleteNextData().

◆ m_CurBucket

Uint2 CExpiredCleaner::m_CurBucket
private

Definition at line 385 of file storage_types.hpp.

Referenced by x_CleanNextBucket(), x_DeleteNextData(), and x_StartSession().

◆ m_CurDelData

size_t CExpiredCleaner::m_CurDelData
private

Definition at line 386 of file storage_types.hpp.

Referenced by x_CleanNextBucket(), and x_DeleteNextData().

◆ m_DoExtraGC

bool CExpiredCleaner::m_DoExtraGC
private

Definition at line 388 of file storage_types.hpp.

Referenced by x_StartSession().

◆ m_ExtraGCTime

Uint4 CExpiredCleaner::m_ExtraGCTime
private

Definition at line 384 of file storage_types.hpp.

Referenced by x_StartSession().

◆ m_NextDead

int CExpiredCleaner::m_NextDead
private

Definition at line 383 of file storage_types.hpp.

Referenced by x_CleanNextBucket(), x_DeleteNextData(), and x_StartSession().

◆ m_StartTime

int CExpiredCleaner::m_StartTime
private

Definition at line 382 of file storage_types.hpp.

Referenced by x_FinishSession(), and x_StartSession().


The documentation for this class was generated from the following files:
Modified on Wed Apr 17 13:09:09 2024 by modify_doxy.py rev. 669887