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

Search Toolkit Book for CDiskFlusher

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

+ Inheritance diagram for CDiskFlusher:
+ Collaboration diagram for CDiskFlusher:

Public Member Functions

 CDiskFlusher (void)
virtual ~CDiskFlusher (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...

Private Member Functions

State x_CheckFlushTime (void)
State x_FlushNextFile (void)

Private Attributes

Uint4 m_LastId

Additional Inherited Members

- Static Public Member Functions inherited from CSrvTask
static void PrintState (CSrvSocketTask &task)
- 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...
 Current diagnostic context for this task. More...
CRequestContext ** m_DiagChain
 Nested diagnostic contexts of this task. More...
size_t m_DiagChainSize
 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< CDiskFlusher >
typedef CDiskFlusher 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< CDiskFlusher >
 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 246 of file storage_types.hpp.

Constructor & Destructor Documentation

◆ CDiskFlusher()

CDiskFlusher::CDiskFlusher ( void  )

◆ ~CDiskFlusher()

CDiskFlusher::~CDiskFlusher ( void  )

Definition at line 4651 of file nc_storage.cpp.

Member Function Documentation

◆ x_CheckFlushTime()

CDiskFlusher::State CDiskFlusher::x_CheckFlushTime ( void  )

◆ x_FlushNextFile()

CDiskFlusher::State CDiskFlusher::x_FlushNextFile ( void  )

Member Data Documentation

◆ m_LastId

Uint4 CDiskFlusher::m_LastId

Definition at line 257 of file storage_types.hpp.

Referenced by x_CheckFlushTime(), and x_FlushNextFile().

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