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

Search Toolkit Book for CRunningJobLimit

#include "grid_worker_impl.hpp"
(Private to src/connect/services.)

+ Collaboration diagram for CRunningJobLimit:

Public Member Functions

 CRunningJobLimit ()
 
void ResetJobCounter (unsigned max_number)
 
bool CountJob (const string &job_group, CJobRunRegistration *job_run_registration)
 

Private Types

typedef map< string, unsigned > TJobCounter
 

Private Attributes

unsigned m_MaxNumber
 
CFastMutex m_Mutex
 
TJobCounter m_Counter
 

Friends

class CJobRunRegistration
 

Detailed Description

Definition at line 107 of file grid_worker_impl.hpp.

Member Typedef Documentation

◆ TJobCounter

typedef map<string, unsigned> CRunningJobLimit::TJobCounter
private

Definition at line 124 of file grid_worker_impl.hpp.

Constructor & Destructor Documentation

◆ CRunningJobLimit()

CRunningJobLimit::CRunningJobLimit ( )
inline

Definition at line 110 of file grid_worker_impl.hpp.

Member Function Documentation

◆ CountJob()

bool CRunningJobLimit::CountJob ( const string job_group,
CJobRunRegistration job_run_registration 
)

◆ ResetJobCounter()

void CRunningJobLimit::ResetJobCounter ( unsigned  max_number)
inline

Definition at line 112 of file grid_worker_impl.hpp.

References m_MaxNumber.

Referenced by SGridWorkerNodeImpl::Run().

Friends And Related Function Documentation

◆ CJobRunRegistration

friend class CJobRunRegistration
friend

Definition at line 118 of file grid_worker_impl.hpp.

Member Data Documentation

◆ m_Counter

TJobCounter CRunningJobLimit::m_Counter
private

Definition at line 125 of file grid_worker_impl.hpp.

Referenced by CountJob(), and CJobRunRegistration::~CJobRunRegistration().

◆ m_MaxNumber

unsigned CRunningJobLimit::m_MaxNumber
private

Definition at line 120 of file grid_worker_impl.hpp.

Referenced by CountJob(), and ResetJobCounter().

◆ m_Mutex

CFastMutex CRunningJobLimit::m_Mutex
private

Definition at line 122 of file grid_worker_impl.hpp.

Referenced by CountJob(), and CJobRunRegistration::~CJobRunRegistration().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:31 2024 by modify_doxy.py rev. 669887