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

Search Toolkit Book for CJobGCRegistry

#include "ns_gc_registry.hpp"
(Private to src/app/netschedule.)

+ Collaboration diagram for CJobGCRegistry:

Public Member Functions

 CJobGCRegistry ()
 
 ~CJobGCRegistry ()
 
void RegisterJob (unsigned int job_id, const CNSPreciseTime &submit_time, unsigned int aff_id, unsigned int group_id, const CNSPreciseTime &life_time)
 
void ChangeAffinityAndGroup (unsigned int job_id, unsigned int aff_id, unsigned int group_id)
 
bool DeleteIfTimedOut (unsigned int job_id, const CNSPreciseTime &current_time, unsigned int *aff_id, unsigned int *group_id)
 
void UpdateLifetime (unsigned int job_id, const CNSPreciseTime &life_time)
 
void UpdateReadVacantTime (unsigned int job_id, const CNSPreciseTime &read_vacant_time)
 
CNSPreciseTime GetLifetime (unsigned int job_id) const
 
unsigned int GetAffinityID (unsigned int job_id) const
 
unsigned int GetGroupID (unsigned int job_id) const
 
CNSPreciseTime GetPreciseSubmitTime (unsigned int job_id) const
 
CNSPreciseTime GetPreciseReadVacantTime (unsigned int job_id) const
 
bool IsOutdatedJob (unsigned int job_id, ECommandGroup cmd_group, const CNSPreciseTime &timeout) const
 
void Clear (void)
 

Private Member Functions

 CJobGCRegistry (const CJobGCRegistry &)
 
CJobGCRegistryoperator= (const CJobGCRegistry &)
 

Private Attributes

CFastMutex m_Lock
 
map< unsigned int, SJobGCInfom_JobsAttrs
 

Detailed Description

Definition at line 77 of file ns_gc_registry.hpp.

Constructor & Destructor Documentation

◆ CJobGCRegistry() [1/2]

CJobGCRegistry::CJobGCRegistry ( )

Definition at line 44 of file ns_gc_registry.cpp.

◆ ~CJobGCRegistry()

CJobGCRegistry::~CJobGCRegistry ( )

Definition at line 47 of file ns_gc_registry.cpp.

◆ CJobGCRegistry() [2/2]

CJobGCRegistry::CJobGCRegistry ( const CJobGCRegistry )
private

Member Function Documentation

◆ ChangeAffinityAndGroup()

void CJobGCRegistry::ChangeAffinityAndGroup ( unsigned int  job_id,
unsigned int  aff_id,
unsigned int  group_id 
)

◆ Clear()

void CJobGCRegistry::Clear ( void  )

Definition at line 229 of file ns_gc_registry.cpp.

References map_checker< Container >::clear(), m_JobsAttrs, and m_Lock.

Referenced by CQueue::x_ClearQueue().

◆ DeleteIfTimedOut()

bool CJobGCRegistry::DeleteIfTimedOut ( unsigned int  job_id,
const CNSPreciseTime current_time,
unsigned int aff_id,
unsigned int group_id 
)

◆ GetAffinityID()

unsigned int CJobGCRegistry::GetAffinityID ( unsigned int  job_id) const

◆ GetGroupID()

unsigned int CJobGCRegistry::GetGroupID ( unsigned int  job_id) const

◆ GetLifetime()

CNSPreciseTime CJobGCRegistry::GetLifetime ( unsigned int  job_id) const

◆ GetPreciseReadVacantTime()

CNSPreciseTime CJobGCRegistry::GetPreciseReadVacantTime ( unsigned int  job_id) const

◆ GetPreciseSubmitTime()

CNSPreciseTime CJobGCRegistry::GetPreciseSubmitTime ( unsigned int  job_id) const

◆ IsOutdatedJob()

bool CJobGCRegistry::IsOutdatedJob ( unsigned int  job_id,
ECommandGroup  cmd_group,
const CNSPreciseTime timeout 
) const

◆ operator=()

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

◆ RegisterJob()

void CJobGCRegistry::RegisterJob ( unsigned int  job_id,
const CNSPreciseTime submit_time,
unsigned int  aff_id,
unsigned int  group_id,
const CNSPreciseTime life_time 
)

◆ UpdateLifetime()

void CJobGCRegistry::UpdateLifetime ( unsigned int  job_id,
const CNSPreciseTime life_time 
)

◆ UpdateReadVacantTime()

void CJobGCRegistry::UpdateReadVacantTime ( unsigned int  job_id,
const CNSPreciseTime read_vacant_time 
)

Member Data Documentation

◆ m_JobsAttrs

map<unsigned int, SJobGCInfo> CJobGCRegistry::m_JobsAttrs
private

◆ m_Lock

CFastMutex CJobGCRegistry::m_Lock
mutableprivate

The documentation for this class was generated from the following files:
Modified on Sat Jun 08 14:19:20 2024 by modify_doxy.py rev. 669887