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

Search Toolkit Book for CNSTClientRegistry

#include "nst_clients.hpp"
(Private to src/app/netstorage.)

+ Collaboration diagram for CNSTClientRegistry:

Public Member Functions

 CNSTClientRegistry ()
 
size_t Size (void) const
 
void Touch (const string &client, const string &applications, const string &ticket, const string &service, const string &protocol_version, EMetadataOption metadataOption, unsigned int peer_address)
 
void Touch (const string &client)
 
void RegisterSocketWriteError (const string &client)
 
void AppendType (const string &client, unsigned int type_to_append)
 
void AddBytesWritten (const string &client, size_t count)
 
void AddBytesRead (const string &client, size_t count)
 
void AddBytesRelocated (const string &client, size_t count)
 
void AddObjectsWritten (const string &client, size_t count)
 
void AddObjectsRead (const string &client, size_t count)
 
void AddObjectsRelocated (const string &client, size_t count)
 
void AddObjectsDeleted (const string &client, size_t count)
 
CJsonNode Serialize (void) const
 
Int8 GetDBClientID (const string &client) const
 
void SetDBClientID (const string &client, Int8 id)
 

Private Types

typedef map< string, CNSTClientTClients
 

Private Attributes

TClients m_Clients
 
CMutex m_Lock
 

Detailed Description

Definition at line 150 of file nst_clients.hpp.

Member Typedef Documentation

◆ TClients

Definition at line 181 of file nst_clients.hpp.

Constructor & Destructor Documentation

◆ CNSTClientRegistry()

CNSTClientRegistry::CNSTClientRegistry ( )

Definition at line 126 of file nst_clients.cpp.

Member Function Documentation

◆ AddBytesRead()

void CNSTClientRegistry::AddBytesRead ( const string client,
size_t  count 
)

◆ AddBytesRelocated()

void CNSTClientRegistry::AddBytesRelocated ( const string client,
size_t  count 
)

◆ AddBytesWritten()

void CNSTClientRegistry::AddBytesWritten ( const string client,
size_t  count 
)

◆ AddObjectsDeleted()

void CNSTClientRegistry::AddObjectsDeleted ( const string client,
size_t  count 
)

◆ AddObjectsRead()

void CNSTClientRegistry::AddObjectsRead ( const string client,
size_t  count 
)

◆ AddObjectsRelocated()

void CNSTClientRegistry::AddObjectsRelocated ( const string client,
size_t  count 
)

◆ AddObjectsWritten()

void CNSTClientRegistry::AddObjectsWritten ( const string client,
size_t  count 
)

◆ AppendType()

void CNSTClientRegistry::AppendType ( const string client,
unsigned int  type_to_append 
)

◆ GetDBClientID()

Int8 CNSTClientRegistry::GetDBClientID ( const string client) const

◆ RegisterSocketWriteError()

void CNSTClientRegistry::RegisterSocketWriteError ( const string client)

◆ Serialize()

CJsonNode CNSTClientRegistry::Serialize ( void  ) const

◆ SetDBClientID()

void CNSTClientRegistry::SetDBClientID ( const string client,
Int8  id 
)

◆ Size()

size_t CNSTClientRegistry::Size ( void  ) const

Definition at line 130 of file nst_clients.cpp.

References m_Clients, m_Lock, and map_checker< Container >::size().

◆ Touch() [1/2]

void CNSTClientRegistry::Touch ( const string client)

◆ Touch() [2/2]

void CNSTClientRegistry::Touch ( const string client,
const string applications,
const string ticket,
const string service,
const string protocol_version,
EMetadataOption  metadataOption,
unsigned int  peer_address 
)

Member Data Documentation

◆ m_Clients

TClients CNSTClientRegistry::m_Clients
private

◆ m_Lock

CMutex CNSTClientRegistry::m_Lock
mutableprivate

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