NCBI C++ ToolKit
|
Search Toolkit Book for CNSTClientRegistry
#include "nst_clients.hpp"
(Private to src/app/netstorage
.)
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, CNSTClient > | TClients |
Private Attributes | |
TClients | m_Clients |
CMutex | m_Lock |
Definition at line 150 of file nst_clients.hpp.
|
private |
Definition at line 181 of file nst_clients.hpp.
CNSTClientRegistry::CNSTClientRegistry | ( | ) |
Definition at line 126 of file nst_clients.cpp.
Definition at line 239 of file nst_clients.cpp.
References client, count, map_checker< Container >::end(), map_checker< Container >::find(), m_Clients, and m_Lock.
Referenced by CNetStorageHandler::x_ProcessRead().
Definition at line 252 of file nst_clients.cpp.
References client, count, map_checker< Container >::end(), map_checker< Container >::find(), m_Clients, and m_Lock.
Definition at line 226 of file nst_clients.cpp.
References client, count, map_checker< Container >::end(), map_checker< Container >::find(), m_Clients, and m_Lock.
Referenced by CNetStorageHandler::x_OnData().
Definition at line 304 of file nst_clients.cpp.
References client, count, map_checker< Container >::end(), map_checker< Container >::find(), m_Clients, and m_Lock.
Referenced by CNetStorageHandler::x_ProcessDelete().
Definition at line 278 of file nst_clients.cpp.
References client, count, map_checker< Container >::end(), map_checker< Container >::find(), m_Clients, and m_Lock.
Referenced by CNetStorageHandler::x_ProcessRead().
Definition at line 291 of file nst_clients.cpp.
References client, count, map_checker< Container >::end(), map_checker< Container >::find(), m_Clients, and m_Lock.
Referenced by CNetStorageHandler::x_ProcessRelocate().
Definition at line 265 of file nst_clients.cpp.
References client, count, map_checker< Container >::end(), map_checker< Container >::find(), m_Clients, and m_Lock.
Referenced by CNetStorageHandler::x_ProcessCreate(), and CNetStorageHandler::x_ProcessWrite().
Definition at line 213 of file nst_clients.cpp.
References client, map_checker< Container >::end(), map_checker< Container >::find(), m_Clients, and m_Lock.
Referenced by CNetStorageHandler::x_ProcessAckAlert(), CNetStorageHandler::x_ProcessConfiguration(), CNetStorageHandler::x_ProcessCreate(), CNetStorageHandler::x_ProcessDelAttr(), CNetStorageHandler::x_ProcessDelete(), CNetStorageHandler::x_ProcessExists(), CNetStorageHandler::x_ProcessGetAttr(), CNetStorageHandler::x_ProcessGetAttrList(), CNetStorageHandler::x_ProcessGetClientObjects(), CNetStorageHandler::x_ProcessGetClientsInfo(), CNetStorageHandler::x_ProcessGetMetadataInfo(), CNetStorageHandler::x_ProcessGetObjectInfo(), CNetStorageHandler::x_ProcessGetSize(), CNetStorageHandler::x_ProcessGetUserObjects(), CNetStorageHandler::x_ProcessGetUsersInfo(), CNetStorageHandler::x_ProcessHealth(), CNetStorageHandler::x_ProcessInfo(), CNetStorageHandler::x_ProcessLockFTPath(), CNetStorageHandler::x_ProcessRead(), CNetStorageHandler::x_ProcessReconfigure(), CNetStorageHandler::x_ProcessRelocate(), CNetStorageHandler::x_ProcessSetAttr(), CNetStorageHandler::x_ProcessSetExpTime(), and CNetStorageHandler::x_ProcessWrite().
Definition at line 317 of file nst_clients.cpp.
References client, map_checker< Container >::end(), map_checker< Container >::find(), k_UndefinedClientID, m_Clients, and m_Lock.
Definition at line 201 of file nst_clients.cpp.
References client, map_checker< Container >::end(), map_checker< Container >::find(), m_Clients, and m_Lock.
Referenced by CNetStorageHandler::x_OnSocketWriteError().
CJsonNode CNSTClientRegistry::Serialize | ( | void | ) | const |
Definition at line 342 of file nst_clients.cpp.
References CJsonNode::Append(), map_checker< Container >::begin(), map_checker< Container >::end(), m_Clients, m_Lock, CJsonNode::NewArrayNode(), and CJsonNode::SetString().
Referenced by CNetStorageHandler::x_ProcessGetClientsInfo().
Definition at line 330 of file nst_clients.cpp.
References client, map_checker< Container >::end(), map_checker< Container >::find(), m_Clients, and m_Lock.
Referenced by CNetStorageHandler::x_GetClientID().
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().
Definition at line 189 of file nst_clients.cpp.
References client, map_checker< Container >::end(), map_checker< Container >::find(), m_Clients, and m_Lock.
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 | ||
) |
Definition at line 137 of file nst_clients.cpp.
References client, map_checker< Container >::end(), map_checker< Container >::find(), m_Clients, m_Lock, CNSTClient::SetApplication(), CNSTClient::SetMetadataOption(), CNSTClient::SetPeerAddress(), CNSTClient::SetProtocolVersion(), CNSTClient::SetProtocolVersionProvided(), CNSTClient::SetService(), and CNSTClient::SetTicket().
Referenced by CNetStorageHandler::x_OnMessage(), and CNetStorageHandler::x_ProcessHello().
|
private |
Definition at line 183 of file nst_clients.hpp.
Referenced by AddBytesRead(), AddBytesRelocated(), AddBytesWritten(), AddObjectsDeleted(), AddObjectsRead(), AddObjectsRelocated(), AddObjectsWritten(), AppendType(), GetDBClientID(), RegisterSocketWriteError(), Serialize(), SetDBClientID(), Size(), and Touch().
|
mutableprivate |
Definition at line 185 of file nst_clients.hpp.
Referenced by AddBytesRead(), AddBytesRelocated(), AddBytesWritten(), AddObjectsDeleted(), AddObjectsRead(), AddObjectsRelocated(), AddObjectsWritten(), AppendType(), GetDBClientID(), RegisterSocketWriteError(), Serialize(), SetDBClientID(), Size(), and Touch().