161 return Copy(another);
const string & PackedKey(void) const
const CTempString & RawKey(void) const
unsigned int m_KeyVersion
void PackBlobKey(const CTempString &cache_name, const CTempString &blob_key, const CTempString &blob_subkey)
CNCBlobKeyLight & operator=(const CNCBlobKeyLight &another)
string KeyForLogs(void) const
const CTempString & SubKey(void) const
unsigned int KeyVersion(void) const
CNCBlobKeyLight & Copy(const CNCBlobKeyLight &another)
const CTempString & Cache(void) const
bool IsICacheKey(void) const
void SetKeyVersion(unsigned int v)
CNCBlobKey & Copy(const CNCBlobKey &another)
CNCBlobKey & operator=(const CTempString &packed_key)
CNCBlobKey & operator=(const CNCBlobKey &another)
void Assign(const CTempString &cache_name, const CTempString &blob_key, const CTempString &blob_subkey)
CNCBlobKey & operator=(const string &packed_key)
CNCBlobKey(const CTempString &packed_key)
CNCBlobKey(const CNCBlobKey &another)
CNCBlobKey(const string &packed_key)
virtual void ExecuteSlice(TSrvThreadNum thr_num)
This is the main method to do all work this task should do.
static void CheckConfFile(void)
virtual ~CNCHeartBeat(void)
static const SNCSpecificParams * GetAppSetup(const TStringMap &client_params)
static void ReadCurState(SNCStateStat &state)
static const string & GetAdminClient(void)
Get name of client that should be used for administrative commands.
static bool IsDebugMode(void)
static bool IsCachingComplete(void)
static void WriteAppSetup(TNCBufferType &task, const TStringMap &client)
static int GetDefBlobTTL(void)
Get inactivity timeout for each connection.
static string GetHostLocation(void)
static int GetUpTime(void)
Get total number of seconds the server is running.
static void WriteEnvInfo(CSrvSocketTask &task)
static bool IsInitiallySynced(void)
static void InitialSyncRequired(void)
static string GetHostRole(void)
static void CachingCompleted(void)
static void InitialSyncComplete(void)
Task controlling a socket.
Main working entity in TaskServer.
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
uint8_t Uint1
1-byte (8-bit) unsigned integer
uint32_t Uint4
4-byte (32-bit) unsigned integer
uint16_t Uint2
2-byte (16-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
bool empty(void) const
Return true if the represented string is empty (i.e., the length is zero)
ENCBlobPassPolicy
Policy for accepting passwords for reading and writing blobs.
@ eNCBlobPassAny
Both blobs with password and without are accepted.
@ eNCOnlyWithoutPass
Only blobs without password are accepted.
@ eNCOnlyWithPass
Only blobs with password are accepted.
static CNamedPipeClient * client
Meaningful information encoded in the NetCache key.
map< string, string > keys
ENCBlobPassPolicy pass_policy
map< string, string > source
SNCSpecificParams(const SNCSpecificParams &o)
virtual ~SNCSpecificParams(void)
Uint2 TSrvThreadNum
Type for thread number in TaskServer.