NCBI C++ ToolKit
|
Classes | |
class | CNetCacheAdmin |
class | CNetCacheAPI |
Client API for NetCache server. More... | |
class | CBlobStorage_NetCache |
CBlobStorage_NetCache – NetCache-based implementation of IBlobStorage. More... | |
class | CNetCacheException |
NetCache internal exception. More... | |
class | CNetCacheBlobTooOldException |
Exception thrown when the requested blob is older than the requested age. More... | |
struct | CNetCacheKey |
Meaningful information encoded in the NetCache key. More... | |
class | CNetICacheClient |
Client to NetCache server (implements ICache interface) More... | |
class | CNetCacheAPIParameters |
class | CNetCacheReader |
class | CNetCacheWriter |
Typedefs | |
typedef SNetCacheAdminImpl * | CNetCacheAdmin::TInstance |
typedef SNetCacheAPIImpl * | CNetCacheAPI::TInstance |
typedef CNamedParameter< unsigned, eNPT_BlobTTL > | CNetCacheAPI::TBlobTTL |
Named parameter type for blob life span in seconds. More... | |
typedef CNamedParameter< ECachingMode, eNPT_CachingMode > | CNetCacheAPI::TCachingMode |
Named parameter type for caching mode. More... | |
typedef CNamedParameter< EMirroringMode, eNPT_MirroringMode > | CNetCacheAPI::TMirroringMode |
Named parameter type for mirroring mode. More... | |
typedef CNamedParameter< ESwitch, eNPT_ServerCheck > | CNetCacheAPI::TServerCheck |
Named parameter type for whether blob reading methods must check if the primary server that stores the blob is still in service. More... | |
typedef CNamedParameter< bool, eNPT_ServerCheckHint > | CNetCacheAPI::TServerCheckHint |
Named parameter type for whether to advise the readers to check if the primary server that stores the blob is still in service. More... | |
typedef CNamedParameter< string, eNPT_Password > | CNetCacheAPI::TBlobPassword |
Named parameter type for blob password. More... | |
typedef CNamedParameter< CNetServer::TInstance, eNPT_ServerToUse > | CNetCacheAPI::TServerToUse |
Named parameter type for specifying the server to use for the operation. More... | |
typedef CNamedParameter< CNetServer *, eNPT_ServerLastUsedPtr > | CNetCacheAPI::TServerLastUsedPtr |
Named parameter type to supply a pointer to a variable for saving the CNetServer object that was last used. More... | |
typedef CNamedParameter< unsigned, eNPT_MaxBlobAge > | CNetCacheAPI::TMaxBlobAge |
Named parameter type to specify that the blob should not be read if its age in seconds is greater than the specified value. More... | |
typedef CNamedParameter< unsigned *, eNPT_ActualBlobAgePtr > | CNetCacheAPI::TActualBlobAgePtr |
Named parameter type for a pointer to a variable where the actual age of the blob is to be stored. More... | |
typedef CNamedParameter< bool, eNPT_UseCompoundID > | CNetCacheAPI::TUseCompoundID |
Named parameter type to define whether to return NetCache keys in CompoundID format. More... | |
typedef CNamedParameter< bool, eNPT_TryAllServers > | CNetCacheAPI::TTryAllServers |
Named parameter type to define whether to run a request through all NetCache servers in the ICache service in an attempt to find the blob. More... | |
typedef CNamedParameter< string, eNPT_CacheName > | CNetCacheAPI::TCacheName |
In ICache mode, override the name of the cache specified in the CNetICacheClient constructor. More... | |
typedef CNetServiceException | CNetCacheException::TParent |
typedef CNetCacheException | CNetCacheBlobTooOldException::TParent |
typedef unsigned | CNetCacheKey::TNCKeyFlags |
Binary OR of ENCKeyFlag. More... | |
typedef SNetICacheClientImpl * | CNetICacheClient::TInstance |
typedef grid::netcache::search::CBlobInfo | CNetICacheClient::CBlobInfo |
typedef grid::netcache::search::CExpression | CNetICacheClient::CExpression |
typedef grid::netcache::search::CFields | CNetICacheClient::CFields |
typedef unsigned | CNetCacheAPIParameters::TDefinedParameters |
typedef grid::netcache::search::CBlobInfo CNetICacheClient::CBlobInfo |
Definition at line 150 of file neticache_client.hpp.
typedef grid::netcache::search::CExpression CNetICacheClient::CExpression |
Definition at line 151 of file neticache_client.hpp.
typedef grid::netcache::search::CFields CNetICacheClient::CFields |
Definition at line 152 of file neticache_client.hpp.
typedef CNamedParameter<unsigned*, eNPT_ActualBlobAgePtr> CNetCacheAPI::TActualBlobAgePtr |
Named parameter type for a pointer to a variable where the actual age of the blob is to be stored.
This type of parameter can be defined through the nc_actual_age macro substitution, for example: nc_actual_age = &blob_age
Definition at line 567 of file netcache_api.hpp.
Named parameter type for blob password.
A blob created with a password cannot be read without specifying the same password. This type of parameter can be defined through the nc_blob_password macro substitution, for example: nc_blob_password = "secret"
Definition at line 531 of file netcache_api.hpp.
typedef CNamedParameter<unsigned, eNPT_BlobTTL> CNetCacheAPI::TBlobTTL |
Named parameter type for blob life span in seconds.
If zero or greater than the server-side value, then the server-side TTL is used. This type of parameter can be defined through the nc_blob_ttl macro substitution, for example: nc_blob_ttl = 600
Definition at line 491 of file netcache_api.hpp.
In ICache mode, override the name of the cache specified in the CNetICacheClient constructor.
This type of parameter can be defined through the nc_cache_name macro substitution, for example: nc_cache_name = "appdata"
Definition at line 591 of file netcache_api.hpp.
Named parameter type for caching mode.
This type of parameter can be defined through the nc_caching_mode macro substitution, for example: nc_caching_mode = CNetCacheAPI::eCaching_Disable
Definition at line 498 of file netcache_api.hpp.
typedef unsigned CNetCacheAPIParameters::TDefinedParameters |
Definition at line 68 of file netcache_params.hpp.
Definition at line 56 of file netcache_admin.hpp.
typedef SNetCacheAPIImpl* CNetCacheAPI::TInstance |
Definition at line 144 of file netcache_api.hpp.
Definition at line 72 of file neticache_client.hpp.
typedef CNamedParameter<unsigned, eNPT_MaxBlobAge> CNetCacheAPI::TMaxBlobAge |
Named parameter type to specify that the blob should not be read if its age in seconds is greater than the specified value.
This type of parameter can be defined through the nc_max_age macro substitution, for example: nc_max_age = 3600
Definition at line 559 of file netcache_api.hpp.
Named parameter type for mirroring mode.
This type of parameter can be defined through the nc_mirroring_mode macro substitution, for example: nc_mirroring_mode = CNetCacheAPI::eMirroringEnabled
Definition at line 505 of file netcache_api.hpp.
typedef unsigned CNetCacheKey::TNCKeyFlags |
Binary OR of ENCKeyFlag.
Definition at line 70 of file netcache_key.hpp.
Definition at line 56 of file netcache_api_expt.hpp.
Definition at line 103 of file netcache_api_expt.hpp.
Named parameter type for whether blob reading methods must check if the primary server that stores the blob is still in service.
This type of parameter can be defined through the nc_server_check macro substitution, for example: nc_server_check = eOn
Definition at line 514 of file netcache_api.hpp.
Named parameter type for whether to advise the readers to check if the primary server that stores the blob is still in service.
This type parameter only has effect during blob creation and can be defined through the nc_server_check_hint macro substitution, for example: nc_server_check_hint = true
Definition at line 523 of file netcache_api.hpp.
Named parameter type to supply a pointer to a variable for saving the CNetServer object that was last used.
This parameter works only with (some of) CNetICacheClient methods. This type of parameter can be defined through the nc_server_last_used macro substitution, for example: nc_server_last_used = &netserver_object
Definition at line 551 of file netcache_api.hpp.
Named parameter type for specifying the server to use for the operation.
Overrides whatever is defined in the constructor or the configuration file. This type of parameter can be defined through the nc_server_to_use macro substitution, for example: nc_server_to_use = netserver_object
Definition at line 541 of file netcache_api.hpp.
Named parameter type to define whether to run a request through all NetCache servers in the ICache service in an attempt to find the blob.
This type of parameter can be defined through the nc_try_all_servers macro substitution, for example: nc_try_all_servers = true
Definition at line 583 of file netcache_api.hpp.
Named parameter type to define whether to return NetCache keys in CompoundID format.
This type of parameter can be defined through the nc_use_compound_id macro substitution, for example: nc_use_compound_id = true
Definition at line 575 of file netcache_api.hpp.
Defines how this object must be initialized.
Enumerator | |
---|---|
eAppRegistry |
Definition at line 162 of file netcache_api.hpp.
Defines how this object must be initialized.
Enumerator | |
---|---|
eAppRegistry |
Definition at line 75 of file neticache_client.hpp.
Allows to define caching behavior on a per-call basis.
Enumerator | |
---|---|
eCaching_AppDefault | |
eCaching_Disable | |
eCaching_Enable |
Definition at line 147 of file netcache_api.hpp.
Definition at line 53 of file netcache_params.hpp.
Definition at line 57 of file netcache_api_expt.hpp.
Enumerator | |
---|---|
eBlobTooOld | The blob is older than the requested age. |
Definition at line 104 of file netcache_api_expt.hpp.
Mirroring modes.
eIfKeyMirrored unconditionally enables mirroring for blobs that were created in mirroring mode.
Enumerator | |
---|---|
eMirroringDisabled | |
eMirroringEnabled | |
eIfKeyMirrored |
Definition at line 155 of file netcache_api.hpp.
Named parameters that can be used when calling CNetCacheAPI methods that accept CNamedParameterList.
Definition at line 212 of file netcache_api.hpp.
Blob and blob key features.
Enumerator | |
---|---|
fNCKey_SingleServer | Mark this blob as not mirrored. |
fNCKey_NoServerCheck | Disable the check for whether the server IP is still in service. |
Definition at line 65 of file netcache_key.hpp.
Enumerator | |
---|---|
eNetCache_Wait | |
eICache_NoWait |
Definition at line 110 of file netcache_rw.hpp.
Status of GetData() call.
Enumerator | |
---|---|
eReadComplete | The whole BLOB has been read. |
eNotFound | BLOB not found or error. |
eReadPart | Read part of the BLOB (buffer capacity) |
Definition at line 422 of file netcache_api.hpp.
Reload configuration options.
Enumerator | |
---|---|
eCompleteReload | Complete reload is requested. |
eMirrorReload | Parameters related to mirroring will only be reloaded. |
Definition at line 72 of file netcache_admin.hpp.
Shutdown options.
Enumerator | |
---|---|
eNormalShutdown | Normal shutdown is requested. |
eDrain | Wait for all blobs to expire. |
Definition at line 60 of file netcache_admin.hpp.
Enumeration for use with PrintStat().
Indicates whether to return the current (incomplete) aggregation period or the previous one (which is complete).
Enumerator | |
---|---|
eReturnCurrentPeriod | |
eReturnCompletePeriod |
Definition at line 89 of file netcache_admin.hpp.
|
virtual |
Implements IEmbeddedStreamWriter.
Definition at line 347 of file netcache_rw.cpp.
References CNetCacheWriter::AbortConnection(), and CNetCacheWriter::IsConnectionOpen().
|
private |
Definition at line 379 of file netcache_rw.cpp.
References SNetServerConnectionImpl::Abort(), CTransmissionWriter::eDontSendEofPacket, eIO_Open, CSocket::GetStatus(), CNetCacheWriter::m_Connection, SNetServerConnectionImpl::m_Socket, CNetCacheWriter::m_TransmissionWriter, NULL, and CNetCacheWriter::ResetWriters().
Referenced by CNetCacheWriter::Abort(), CNetCacheWriter::Close(), and CNetCacheWriter::Transmit().
|
static |
Unconditionally append a service name to the specified string.
Definition at line 283 of file netcache_key.cpp.
References AppendServiceNameExtension(), flags, CNetCacheKey::fNCKey_NoServerCheck, CNetCacheKey::fNCKey_SingleServer, KEY_EXTENSION_MARKER, and KEY_EXTENSION_MARKER_LENGTH.
Referenced by SNetCacheAPIImpl::InitiateWriteCmd(), CNetCacheKey::ParseBlobKey(), CNCMessageHandler::x_DoCmd_GetMeta(), and CNCMessageHandler::x_DoCmd_Put().
void CNetCacheKey::Assign | ( | const string & | key_str, |
CCompoundIDPool::TInstance | id_pool = NULL |
||
) |
Parse the specified blob ID and initializes this object.
CNetCacheException | if key format is not recognized. |
Definition at line 312 of file netcache_key.cpp.
References CNetCacheKey::m_Key, NCBI_THROW_FMT, CNetCacheKey::ParseBlobKey(), and NStr::PrintableString().
Referenced by CNetCacheKey::CNetCacheKey().
void Cache_RegisterDriver_NetCache | ( | void | ) |
Definition at line 1056 of file neticache_client.cpp.
References NCBI_EntryPoint_xcache_netcache().
Calculate and return the CRC32 checksum generated from the string "host:port".
Definition at line 324 of file netcache_key.cpp.
References crc32, CChecksum::eCRC32, and NStr::NumericToString().
Referenced by CNCDistributionConf::CreateHostAlias(), SNetCacheAPIImpl::ExecMirrorAware(), and CNetCacheKey::GenerateBlobKey().
CBlobStorage_NetCache::CBlobStorage_NetCache | ( | ) |
Definition at line 1046 of file netcache_api.cpp.
References _ASSERT.
|
inline |
Create Blob Storage.
[in] | nc_client | NetCache client - an instance of CNetCacheAPI. |
Definition at line 618 of file netcache_api.hpp.
|
private |
|
inline |
Definition at line 58 of file netcache_rw.hpp.
References max(), and NCBI_THROW.
Referenced by CNetCacheReader::CNetCacheReader(), CNetCacheAPI::GetBlobSize(), and CNetICacheClient::GetBlobSize().
|
inline |
Definition at line 103 of file netcache_key.hpp.
References CNetCacheKey::m_Flags.
|
virtual |
Definition at line 177 of file netcache_rw.cpp.
References SNetServerConnectionImpl::Abort(), CFileIO::Close(), CNetCacheReader::m_BlobBytesToRead, CNetCacheReader::m_CacheFile, CNetCacheReader::m_CachingEnabled, and CNetCacheReader::m_Connection.
Referenced by CNetCacheReader::~CNetCacheReader().
|
virtual |
Implements IEmbeddedStreamWriter.
Definition at line 288 of file netcache_rw.cpp.
References CNetCacheWriter::AbortConnection(), CONNSERV_THROW_FMT, dummy, eNetCache_Wait, eRW_Success, eRW_Timeout, CNetCacheWriter::EstablishConnection(), CFileIO::Flush(), CNetCacheWriter::IsConnectionOpen(), CNetCacheWriter::m_CacheFile, CNetCacheWriter::m_CachingEnabled, CNetCacheWriter::m_Connection, CNetCacheWriter::m_ResponseType, SNetServerConnectionImpl::m_Server, SNetServerConnectionImpl::m_Socket, CNetCacheWriter::m_TransmissionWriter, NULL, SNetServerConnectionImpl::ReadCmdOutputLine(), CNetCacheWriter::ResetWriters(), CSocket::SetCork(), and CNetCacheWriter::UploadCacheFile().
Referenced by CNetCacheWriter::WriteBufferAndClose(), and CNetCacheWriter::~CNetCacheWriter().
|
inline |
Definition at line 56 of file netcache_admin.hpp.
|
inline |
Definition at line 56 of file netcache_admin.hpp.
|
inline |
Definition at line 56 of file netcache_admin.hpp.
|
inline |
Definition at line 144 of file netcache_api.hpp.
|
explicit |
Constructs a CNetCacheAPI object and initializes it with parameters read from the specified configuration object.
conf | A CConfig object to get the configuration parameters from. |
conf_section | Name of the configuration section where to look for the parameters. If empty string is passed, then the section name "netcache_api" will be used. |
Definition at line 476 of file netcache_api.cpp.
|
explicit |
Constructs a CNetCacheAPI object and initializes it with parameters read from the specified registry object.
reg | Registry to get the configuration parameters from. |
conf_section | Name of the registry section to look for the configuration parameters in. If empty string is passed, then the section name "netcache_api" will be used. |
Definition at line 469 of file netcache_api.cpp.
|
explicit |
Definition at line 483 of file netcache_api.cpp.
CNetCacheAPI::CNetCacheAPI | ( | const string & | service_name, |
const string & | client_name, | ||
CNetScheduleAPI::TInstance | ns_api = NULL |
||
) |
Construct client, working with the specified service.
Definition at line 490 of file netcache_api.cpp.
|
explicit |
Creates an instance of CNetCacheAPI and initializes it with parameters read from the application registry.
use_app_reg | Selects this constructor. The parameter is not used otherwise. |
conf_section | Name of the registry section to look for the configuration parameters in. If empty string is passed, then the section name "netcache_api" will be used. |
Definition at line 461 of file netcache_api.cpp.
|
inline |
Definition at line 144 of file netcache_api.hpp.
|
inline |
Definition at line 144 of file netcache_api.hpp.
CNetCacheAPIParameters::CNetCacheAPIParameters | ( | const CNetCacheAPIParameters * | defaults | ) |
Definition at line 41 of file netcache_params.cpp.
|
inline |
Definition at line 71 of file netcache_params.hpp.
|
inline |
Create an empty object for later use with ParseBlobKey() or Assign().
Definition at line 77 of file netcache_key.hpp.
|
explicit |
Create the key out of string.
Definition at line 306 of file netcache_key.cpp.
References CNetCacheKey::Assign().
CNetCacheReader::CNetCacheReader | ( | SNetCacheAPIImpl * | impl, |
const string & | blob_id, | ||
CNetServer::SExecResult & | exec_result, | ||
size_t * | blob_size_ptr, | ||
const CNetCacheAPIParameters * | parameters | ||
) |
Definition at line 58 of file netcache_rw.cpp.
References SNetServerConnectionImpl::Abort(), buf, CACHE_XFER_BUFFER_SIZE, CheckBlobSize(), CNetServer::SExecResult::conn, CONNSERV_THROW_FMT, CFileIO::CreateTemporary(), CNetCacheAPI::eCaching_AppDefault, CNetCacheAPI::eCaching_Disable, NStr::fAllowTrailingSymbols, CFileIO::Flush(), CNetCacheAPIParameters::GetCachingMode(), CFileIO::GetFilePos(), CNetCacheReader::m_BlobBytesToRead, CNetCacheReader::m_BlobSize, CNetCacheReader::m_CacheFile, CNetCacheReader::m_CachingEnabled, CNetCacheReader::m_Connection, SNetServerConnectionImpl::m_Server, NCBI_THROW, NULL, CNetServer::SExecResult::response, s_InputBlobCachePrefix, CFileIO::SetFilePos(), CNetCacheReader::SocketRead(), NStr::StringToUInt8(), and CFileIO::Write().
CNetCacheWriter::CNetCacheWriter | ( | SNetCacheAPIImpl * | impl, |
string * | blob_id, | ||
const string & | key, | ||
ENetCacheResponseType | response_type, | ||
const CNetCacheAPIParameters * | parameters | ||
) |
Definition at line 224 of file netcache_rw.cpp.
References CFileIO::CreateTemporary(), CNetCacheAPI::eCaching_AppDefault, CNetCacheAPI::eCaching_Disable, CNetCacheWriter::EstablishConnection(), CNetCacheAPIParameters::GetCachingMode(), CNetCacheWriter::m_BlobID, CNetCacheWriter::m_CacheFile, CNetCacheWriter::m_CachingEnabled, and s_OutputBlobCachePrefix.
CNetICacheClient::CNetICacheClient | ( | CConfig * | config = NULL , |
const string & | driver_name = kEmptyStr |
||
) |
Definition at line 241 of file neticache_client.cpp.
CNetICacheClient::CNetICacheClient | ( | const IRegistry & | reg, |
const string & | conf_section = kEmptyStr |
||
) |
Definition at line 247 of file neticache_client.cpp.
CNetICacheClient::CNetICacheClient | ( | const string & | host, |
unsigned short | port, | ||
const string & | cache_name, | ||
const string & | client_name | ||
) |
Definition at line 221 of file neticache_client.cpp.
CNetICacheClient::CNetICacheClient | ( | const string & | service_name, |
const string & | cache_name, | ||
const string & | client_name | ||
) |
Definition at line 232 of file neticache_client.cpp.
|
explicit |
Create an instance of CNetICacheClient and initialize it with parameters read from the application registry.
use_app_reg | Selects this constructor. The parameter is not used otherwise. |
conf_section | Name of the registry section to look for the configuration parameters in. If an empty string is passed, the default section name "netcache" is used. |
Definition at line 214 of file neticache_client.cpp.
|
inline |
Definition at line 72 of file neticache_client.hpp.
|
inline |
Definition at line 72 of file neticache_client.hpp.
|
virtual |
Create an new blob.
Implements IBlobStorage.
Definition at line 1087 of file netcache_api.cpp.
References CBlobStorage_NetCache::m_NCClient, NULL, and CNetCacheAPI::PutData().
Referenced by CCgiSession_NetCache::CreateNewSession().
|
virtual |
Get an output stream to a blob.
[in,out] | blob_key | Blob key to read. If a blob with a given key does not exist an key of a newly create blob will be assigned to blob_key |
[in] | lock_mode | Blob locking mode |
Implements IBlobStorage.
Definition at line 1080 of file netcache_api.cpp.
References CNetCacheAPI::CreateOStream(), ncbi::grid::netcache::search::fields::key, CBlobStorage_NetCache::m_NCClient, and CBlobStorage_NetCache::m_OStream.
Referenced by CCgiSession_NetCache::GetAttrOStream(), and CCgiSession_NetCache::Reset().
CNcbiOstream * CNetCacheAPI::CreateOStream | ( | string & | key, |
const CNamedParameterList * | optional = NULL |
||
) |
Create a stream object for sending data to a blob.
If the string "key" is empty, a new blob will be created and its ID will be returned via the "key" parameter.
Definition at line 634 of file netcache_api.cpp.
References CRWStreambuf::fLeakExceptions, CRWStreambuf::fOwnWriter, ncbi::grid::netcache::search::fields::key, NULL, and CNetCacheAPI::PutData().
Referenced by CProjectStorage::Clone(), CBlobStorage_NetCache::CreateOStream(), CSampleNetCacheClient::DemoCompression(), CProjectStorage::SaveRawData(), and CProjectStorage::x_GetOutputStream().
Delete a blob.
[in] | blob_key | Blob key to read |
Implements IBlobStorage.
Definition at line 1092 of file netcache_api.cpp.
References CBlobStorage_NetCache::m_NCClient, and CNetCacheAPI::Remove().
Referenced by CCgiSession_NetCache::DeleteSession(), and CCgiSession_NetCache::RemoveAttribute().
|
inline |
Definition at line 92 of file netcache_rw.hpp.
References CNetCacheReader::m_BlobBytesToRead.
|
private |
Definition at line 511 of file netcache_rw.cpp.
References eIO_WritePlain, eNoOwnership, CTransmissionWriter::eSendEofPacket, SNetCacheAPIImpl::InitiateWriteCmd(), CNetCacheWriter::m_Connection, CNetCacheWriter::m_NetCacheAPI, CNetCacheWriter::m_Parameters, SNetServerConnectionImpl::m_Socket, CNetCacheWriter::m_SocketReaderWriter, CNetCacheWriter::m_TransmissionWriter, CNetCacheWriter::ResetWriters(), and CSocket::SetCork().
Referenced by CNetCacheWriter::Close(), and CNetCacheWriter::CNetCacheWriter().
|
virtual |
Flush pending data (if any) down to the output device.
Implements IWriter.
Definition at line 280 of file netcache_rw.cpp.
References eRW_Success, CNetCacheWriter::IsConnectionOpen(), CNetCacheWriter::m_CachingEnabled, and CNetCacheWriter::m_TransmissionWriter.
|
static |
Generate blob key string.
Please note that "id" is an integer issued by the NetCache server. Clients should not use this function with custom ids.
Definition at line 335 of file netcache_key.cpp.
References CNetCacheKey::CalculateChecksum(), NStr::IntToString(), ncbi::grid::netcache::search::fields::key, KEY_PREFIX, KEY_PREFIX_LENGTH, NULL, NStr::NumericToString(), tmp, NStr::UInt8ToString(), and NStr::UIntToString().
Referenced by CNCDistributionConf::GenerateBlobKey(), and CNetCacheKey::ParseBlobKey().
|
virtual |
Return last access time for the specified cache entry.
Class implementation may want to implement access time based aging scheme for cache managed objects. In this case it needs to track time of every request to BLOB data.
key | BLOB identification key |
subkey | BLOB identification subkey |
version | BLOB version |
Implements ICache.
Definition at line 609 of file neticache_client.cpp.
References NCBI_THROW.
unsigned * CNetCacheAPIParameters::GetActualBlobAgePtr | ( | ) | const |
Definition at line 194 of file netcache_params.cpp.
References NETCACHE_API_GET_PARAM_IMPL.
Referenced by SNetCacheAPIImpl::GetPartReader(), and SNetICacheClientImpl::GetReadStreamPart().
CNetCacheAdmin CNetCacheAPI::GetAdmin | ( | ) |
Definition at line 917 of file netcache_api.cpp.
References CNetCacheAPI::m_Impl.
Referenced by CGridCommandLineInterfaceApp::SetUp_NetCacheAdminCmd().
|
inline |
Definition at line 117 of file netcache_api_expt.hpp.
References CException::GetMsg(), and NULL.
Referenced by SNetICacheClientImpl::ReadCurrentBlobNotOlderThan().
|
virtual |
Get BLOB access using BlobAccessDescr.
Method fills blob_descr parameter. If provided buffer has sufficient capacity for BLOB storage, BLOB is saved into the buffer, otherwise IReader is created.
Implements ICache.
Definition at line 517 of file neticache_client.cpp.
References ICache::SBlobAccessDescr::actual_age, ICache::SBlobAccessDescr::blob_found, ICache::SBlobAccessDescr::blob_size, ICache::SBlobAccessDescr::buf, ICache::SBlobAccessDescr::buf_size, ICache::SBlobAccessDescr::current_version, ICache::SBlobAccessDescr::current_version_validity, CNetCacheAPI::eCaching_AppDefault, ncbi::grid::netcache::search::fields::key, CNetICacheClient::m_Impl, ICache::SBlobAccessDescr::maximum_age, nc_actual_age, nc_caching_mode, nc_max_age, NULL, SNetCacheAPIImpl::ReadBuffer(), ICache::SBlobAccessDescr::reader, ICache::SBlobAccessDescr::return_current_version, ICache::SBlobAccessDescr::return_current_version_supported, ncbi::grid::netcache::search::fields::subkey, and version.
Get a blob content as a string.
[in] | blob_key | Blob key to read |
Implements IBlobStorage.
Definition at line 1073 of file netcache_api.cpp.
References buf, CBlobStorage_NetCache::m_NCClient, and CNetCacheAPI::ReadData().
Referenced by CCgiSession_NetCache::LoadSession().
Definition at line 88 of file netcache_rw.hpp.
References CNetCacheReader::m_BlobID.
Definition at line 140 of file netcache_rw.hpp.
References CNetCacheWriter::m_BlobID.
Referenced by SNetCacheAPIImpl::InitiateWriteCmd(), and SNetICacheClientImpl::InitiateWriteCmd().
Parse blob key, extract id.
Definition at line 410 of file netcache_key.cpp.
References ncbi::grid::netcache::search::fields::key.
CNetServerMultilineCmdOutput CNetCacheAPI::GetBlobInfo | ( | const string & | blob_id, |
const CNamedParameterList * | optional = NULL |
||
) |
Return a CNetServerMultilineCmdOutput object for reading meta information about the specified blob.
Definition at line 709 of file netcache_api.cpp.
References cmd, ncbi::grid::netcache::search::fields::key, CNetCacheAPIParameters::LoadNamedParameters(), CNetCacheAPI::m_Impl, and output.
Referenced by CGridCommandLineInterfaceApp::Cmd_BlobInfo(), CSampleNetCacheClient::DemoPutRead(), SNetStorage_NetCacheBlob::GetInfo(), and CNetCacheAPI::PrintBlobInfo().
CNetServerMultilineCmdOutput CNetICacheClient::GetBlobInfo | ( | const string & | key, |
int | version, | ||
const string & | subkey, | ||
const CNamedParameterList * | optional = NULL |
||
) |
Return a CNetServerMultilineCmdOutput object for reading meta information about the specified blob.
Definition at line 855 of file neticache_client.cpp.
References ncbi::grid::netcache::search::fields::key, CNetCacheAPIParameters::LoadNamedParameters(), CNetICacheClient::m_Impl, output, s_KeyVersionSubkeyToBlobID(), ncbi::grid::netcache::search::fields::subkey, and version.
Referenced by CGridCommandLineInterfaceApp::Cmd_BlobInfo(), NDirectNetStorageImpl::CNetCache::GetInfo(), and CNetICacheClient::PrintBlobInfo().
|
virtual |
Retrieve BLOB owner.
owner | BLOB owner (as used by method Store) |
Implements ICache.
Definition at line 434 of file neticache_client.cpp.
|
inline |
Definition at line 90 of file netcache_rw.hpp.
References CNetCacheReader::m_BlobSize.
size_t CNetCacheAPI::GetBlobSize | ( | const string & | blob_id, |
const CNamedParameterList * | optional = NULL |
||
) |
Returns the size of the BLOB identified by the "key" parameter.
key | The key of the BLOB the size of which to be returned. |
optional | An optional list of named blob creation parameters in the form of (param_name = param_value, ...). |
Definition at line 669 of file netcache_api.cpp.
References CheckBlobSize(), ncbi::grid::netcache::search::fields::key, CNetCacheAPIParameters::LoadNamedParameters(), CNetCacheAPI::m_Impl, and NStr::StringToUInt8().
Referenced by CGridCommandLineInterfaceApp::Cmd_BlobInfo(), CSampleNetCacheClient::DemoPartialRead(), SNetStorage_NetCacheBlob::GetInfo(), SNetStorage_NetCacheBlob::GetSize(), and CGridCommandLineInterfaceApp::NetCacheSanityCheck().
size_t CNetICacheClient::GetBlobSize | ( | const string & | key, |
int | version, | ||
const string & | subkey, | ||
const CNamedParameterList * | optional = NULL |
||
) |
Returns the size of the BLOB identified by the "key", "version", and "subkey" parameters.
Definition at line 421 of file neticache_client.cpp.
References CheckBlobSize(), ncbi::grid::netcache::search::fields::key, CNetCacheAPIParameters::LoadNamedParameters(), CNetICacheClient::m_Impl, NStr::StringToUInt8(), ncbi::grid::netcache::search::fields::subkey, and version.
Referenced by CGridCommandLineInterfaceApp::Cmd_BlobInfo(), NDirectNetStorageImpl::CNetCache::GetSize(), and CNetICacheClient::GetSize().
string CNetCacheAPIParameters::GetCacheName | ( | void | ) | const |
Definition at line 209 of file netcache_params.cpp.
References NETCACHE_API_GET_PARAM_IMPL.
Referenced by SNetICacheClientImpl::Init(), SNetICacheClientImpl::InitiateWriteCmd(), SNetICacheClientImpl::MakeStdCmd(), CNetICacheClientExt::ProlongBlobLifetime(), and CNetICacheClient::Search().
|
virtual |
Implements ICache.
Definition at line 931 of file neticache_client.cpp.
References CNetICacheClient::m_Impl.
Referenced by CDataCrawlerCache::GetCompoundKey(), NDirectNetStorageImpl::SContext::Init(), and NDirectNetStorageImpl::s_GetAppDomain().
CNetCacheAPI::ECachingMode CNetCacheAPIParameters::GetCachingMode | ( | ) | const |
Definition at line 146 of file netcache_params.cpp.
References NETCACHE_API_GET_PARAM_IMPL.
Referenced by CNetCacheReader::CNetCacheReader(), and CNetCacheWriter::CNetCacheWriter().
STimeout CNetICacheClient::GetCommunicationTimeout | ( | ) | const |
Definition at line 259 of file neticache_client.cpp.
References CNetICacheClient::m_Impl.
CCompoundIDPool CNetCacheAPI::GetCompoundIDPool | ( | ) |
Definition at line 932 of file netcache_api.cpp.
References CNetCacheAPI::m_Impl.
Referenced by CGridClient::GetProgressMessage(), CBlobStorage_NetCache::IsKeyValid(), SWorkerNodeJobContextImpl::PutProgressMessage(), CGridClient::RemoveDataBlob(), and CGridClient::x_RenewAllJobBlobs().
|
inline |
Definition at line 207 of file netcache_key.hpp.
References CNetCacheKey::m_CreationTime.
Referenced by CNetCacheKey::KeyToCompoundID().
CNetCacheAPI::EReadResult CNetCacheAPI::GetData | ( | const string & | key, |
CSimpleBuffer & | buffer, | ||
const CNamedParameterList * | optional = NULL |
||
) |
Retrieve BLOB from server by key This method retrieves BLOB size, allocates memory and gets all the data from the server.
Blob size and binary data is placed into blob_to_read structure. Do not use this method if you are not sure you have memory to load the whole BLOB.
Definition at line 895 of file netcache_api.cpp.
References buffer, CNetCacheAPI::eNotFound, CNetCacheAPI::GetData(), ncbi::grid::netcache::search::fields::key, CNetCacheAPI::m_Impl, and NULL.
IReader * CNetCacheAPI::GetData | ( | const string & | key, |
size_t * | blob_size = NULL , |
||
const CNamedParameterList * | optional = NULL |
||
) |
Retrieve BLOB from server by key.
Caller is responsible for deletion of the IReader* object. It must be deleted before the destruction of CNetCacheAPI.
key | BLOB key to read (returned by PutData) |
blob_size | Pointer to the memory location where the size of the requested blob will be stored. |
optional | An optional list of named blob creation parameters in the form of (param_name = param_value, ...). |
Definition at line 800 of file netcache_api.cpp.
References CNetCacheException::eAccessDenied, CNetCacheException::eBlobNotFound, CException::GetErrCode(), CNetCacheAPI::GetReader(), ncbi::grid::netcache::search::fields::key, and NULL.
Referenced by CProjectStorage::Clone(), CNetCacheAPI::GetData(), and CGridCommandLineInterfaceApp::NetCacheSanityCheck().
CNetCacheAPI::EReadResult CNetCacheAPI::GetData | ( | const string & | key, |
void * | buf, | ||
size_t | buf_size, | ||
size_t * | n_read = 0 , |
||
size_t * | blob_size = 0 , |
||
const CNamedParameterList * | optional = NULL |
||
) |
Retrieve BLOB from server by key.
Definition at line 873 of file netcache_api.cpp.
References _ASSERT, buf, CNetCacheAPI::eNotFound, CNetCacheAPI::GetData(), ncbi::grid::netcache::search::fields::key, and CNetCacheAPI::m_Impl.
|
inlineoverridevirtual |
Get error code interpreted as text.
Reimplemented from CNetServiceException.
Reimplemented in CNetCacheBlobTooOldException.
Definition at line 78 of file netcache_api_expt.hpp.
References CNetCacheException::eAccessDenied, CNetCacheException::eAuthenticationError, CNetCacheException::eBlobNotFound, CNetCacheException::eInvalidServerResponse, CNetCacheException::eKeyFormatError, CNetCacheException::eNotImplemented, CNetCacheException::eServerError, CNetCacheException::eUnknownCommand, CException::GetErrCode(), and CException::GetErrCodeString().
|
inlineoverridevirtual |
Get error code interpreted as text.
Reimplemented from CNetCacheException.
Definition at line 109 of file netcache_api_expt.hpp.
References CNetCacheBlobTooOldException::eBlobTooOld, CException::GetErrCode(), and CException::GetErrCodeString().
|
inline |
Definition at line 101 of file netcache_key.hpp.
References CNetCacheKey::m_Flags.
|
virtual |
Retrieve the effective combination of flags from the underlying storage.
Implements ICache.
Definition at line 343 of file neticache_client.cpp.
References CNetICacheClient::m_Impl.
|
inline |
Definition at line 100 of file netcache_key.hpp.
References CNetCacheKey::m_Flags.
Referenced by CNetCacheKey::KeyToCompoundID().
Definition at line 185 of file netcache_key.hpp.
References CNetCacheKey::m_Host.
Referenced by CNetCacheKey::KeyToCompoundID().
|
inline |
Definition at line 196 of file netcache_key.hpp.
References CNetCacheKey::m_HostPortCRC32.
|
inline |
Definition at line 179 of file netcache_key.hpp.
References CNetCacheKey::m_Id.
Referenced by CNetCacheKey::KeyToCompoundID().
|
virtual |
Get an input stream to a blob.
[in] | blob_key | Blob key to read |
[out] | blob_size_ptr | if blob_size_ptr if not NULL the size of a blob is returned |
[in] | lock_mode | Blob locking mode |
Implements IBlobStorage.
Definition at line 1065 of file netcache_api.cpp.
References CNetCacheAPI::GetIStream(), ncbi::grid::netcache::search::fields::key, CBlobStorage_NetCache::m_IStream, and CBlobStorage_NetCache::m_NCClient.
Referenced by CCgiSession_NetCache::GetAttrIStream().
CNcbiIstream * CNetCacheAPI::GetIStream | ( | const string & | key, |
size_t * | blob_size = NULL , |
||
const CNamedParameterList * | optional = NULL |
||
) |
Create an istream object for reading blob data.
CNetCacheException | The requested blob does not exist. |
Definition at line 910 of file netcache_api.cpp.
References CRWStreambuf::fLeakExceptions, CRWStreambuf::fOwnReader, CNetCacheAPI::GetReader(), ncbi::grid::netcache::search::fields::key, and NULL.
Referenced by CSampleNetCacheClient::DemoCompression(), CBlobStorage_NetCache::GetIStream(), CProjectStorage::GetIstream(), and CRemoteAppClientSampleApp::ShowBlob().
Definition at line 173 of file netcache_key.hpp.
References CNetCacheKey::m_Key.
Definition at line 141 of file netcache_rw.hpp.
References CNetCacheWriter::m_Key.
unsigned CNetCacheAPIParameters::GetMaxBlobAge | ( | ) | const |
Definition at line 189 of file netcache_params.cpp.
References NETCACHE_API_GET_PARAM_IMPL.
Referenced by SNetCacheAPIImpl::AppendClientIPSessionIDPasswordAgeHitID(), SNetCacheAPIImpl::GetPartReader(), and SNetICacheClientImpl::GetReadStreamPart().
CNetCacheAPI::EMirroringMode CNetCacheAPIParameters::GetMirroringMode | ( | ) | const |
Definition at line 151 of file netcache_params.cpp.
References NETCACHE_API_GET_PARAM_IMPL.
Referenced by SNetCacheAPIImpl::ExecMirrorAware(), and SNetCacheAPIImpl::InitiateWriteCmd().
|
inline |
Definition at line 669 of file netcache_api.hpp.
References CBlobStorage_NetCache::m_NCClient.
IEmbeddedStreamWriter * CNetICacheClient::GetNetCacheWriter | ( | const string & | key, |
int | version, | ||
const string & | subkey, | ||
const CNamedParameterList * | optional = NULL |
||
) |
Create or update the specified blob.
This method is blocking – it waits for a confirmation from NetCache after all data is transferred. Since blob EOF marker is sent in the destructor, the blob will not be created until the stream is deleted.
key | ICache key |
version | ICache key version |
subkey | ICache subkey |
time_to_live | BLOB time to live value in seconds. 0 - server side default is assumed. |
caching_mode | Defines whether to enable file caching. |
Definition at line 576 of file neticache_client.cpp.
References eICache_NoWait, eNetCache_Wait, ICache::fBestReliability, ncbi::grid::netcache::search::fields::key, CNetCacheAPIParameters::LoadNamedParameters(), CNetICacheClient::m_Impl, s_KeyVersionSubkeyToBlobID(), ncbi::grid::netcache::search::fields::subkey, and version.
Referenced by CGridCommandLineInterfaceApp::Cmd_PutBlob(), NAutomation::SNetCacheService::GetWriter(), CNetICacheClient::GetWriteStream(), and NDirectNetStorageImpl::CNetCache::StartWrite().
IReader * CNetCacheAPI::GetPartReader | ( | const string & | key, |
size_t | offset, | ||
size_t | part_size, | ||
size_t * | blob_size = NULL , |
||
const CNamedParameterList * | optional = NULL |
||
) |
Get a pointer to the IReader interface to read a portion of the blob contents.
See the description of GetReader() for details. The Read() method of the returned IReader interface implementation is not blocking.
Definition at line 772 of file netcache_api.cpp.
References ncbi::grid::netcache::search::fields::key, CNetCacheAPI::m_Impl, and offset.
Referenced by CGridCommandLineInterfaceApp::Cmd_GetBlob(), and CNetCacheAPI::ReadPart().
std::string CNetCacheAPIParameters::GetPassword | ( | void | ) | const |
Definition at line 174 of file netcache_params.cpp.
References NETCACHE_API_GET_PARAM_IMPL.
Referenced by SNetCacheAPIImpl::AppendClientIPSessionIDPasswordAgeHitID().
|
inline |
Definition at line 191 of file netcache_key.hpp.
References CNetCacheKey::m_Port.
Referenced by CNetCacheKey::KeyToCompoundID().
|
inline |
Definition at line 212 of file netcache_key.hpp.
References CNetCacheKey::m_Random.
Referenced by CNetCacheKey::KeyToCompoundID(), and CNCMessageHandler::x_StartCommand().
IReader * CNetCacheAPI::GetReader | ( | const string & | key, |
size_t * | blob_size = NULL , |
||
const CNamedParameterList * | optional = NULL |
||
) |
Get a pointer to the IReader interface to read blob contents.
This is a safe version of the GetData method having the same signature. Unlike GetData, GetReader will throw an exception if the requested blob is not found.
Definition at line 766 of file netcache_api.cpp.
References ncbi::grid::netcache::search::fields::key, and CNetCacheAPI::m_Impl.
Referenced by CGridCommandLineInterfaceApp::Cmd_GetBlob(), CStringOrBlobStorageReader::CStringOrBlobStorageReader(), CSampleNetCacheClient::DemoIWriterIReader(), CNetCacheAPI::GetData(), CNetCacheAPI::GetIStream(), NAutomation::SNetCacheService::GetReader(), and CGridCommandLineInterfaceApp::NetCacheSanityCheck().
|
virtual |
Read a lengthy blob via the IReader interface.
The Read() method of the returned implementation is not blocking. The caller must provide a reading completion loop for the Read() call.
Implements ICache.
Definition at line 699 of file neticache_client.cpp.
References ncbi::grid::netcache::search::fields::key, CNetICacheClient::m_Impl, NULL, ncbi::grid::netcache::search::fields::subkey, and version.
|
virtual |
Read a lengthy blob via the IReader interface.
The Read() method of the returned implementation is not blocking. The caller must provide a reading completion loop for the Read() call.
Implements ICache.
Definition at line 682 of file neticache_client.cpp.
References CNetCacheAPI::eCaching_AppDefault, CNetICacheClient::GetReadStream(), ncbi::grid::netcache::search::fields::key, nc_caching_mode, NULL, ncbi::grid::netcache::search::fields::subkey, and version.
IReader * CNetICacheClient::GetReadStream | ( | const string & | key, |
int | version, | ||
const string & | subkey, | ||
size_t * | blob_size_ptr, | ||
const CNamedParameterList * | optional = NULL |
||
) |
Read a lengthy blob via the IReader interface.
The Read() method of the returned implementation is not blocking. The caller must provide a reading completion loop for the Read() call.
Definition at line 658 of file neticache_client.cpp.
References CNetICacheClient::GetReadStreamPart(), ncbi::grid::netcache::search::fields::key, ncbi::grid::netcache::search::fields::subkey, and version.
Referenced by CGridCommandLineInterfaceApp::Cmd_GetBlob(), CDataCrawlerCache::GetReadStream(), CNetICacheClient::GetReadStream(), and CGraphTrack::x_LoadSettings().
IReader * CNetICacheClient::GetReadStreamPart | ( | const string & | key, |
int | version, | ||
const string & | subkey, | ||
size_t | offset, | ||
size_t | part_size, | ||
size_t * | blob_size_ptr, | ||
const CNamedParameterList * | optional = NULL |
||
) |
Read data from the specified blob.
The IReader implementation returned is NOT blocking: its Read() method may return a partial result before the requested amount of data is retrieved. The Read() call must be placed within a loop that completes data retrieval.
key | ICache key |
version | ICache key version |
subkey | ICache subkey |
offset | Offset in the blob at which to start reading it. |
part_size | Maximum number of bytes to read with this call. |
blob_size_ptr | If not NULL, this parameter must point to a variable that will receive the total blob size in bytes. |
caching_mode | Defines whether to enable file caching. |
server_to_use | Explicitly define the server to use for reading. |
Definition at line 669 of file neticache_client.cpp.
References ncbi::grid::netcache::search::fields::key, CNetICacheClient::m_Impl, offset, ncbi::grid::netcache::search::fields::subkey, and version.
Referenced by CGridCommandLineInterfaceApp::Cmd_GetBlob(), and CNetICacheClient::GetReadStream().
|
inline |
Definition at line 138 of file netcache_rw.hpp.
References CNetCacheWriter::m_ResponseType.
Referenced by SNetICacheClientImpl::InitiateWriteCmd().
Definition at line 164 of file netcache_params.cpp.
References NETCACHE_API_GET_PARAM_REVERSE_IMPL.
Referenced by SNetICacheClientImpl::ChooseServerAndExec(), and SNetCacheAPIImpl::ExecMirrorAware().
Definition at line 169 of file netcache_params.cpp.
References NETCACHE_API_GET_PARAM_REVERSE_IMPL.
Referenced by SNetCacheAPIImpl::InitiateWriteCmd().
CNetServer * CNetCacheAPIParameters::GetServerLastUsedPtr | ( | ) | const |
Definition at line 184 of file netcache_params.cpp.
References NETCACHE_API_GET_PARAM_IMPL.
Referenced by SNetICacheClientImpl::ChooseServerAndExec().
CNetServer CNetCacheAPIParameters::GetServerToUse | ( | ) | const |
Definition at line 179 of file netcache_params.cpp.
References NETCACHE_API_GET_PARAM_IMPL.
Referenced by SNetICacheClientImpl::ChooseServerAndExec().
void CNetCacheAdmin::GetServerVersion | ( | CNcbiOstream & | output_stream | ) |
Definition at line 117 of file netcache_api_admin.cpp.
References CNetCacheAdmin::m_Impl.
CNetService CNetCacheAPI::GetService | ( | ) |
Definition at line 922 of file netcache_api.cpp.
References CNetCacheAPI::m_Impl.
Referenced by CGridCommandLineInterfaceApp::Cmd_Exec(), CGridCommandLineInterfaceApp::Cmd_ServerInfo(), CStringOrBlobStorageReader::CStringOrBlobStorageReader(), CNetCacheAPI::SetCommunicationTimeout(), and CGridCommandLineInterfaceApp::SetUp_NetCacheCmd().
CNetService CNetICacheClient::GetService | ( | ) |
Definition at line 892 of file neticache_client.cpp.
References CNetICacheClient::m_Impl.
Referenced by CGridCommandLineInterfaceApp::Cmd_PutBlob(), NAutomation::SNetCacheServer::Create(), NAutomation::SNetCacheService::ExecGetServers(), CDataCrawlerCache::GetCompoundKey(), NAutomation::SNetCacheService::GetService(), and NDirectNetStorageImpl::CNetCache::SetLocator().
Definition at line 217 of file netcache_key.hpp.
References CNetCacheKey::m_ServiceName.
Referenced by CNetCacheKey::KeyToCompoundID().
Check if BLOB exists, return BLOB size.
key | BLOB identification key |
subkey | BLOB identification subkey |
version | BLOB version |
Implements ICache.
Definition at line 414 of file neticache_client.cpp.
References CNetICacheClient::GetBlobSize(), ncbi::grid::netcache::search::fields::key, ncbi::grid::netcache::search::fields::subkey, and version.
Referenced by CDataCrawlerCache::GetReadSize().
Definition at line 341 of file neticache_client.hpp.
References i, ncbi::grid::netcache::search::fields::key, r(), CNetICacheClient::Search(), and ncbi::grid::netcache::search::fields::subkey.
|
virtual |
Get expiration timeout.
Implements ICache.
Definition at line 367 of file neticache_client.cpp.
References NCBI_THROW.
|
virtual |
Get timestamp policy.
Implements ICache.
Definition at line 361 of file neticache_client.cpp.
References NCBI_THROW.
bool CNetCacheAPIParameters::GetTryAllServers | ( | ) | const |
Definition at line 204 of file netcache_params.cpp.
References NETCACHE_API_GET_PARAM_IMPL.
Referenced by SNetICacheClientImpl::ChooseServerAndExec().
unsigned CNetCacheAPIParameters::GetTTL | ( | void | ) | const |
Definition at line 141 of file netcache_params.cpp.
References NETCACHE_API_GET_PARAM_IMPL.
Referenced by SNetCacheAPIImpl::InitiateWriteCmd(), and SNetICacheClientImpl::InitiateWriteCmd().
bool CNetCacheAPIParameters::GetUseCompoundID | ( | ) | const |
Definition at line 199 of file netcache_params.cpp.
References NETCACHE_API_GET_PARAM_IMPL.
Referenced by SNetCacheAPIImpl::InitiateWriteCmd().
|
inline |
Definition at line 125 of file netcache_api_expt.hpp.
References CException::GetMsg(), and NULL.
Referenced by SNetICacheClientImpl::ReadCurrentBlobNotOlderThan().
|
inline |
Definition at line 202 of file netcache_key.hpp.
References CNetCacheKey::m_Version.
Referenced by CNCBlobKey::Assign(), and CGridCommandLineInterfaceApp::Cmd_WhatIs().
|
virtual |
Get version retention.
Implements ICache.
Definition at line 385 of file neticache_client.cpp.
References NCBI_THROW.
|
virtual |
Return sequential stream interface to write BLOB data.
key | BLOB identification key |
subkey | BLOB identification subkey |
version | BLOB version |
time_to_live | Individual timeout |
Implements ICache.
Definition at line 566 of file neticache_client.cpp.
References CNetICacheClient::GetNetCacheWriter(), ncbi::grid::netcache::search::fields::key, nc_blob_ttl, ncbi::grid::netcache::search::fields::subkey, and version.
Referenced by CDataCrawlerCache::GetWriteStream(), and CGraphTrack::x_OnJobCompleted().
Check if the BLOB identified by the key "key" exists.
key | Key of the BLOB to check for existence. |
optional | An optional list of named blob creation parameters in the form of (param_name = param_value, ...). |
Definition at line 653 of file netcache_api.cpp.
References ncbi::grid::netcache::search::fields::key, CNetCacheAPIParameters::LoadNamedParameters(), and CNetCacheAPI::m_Impl.
Referenced by SNetStorage_NetCacheBlob::Exists(), CProjectStorage::Exists(), SNetStorage_NetCacheBlob::GetInfo(), and SNetStorage_NetCacheBlob::Remove().
bool CNetICacheClient::HasBlob | ( | const string & | key, |
const string & | subkey, | ||
const CNamedParameterList * | optional = NULL |
||
) |
Definition at line 621 of file neticache_client.cpp.
References ncbi::grid::netcache::search::fields::key, CNetCacheAPIParameters::LoadNamedParameters(), CNetICacheClient::m_Impl, NStr::StartsWith(), and ncbi::grid::netcache::search::fields::subkey.
Referenced by CDataCrawlerCache::GetState(), and CNetICacheClient::HasBlobs().
Check if any BLOB exists (any version)
Implements ICache.
Definition at line 615 of file neticache_client.cpp.
References CNetICacheClient::HasBlob(), ncbi::grid::netcache::search::fields::key, and ncbi::grid::netcache::search::fields::subkey.
Referenced by CGraphTrack::x_LoadSettings().
|
inline |
Definition at line 89 of file netcache_key.hpp.
References CNetCacheKey::m_Key, and CNetCacheKey::m_PrimaryKey.
Referenced by CNCBlobKey::Assign().
|
inlineprivate |
Definition at line 146 of file netcache_rw.hpp.
References CNetCacheWriter::m_TransmissionWriter, and NULL.
Referenced by CNetCacheWriter::Abort(), CNetCacheWriter::Close(), CNetCacheWriter::Flush(), and CNetCacheWriter::Write().
Check if a given string is a valid key.
The implementation should not make any connection to the storage, it just checks the str structure.
Implements IBlobStorage.
Definition at line 1060 of file netcache_api.cpp.
References CNetCacheAPI::GetCompoundIDPool(), CNetCacheKey::IsValidKey(), CBlobStorage_NetCache::m_NCClient, and str().
|
virtual |
Implements ICache.
Definition at line 373 of file neticache_client.cpp.
References NCBI_THROW.
|
inlinestatic |
Definition at line 129 of file netcache_key.hpp.
References NULL, and CNetCacheKey::ParseBlobKey().
Referenced by NAutomation::SNetCacheService::ExecGetBlob(), CGridClient::GetProgressMessage(), CBlobStorage_NetCache::IsKeyValid(), CNetCacheKey::IsValidKey(), SWorkerNodeJobContextImpl::PutProgressMessage(), CGridClient::RemoveDataBlob(), and CNetServProtoParserBase::x_GetToken().
|
inlinestatic |
Definition at line 133 of file netcache_key.hpp.
References CNetCacheKey::IsValidKey(), and ncbi::grid::netcache::search::fields::key.
|
static |
Definition at line 377 of file netcache_key.cpp.
References CCompoundID::AppendFlags(), CCompoundID::AppendHost(), CCompoundID::AppendID(), CCompoundID::AppendIPv4SockAddr(), CCompoundID::AppendPort(), CCompoundID::AppendRandom(), CCompoundID::AppendServiceName(), CCompoundID::AppendTimestamp(), eCIC_NetCacheBlobKey, CNetCacheKey::GetCreationTime(), CNetCacheKey::GetFlags(), CNetCacheKey::GetHost(), CSocketAPI::gethostbyname(), CNetCacheKey::GetId(), CNetCacheKey::GetPort(), CNetCacheKey::GetRandomPart(), CNetCacheKey::GetServiceName(), CSocketAPI::isip(), CCompoundIDPool::NewID(), and CCompoundID::ToString().
Referenced by SNetCacheAPIImpl::InitiateWriteCmd().
void CNetCacheAPIParameters::LoadNamedParameters | ( | const CNamedParameterList * | optional | ) |
Definition at line 48 of file netcache_params.cpp.
References CNetCacheAPI::eNPT_ActualBlobAgePtr, CNetCacheAPI::eNPT_BlobTTL, CNetCacheAPI::eNPT_CacheName, CNetCacheAPI::eNPT_CachingMode, CNetCacheAPI::eNPT_MaxBlobAge, CNetCacheAPI::eNPT_MirroringMode, CNetCacheAPI::eNPT_Password, CNetCacheAPI::eNPT_ServerCheck, CNetCacheAPI::eNPT_ServerCheckHint, CNetCacheAPI::eNPT_ServerLastUsedPtr, CNetCacheAPI::eNPT_ServerToUse, CNetCacheAPI::eNPT_TryAllServers, CNetCacheAPI::eNPT_UseCompoundID, CNamedParameterList::Is(), CNamedParameterList::m_MoreParams, CNetCacheAPIParameters::SetActualBlobAgePtr(), CNetCacheAPIParameters::SetCacheName(), CNetCacheAPIParameters::SetCachingMode(), CNetCacheAPIParameters::SetMaxBlobAge(), CNetCacheAPIParameters::SetMirroringMode(), CNetCacheAPIParameters::SetPassword(), CNetCacheAPIParameters::SetServerCheck(), CNetCacheAPIParameters::SetServerCheckHint(), CNetCacheAPIParameters::SetServerLastUsedPtr(), CNetCacheAPIParameters::SetServerToUse(), CNetCacheAPIParameters::SetTryAllServers(), CNetCacheAPIParameters::SetTTL(), and CNetCacheAPIParameters::SetUseCompoundID().
Referenced by CNetCacheAPI::GetBlobInfo(), CNetICacheClient::GetBlobInfo(), CNetCacheAPI::GetBlobSize(), CNetICacheClient::GetBlobSize(), CNetICacheClient::GetNetCacheWriter(), SNetCacheAPIImpl::GetPartReader(), SNetICacheClientImpl::GetReadStreamPart(), CNetCacheAPI::HasBlob(), CNetICacheClient::HasBlob(), CNetCacheAPI::ProlongBlobLifetime(), CNetICacheClientExt::ProlongBlobLifetime(), CNetCacheAPI::PutData(), SNetICacheClientImpl::ReadCurrentBlobNotOlderThan(), CNetCacheAPI::Remove(), and CNetICacheClient::RemoveBlob().
NCBI_DECLARE_INTERFACE_VERSION | ( | SNetCacheAPIImpl | , |
"xnetcacheapi" | , | ||
1 | , | ||
1 | , | ||
0 | |||
) |
void NCBI_EntryPoint_xcache_netcache | ( | CPluginManager< ICache >::TDriverInfoList & | info_list, |
CPluginManager< ICache >::EEntryPointRequest | method | ||
) |
Definition at line 1048 of file neticache_client.cpp.
References CHostEntryPointImpl< TClassFactory >::NCBI_EntryPointImpl().
Referenced by Cache_RegisterDriver_NetCache().
void NCBI_EntryPoint_xnetcacheapi | ( | CPluginManager< SNetCacheAPIImpl >::TDriverInfoList & | info_list, |
CPluginManager< SNetCacheAPIImpl >::EEntryPointRequest | method | ||
) |
Definition at line 1036 of file netcache_api.cpp.
References CHostEntryPointImpl< TClassFactory >::NCBI_EntryPointImpl().
CNetCacheBlobTooOldException::NCBI_EXCEPTION_DEFAULT | ( | CNetCacheBlobTooOldException | , |
CNetCacheException | |||
) |
CNetCacheException::NCBI_EXCEPTION_DEFAULT | ( | CNetCacheException | , |
CNetServiceException | |||
) |
|
inline |
Definition at line 56 of file netcache_admin.hpp.
|
inline |
Definition at line 144 of file netcache_api.hpp.
|
inline |
Definition at line 72 of file neticache_client.hpp.
|
inline |
Definition at line 56 of file netcache_admin.hpp.
|
inline |
Definition at line 144 of file netcache_api.hpp.
|
inline |
Definition at line 72 of file neticache_client.hpp.
|
inline |
Definition at line 56 of file netcache_admin.hpp.
|
inline |
Definition at line 144 of file netcache_api.hpp.
|
inline |
Definition at line 72 of file neticache_client.hpp.
|
inline |
Definition at line 56 of file netcache_admin.hpp.
|
inline |
Definition at line 144 of file netcache_api.hpp.
|
inline |
Definition at line 72 of file neticache_client.hpp.
|
inline |
Definition at line 56 of file netcache_admin.hpp.
|
inline |
Definition at line 144 of file netcache_api.hpp.
|
inline |
Definition at line 72 of file neticache_client.hpp.
|
inline |
Definition at line 56 of file netcache_admin.hpp.
|
inline |
Definition at line 144 of file netcache_api.hpp.
|
inline |
Definition at line 72 of file neticache_client.hpp.
|
private |
|
inline |
Definition at line 56 of file netcache_admin.hpp.
|
inline |
Definition at line 144 of file netcache_api.hpp.
|
inline |
Definition at line 72 of file neticache_client.hpp.
Referenced by CNetICacheClientExt::operator=().
|
static |
Parse blob key string into a CNetCacheKey structure.
Definition at line 69 of file netcache_key.cpp.
References CNetCacheKey::AddExtensions(), crc32, eCIC_NetCacheBlobKey, eCIT_Flags, eCIT_Host, eCIT_ID, eCIT_IPv4SockAddr, eCIT_Port, eCIT_Random, eCIT_ServiceName, eCIT_Timestamp, CNetCacheKey::fNCKey_NoServerCheck, CNetCacheKey::fNCKey_SingleServer, CCompoundIDPool::FromString(), CNetCacheKey::GenerateBlobKey(), CCompoundID::GetClass(), CCompoundID::GetFirst(), CCompoundIDField::GetFlags(), CCompoundIDField::GetHost(), CCompoundIDField::GetID(), CCompoundIDField::GetIPv4Address(), CCompoundIDField::GetPort(), CCompoundIDField::GetRandom(), CCompoundIDField::GetServiceName(), CCompoundIDField::GetTimestamp(), int, isalnum(), isdigit(), kEmptyStr, ncbi::grid::netcache::search::fields::key, KEY_EXTENSION_MARKER, KEY_EXTENSION_MARKER_LENGTH, KEY_PREFIX_LENGTH, CNetCacheKey::m_CreationTime, CNetCacheKey::m_Flags, CNetCacheKey::m_Host, CNetCacheKey::m_HostPortCRC32, CNetCacheKey::m_Id, CNetCacheKey::m_Key, CNetCacheKey::m_Port, CNetCacheKey::m_PrimaryKey, CNetCacheKey::m_Random, CNetCacheKey::m_ServiceName, CNetCacheKey::m_Version, CSocketAPI::ntoa(), NULL, PARSE_KEY_PART, PARSE_NUMERIC_KEY_PART, s_KeyPrefix, CNetCacheKey::SetFlag(), NStr::SplitInTwo(), NStr::StartsWith(), and string.
Referenced by CNCBlobKey::Assign(), CNetCacheKey::Assign(), CGridCommandLineInterfaceApp::Cmd_WhatIs(), g_WhatIs(), SNetStorageRPC::GetServiceIfLocator(), CNCDistributionConf::GetSlotByNetCacheKey(), CNetCacheKey::IsValidKey(), CNCBlobKeyLight::KeyVersion(), and CGridClient::x_RenewAllJobBlobs().
|
virtual |
Via parameter "count" (which is guaranteed to be supplied non-NULL) return the number of bytes that are ready to be read from the input device without blocking.
Return eRW_Success if the number of pending bytes has been stored at the location pointed to by "count". Return eRW_NotImplemented if the number cannot be determined. Otherwise, return other eRW_... condition to reflect the problem ("*count" does not need to be updated in the case of non-eRW_Success). Note that if reporting 0 bytes ready, the method may return either both eRW_Success and zero "*count", or return eRW_NotImplemented alone.
Implements IReader.
Definition at line 167 of file netcache_rw.cpp.
References eRW_Success, CNetCacheReader::m_BlobBytesToRead, CNetCacheReader::m_CachingEnabled, CNetCacheReader::m_Connection, SNetServerConnectionImpl::m_Socket, MAX_PENDING_COUNT, and CSocketReaderWriter::PendingCount().
void CNetCacheAPI::PrintBlobInfo | ( | const string & | blob_key, |
const CNamedParameterList * | optional = NULL |
||
) |
Print meta information about the specified blob.
Definition at line 732 of file netcache_api.cpp.
References CNetCacheAPI::GetBlobInfo(), NcbiCout, NcbiEndl, output, and NStr::StartsWith().
Print meta information about the specified blob.
Definition at line 877 of file neticache_client.cpp.
References CNetICacheClient::GetBlobInfo(), ncbi::grid::netcache::search::fields::key, NcbiCout, NcbiEndl, output, NStr::StartsWith(), ncbi::grid::netcache::search::fields::subkey, and version.
void CNetCacheAdmin::PrintConfig | ( | CNcbiOstream & | output_stream | ) |
Print contents of the configuration file.
Definition at line 87 of file netcache_api_admin.cpp.
References CNetCacheAdmin::m_Impl.
Referenced by CGridCommandLineInterfaceApp::Cmd_GetConf().
void CNetCacheAdmin::PrintHealth | ( | CNcbiOstream & | output_stream | ) |
Definition at line 112 of file netcache_api_admin.cpp.
References CNetCacheAdmin::m_Impl.
Referenced by CGridCommandLineInterfaceApp::Cmd_Health().
void CNetCacheAdmin::PrintStat | ( | CNcbiOstream & | output_stream, |
const string & | aggregation_period = kEmptyStr , |
||
CNetCacheAdmin::EStatPeriodCompleteness | period_completeness = eReturnCurrentPeriod |
||
) |
Print server statistics.
output_stream | Stream for printing the GETSTAT command output. |
aggregation_period | Statistics aggregation interval to print ('1min', '1h', 'life', and so on). |
period_completeness | Whether to print statistics for the previous (complete) aggregation interval (as opposed to printing the current but incomplete statistics). |
Definition at line 92 of file netcache_api_admin.cpp.
References cmd, CNetCacheAdmin::eReturnCurrentPeriod, CNetCacheAdmin::m_Impl, and NStr::PrintableString().
Referenced by CGridCommandLineInterfaceApp::Cmd_Stats().
void CNetCacheAPI::ProlongBlobLifetime | ( | const string & | blob_key, |
unsigned | ttl, | ||
const CNamedParameterList * | optional = NULL |
||
) |
Definition at line 747 of file netcache_api.cpp.
References cmd, CNetCacheAPIParameters::LoadNamedParameters(), CNetCacheAPI::m_Impl, NStr::NumericToString(), and CNetCacheKey::StripKeyExtensions().
Referenced by SNetStorage_NetCacheBlob::SetExpiration(), and CGridClient::x_ProlongBlobLifetime().
Remove all blobs from an ICache database.
Definition at line 80 of file netcache_api_admin.cpp.
References cmd, CNetCacheAdmin::m_Impl, and NStr::PrintableString().
Referenced by CGridCommandLineInterfaceApp::Cmd_Purge().
|
virtual |
Delete BLOBs with access time older than specified.
Function finds all BLOB versions with the specified key and removes the old instances.
key | BLOB key |
subkey | BLOB identification subkey |
access_timeout | Time in seconds. All objects older than this are deleted. |
Implements ICache.
Definition at line 638 of file neticache_client.cpp.
References cmd, ncbi::grid::netcache::search::fields::key, CNetICacheClient::m_Impl, NCBI_THROW, CNetICacheClient::RemoveBlob(), and ncbi::grid::netcache::search::fields::subkey.
|
virtual |
Delete all BLOBs older than specified.
access_timeout | Time in seconds. All objects older than this are deleted. |
Implements ICache.
Definition at line 632 of file neticache_client.cpp.
References kEmptyStr.
string CNetCacheAPI::PutData | ( | const string & | key, |
const void * | buf, | ||
size_t | size, | ||
const CNamedParameterList * | optional = NULL |
||
) |
Update an existing BLOB.
Just like all other PutData methods, this one is blocking and waits for a confirmation from NetCache after all data is transferred.
Definition at line 614 of file netcache_api.cpp.
References buf, CNetCacheAPI::eCaching_Disable, eNetCache_Wait, kEmptyStr, ncbi::grid::netcache::search::fields::key, CNetCacheAPIParameters::LoadNamedParameters(), CNetCacheAPI::m_Impl, CNetCacheAPIParameters::SetCachingMode(), ncbi::grid::netcache::search::fields::size, and CNetCacheWriter::WriteBufferAndClose().
string CNetCacheAPI::PutData | ( | const void * | buf, |
size_t | size, | ||
const CNamedParameterList * | optional = NULL |
||
) |
Put BLOB to server.
This method is blocking and waits for a confirmation from NetCache after all data is transferred.
buf | Data to be written. |
size | Number of bytes to write. |
optional | An optional list of named blob creation parameters in the form of (param_name = param_value, ...). |
Definition at line 502 of file netcache_api.cpp.
References buf, kEmptyStr, and ncbi::grid::netcache::search::fields::size.
Referenced by CProjectStorage::Clone(), CGridCommandLineInterfaceApp::Cmd_PutBlob(), CBlobStorage_NetCache::CreateEmptyBlob(), CNetCacheAPI::CreateOStream(), CSampleNetCacheClient::DemoIWriterIReader(), CSampleNetCacheClient::DemoPartialRead(), CSampleNetCacheClient::DemoPutRead(), NAutomation::SNetCacheService::GetWriter(), CGridCommandLineInterfaceApp::NetCacheSanityCheck(), SWorkerNodeJobContextImpl::PutProgressMessage(), s_NetCacheWriterCreate(), CProjectStorage::SaveRawData(), SNetStorage_NetCacheBlob::StartWriting(), and CBlastHitMatrix::WriteToFile().
IEmbeddedStreamWriter * CNetCacheAPI::PutData | ( | string * | key, |
const CNamedParameterList * | optional = NULL |
||
) |
Put BLOB to server.
This method is blocking, it waits for a confirmation from NetCache after all data is transferred. Since blob EOF marker is sent in the destructor, the blob will not be created until the stream is deleted.
key | NetCache key, if empty new key is created |
optional | An optional list of named blob creation parameters in the form of (param_name = param_value, ...). |
Definition at line 641 of file netcache_api.cpp.
References eNetCache_Wait, kEmptyStr, ncbi::grid::netcache::search::fields::key, CNetCacheAPIParameters::LoadNamedParameters(), and CNetCacheAPI::m_Impl.
|
virtual |
If | any error occurs (e.g. BLOB doesn't exist or expired). |
Implements ICache.
Definition at line 486 of file neticache_client.cpp.
References buf, ncbi::grid::netcache::search::fields::key, CNetICacheClient::ReadPart(), ncbi::grid::netcache::search::fields::subkey, and version.
Referenced by CDataCrawlerCache::x_ReadState().
|
virtual |
Read as many as "count" bytes into a buffer pointed to by the "buf" argument.
Always store the number of bytes actually read (0 if read none) via the pointer "bytes_read", if provided non-NULL. Return non-eRW_Success code if EOF / error condition has been encountered during the operation (some data may have been read, nevertheless, and reflected in "*bytes_read"). Special case: if "count" is passed as 0, then the value of "buf" must be ignored, and no change should be made to the state of the input device (but may return non-eRW_Success to indicate that the input device has already been in an error condition).
Implements IReader.
Definition at line 129 of file netcache_rw.cpp.
References SSocketAddress::AsString(), buf, eRW_Eof, eRW_Success, SNetServerInPool::m_Address, CNetCacheReader::m_BlobBytesToRead, CNetCacheReader::m_BlobID, CNetCacheReader::m_BlobSize, CNetCacheReader::m_CacheFile, CNetCacheReader::m_CachingEnabled, CNetCacheReader::m_Connection, SNetServerConnectionImpl::m_Server, SNetServerImpl::m_ServerInPool, NCBI_THROW_FMT, NULL, CFileIO::Read(), and CNetCacheReader::SocketRead().
void CNetCacheAPI::ReadData | ( | const string & | key, |
string & | buffer, | ||
const CNamedParameterList * | optional = NULL |
||
) |
Read the blob pointed to by "key" and store its contents in "buffer".
The output string is resized as required.
CNetCacheException | Thrown if either the blob was not found or a protocol error occurred. |
CNetServiceException | Thrown if a communication error occurred. |
Definition at line 780 of file netcache_api.cpp.
References buffer, ncbi::grid::netcache::search::fields::key, and CNetCacheAPI::ReadPart().
Referenced by CSampleNetCacheClient::DemoPutRead(), CBlobStorage_NetCache::GetBlobAsString(), and CGridClient::GetProgressMessage().
bool CNetICacheClient::ReadPart | ( | const string & | key, |
int | version, | ||
const string & | subkey, | ||
size_t | offset, | ||
size_t | part_size, | ||
void * | buf, | ||
size_t | buf_size | ||
) |
Definition at line 495 of file neticache_client.cpp.
References buf, CNetCacheAPI::eCaching_Disable, CNetCacheAPI::eReadComplete, ncbi::grid::netcache::search::fields::key, CNetICacheClient::m_Impl, nc_caching_mode, NULL, offset, SNetCacheAPIImpl::ReadBuffer(), ncbi::grid::netcache::search::fields::subkey, and version.
Referenced by CNetICacheClient::Read().
void CNetCacheAPI::ReadPart | ( | const string & | key, |
size_t | offset, | ||
size_t | part_size, | ||
string & | buffer, | ||
const CNamedParameterList * | optional = NULL |
||
) |
Read a part of the blob pointed to by "key" and store its contents in "buffer".
The output string is resized as required.
CNetCacheException | Thrown if either the blob was not found or a protocol error occurred. |
CNetServiceException | Thrown if a communication error occurred. |
Definition at line 786 of file netcache_api.cpp.
References buffer, CNetCacheAPI::GetPartReader(), ncbi::grid::netcache::search::fields::key, CNetCacheAPI::m_Impl, NULL, and offset.
Referenced by CSampleNetCacheClient::DemoPartialRead(), and CNetCacheAPI::ReadData().
void CNetICacheClient::RegisterSession | ( | unsigned | pid | ) |
Send session registration command.
Definition at line 331 of file neticache_client.cpp.
References NCBI_THROW.
void CNetCacheAdmin::ReloadServerConfig | ( | EReloadConfigOption | reload_option = eCompleteReload | ) |
Reload configuration parameters from the same source.
Definition at line 69 of file netcache_api_admin.cpp.
References cmd, CNetCacheAdmin::eMirrorReload, and CNetCacheAdmin::m_Impl.
Referenced by CGridCommandLineInterfaceApp::Cmd_Reconf().
void CNetCacheAPI::Remove | ( | const string & | blob_id, |
const CNamedParameterList * | optional = NULL |
||
) |
Remove BLOB by key.
Definition at line 686 of file netcache_api.cpp.
References ERR_POST, ncbi::grid::netcache::search::fields::key, CNetCacheAPIParameters::LoadNamedParameters(), and CNetCacheAPI::m_Impl.
Referenced by CGridCommandLineInterfaceApp::Cmd_RemoveBlob(), CProjectStorage::Delete(), CBlobStorage_NetCache::DeleteBlob(), SNetStorage_NetCacheBlob::Remove(), and CGridClient::RemoveDataBlob().
Remove specific cache entry.
key | BLOB identification key |
subkey | BLOB identification subkey |
version | BLOB version |
Implements ICache.
Definition at line 591 of file neticache_client.cpp.
References ncbi::grid::netcache::search::fields::key, CNetICacheClient::RemoveBlob(), ncbi::grid::netcache::search::fields::subkey, and version.
Referenced by CDataCrawlerCache::Remove(), and CDataCrawlerCache::SetState().
void CNetICacheClient::RemoveBlob | ( | const string & | key, |
int | version, | ||
const string & | subkey, | ||
const CNamedParameterList * | optional = NULL |
||
) |
Definition at line 598 of file neticache_client.cpp.
References ncbi::grid::netcache::search::fields::key, CNetCacheAPIParameters::LoadNamedParameters(), CNetICacheClient::m_Impl, ncbi::grid::netcache::search::fields::subkey, and version.
Referenced by CGridCommandLineInterfaceApp::Cmd_RemoveBlob(), CNetICacheClient::Purge(), NDirectNetStorageImpl::CNetCache::Remove(), and CNetICacheClient::Remove().
|
virtual |
Close all streams and connections.
Implements IBlobStorage.
Definition at line 1097 of file netcache_api.cpp.
References CBlobStorage_NetCache::m_IStream, and CBlobStorage_NetCache::m_OStream.
Referenced by CCgiSession_NetCache::Reset(), and CBlobStorage_NetCache::~CBlobStorage_NetCache().
|
private |
Definition at line 369 of file netcache_rw.cpp.
References CNetCacheWriter::m_SocketReaderWriter, and CNetCacheWriter::m_TransmissionWriter.
Referenced by CNetCacheWriter::AbortConnection(), CNetCacheWriter::Close(), and CNetCacheWriter::EstablishConnection().
|
virtual |
Implements ICache.
Definition at line 937 of file neticache_client.cpp.
vector< CNetICacheClient::CBlobInfo > CNetICacheClient::Search | ( | CNetICacheClient::CExpression | expression, |
CNetICacheClient::CFields | filter = CFields() |
||
) |
Returns information for all blobs matching provided search expression.
expression | Search expression, e.g. 'created < hours(1) && size >= 1024' |
fields | Additional output fields requested in blob info, e.g. 'expires | version_expires' |
Definition at line 947 of file neticache_client.cpp.
References CNetCacheAPIParameters::GetCacheName(), kEmptyStr, CNetICacheClient::m_Impl, output, NStr::PrintableString(), and result.
Referenced by CNetICacheClient::GetSubkeyList().
|
inline |
Definition at line 148 of file netcache_params.hpp.
References CNetCacheAPIParameters::eDP_ActualBlobAgePtr, CNetCacheAPIParameters::m_ActualBlobAgePtr, and CNetCacheAPIParameters::m_DefinedParameters.
Referenced by CNetCacheAPIParameters::LoadNamedParameters().
Definition at line 143 of file netcache_rw.hpp.
References CNetCacheWriter::m_BlobID.
Referenced by SNetCacheAPIImpl::InitiateWriteCmd().
|
virtual |
Set current valid version for a BLOB.
[in] | key | BLOB identification key |
[in] | subkey | BLOB identification subkey |
[in] | version | BLOB version which must be considered valid from now on |
Implements ICache.
Definition at line 835 of file neticache_client.cpp.
References ERR_POST, ncbi::grid::netcache::search::fields::key, CNetICacheClient::m_Impl, CNetServer::SExecResult::response, s_KeyVersionSubkeyToBlobID(), ncbi::grid::netcache::search::fields::subkey, and version.
Definition at line 166 of file netcache_params.hpp.
References CNetCacheAPIParameters::eDP_CacheName, CNetCacheAPIParameters::m_CacheName, and CNetCacheAPIParameters::m_DefinedParameters.
Referenced by SNetICacheClientImpl::Init(), CNetCacheAPIParameters::LoadNamedParameters(), and SNetICacheClientImpl::SNetICacheClientImpl().
|
inline |
Definition at line 98 of file netcache_params.hpp.
References CNetCacheAPIParameters::eDP_CachingMode, CNetCacheAPIParameters::m_CachingMode, and CNetCacheAPIParameters::m_DefinedParameters.
Referenced by CNetCacheAPIParameters::LoadNamedParameters(), CNetCacheAPI::PutData(), and CNetICacheClient::Store().
Definition at line 481 of file netcache_api.hpp.
References CNetService::GetServerPool(), CNetCacheAPI::GetService(), and CNetServerPool::SetCommunicationTimeout().
Referenced by CProjectStorage::SetCommTimeout().
Set communication timeout.
Definition at line 253 of file neticache_client.cpp.
References CNetICacheClient::m_Impl.
void CNetCacheAPI::SetCompoundIDPool | ( | CCompoundIDPool::TInstance | compound_id_pool | ) |
Definition at line 937 of file netcache_api.cpp.
References CNetCacheAPI::m_Impl.
Referenced by SNetStorageRPC::x_InitNetCacheAPI().
void CNetCacheAPI::SetDefaultParameters | ( | const CNamedParameterList * | parameters | ) |
Override defaults used by this object.
parameters | A list of named parameters, for example: SetDefaultParameters(use_compound_id = true); |
Definition at line 497 of file netcache_api.cpp.
References CNetCacheAPI::m_Impl.
Referenced by CGridCommandLineInterfaceApp::SetUp_NetCacheCmd(), and SNetStorageRPC::x_InitNetCacheAPI().
|
inline |
Definition at line 102 of file netcache_key.hpp.
References CNetCacheKey::m_Flags.
Referenced by CNetCacheKey::ParseBlobKey().
|
virtual |
Pass flags to the underlying storage.
Implements ICache.
Definition at line 349 of file neticache_client.cpp.
References flags, and CNetICacheClient::m_Impl.
Referenced by CNetICacheClientExt::CNetICacheClientExt(), CNetICacheClientExt::operator=(), CGridCommandLineInterfaceApp::SetUp_NetCacheCmd(), and CDataCrawlerCache::x_Initialize().
|
inline |
Definition at line 142 of file netcache_params.hpp.
References CNetCacheAPIParameters::eDP_MaxBlobAge, CNetCacheAPIParameters::m_DefinedParameters, and CNetCacheAPIParameters::m_MaxBlobAge.
Referenced by CNetCacheAPIParameters::LoadNamedParameters(), and SNetICacheClientImpl::ReadCurrentBlobNotOlderThan().
|
inline |
Definition at line 104 of file netcache_params.hpp.
References CNetCacheAPIParameters::eDP_MirroringMode, CNetCacheAPIParameters::m_DefinedParameters, and CNetCacheAPIParameters::m_MirroringMode.
Referenced by SNetCacheAPIImpl::Init(), CNetCacheAPIParameters::LoadNamedParameters(), and CNetCacheAPIParameters::SetMirroringMode().
Definition at line 109 of file netcache_params.cpp.
References NStr::CompareNocase(), CNetCacheAPI::eIfKeyMirrored, CNetCacheAPI::eMirroringDisabled, CNetCacheAPI::eMirroringEnabled, kEmptyStr, NStr::Replace(), CNetCacheAPIParameters::SetMirroringMode(), and CNetCacheAPIParameters::StringToBool().
Definition at line 88 of file netcache_params.cpp.
References CNetCacheAPIParameters::eDP_Password, kEmptyStr, CNetCacheAPIParameters::m_DefinedParameters, CNetCacheAPIParameters::m_Password, MAX_NETCACHE_PASSWORD_LENGTH, NCBI_THROW, and NStr::PrintableString().
Referenced by CNetCacheAPIParameters::LoadNamedParameters().
Definition at line 124 of file netcache_params.cpp.
References NStr::CompareNocase(), eDefault, eOff, eOn, CNetCacheAPIParameters::SetServerCheck(), and CNetCacheAPIParameters::StringToBool().
|
inline |
Definition at line 112 of file netcache_params.hpp.
References CNetCacheAPIParameters::eDP_ServerCheck, CNetCacheAPIParameters::m_DefinedParameters, and CNetCacheAPIParameters::m_ServerCheck.
Referenced by SNetCacheAPIImpl::Init(), CNetCacheAPIParameters::LoadNamedParameters(), and CNetCacheAPIParameters::SetServerCheck().
|
inline |
Definition at line 120 of file netcache_params.hpp.
References CNetCacheAPIParameters::eDP_ServerCheckHint, CNetCacheAPIParameters::m_DefinedParameters, and CNetCacheAPIParameters::m_ServerCheckHint.
Referenced by SNetCacheAPIImpl::Init(), CNetCacheAPIParameters::LoadNamedParameters(), and CNetCacheAPIParameters::SetServerCheckHint().
Definition at line 131 of file netcache_params.cpp.
References CNetCacheAPIParameters::SetServerCheckHint(), and CNetCacheAPIParameters::StringToBool().
|
inline |
Definition at line 136 of file netcache_params.hpp.
References CNetCacheAPIParameters::eDP_ServerLastUsedPtr, CNetCacheAPIParameters::m_DefinedParameters, and CNetCacheAPIParameters::m_ServerLastUsedPtr.
Referenced by CNetCacheAPIParameters::LoadNamedParameters().
|
inline |
Definition at line 130 of file netcache_params.hpp.
References CNetCacheAPIParameters::eDP_ServerToUse, CNetCacheAPIParameters::m_DefinedParameters, and CNetCacheAPIParameters::m_ServerToUse.
Referenced by CNetCacheAPIParameters::LoadNamedParameters().
|
virtual |
Set timestamp update policy.
policy | A bitwise combination of "ETimeStampFlags". |
timeout | Default expiration timeout for the stored BLOBs. |
max_timeout | Maximum value for individually set BLOB timeouts. If "max_timeout" < "timeout", then it 'll be set to "timeout". |
Implements ICache.
Definition at line 355 of file neticache_client.cpp.
References NCBI_THROW.
|
inline |
Definition at line 160 of file netcache_params.hpp.
References CNetCacheAPIParameters::eDP_TryAllServers, CNetCacheAPIParameters::m_DefinedParameters, and CNetCacheAPIParameters::m_TryAllServers.
Referenced by SNetICacheClientImpl::Init(), and CNetCacheAPIParameters::LoadNamedParameters().
void CNetCacheAPIParameters::SetTTL | ( | unsigned | blob_ttl | ) |
Definition at line 80 of file netcache_params.cpp.
References CNetCacheAPIParameters::eDP_TTL, CNetCacheAPIParameters::m_DefinedParameters, and CNetCacheAPIParameters::m_TTL.
Referenced by CNetCacheAPIParameters::LoadNamedParameters(), and CNetICacheClient::Store().
|
inline |
Definition at line 154 of file netcache_params.hpp.
References CNetCacheAPIParameters::eDP_UseCompoundID, CNetCacheAPIParameters::m_DefinedParameters, and CNetCacheAPIParameters::m_UseCompoundID.
Referenced by SNetCacheAPIImpl::Init(), and CNetCacheAPIParameters::LoadNamedParameters().
|
virtual |
Set version retention policy.
policy | Version retention mode |
Implements ICache.
Definition at line 379 of file neticache_client.cpp.
References NCBI_THROW.
void CNetCacheAdmin::ShutdownServer | ( | EShutdownOption | shutdown_option = eNormalShutdown | ) |
Shutdown the server daemon.
Definition at line 55 of file netcache_api_admin.cpp.
References cmd, CNetCacheAdmin::eDrain, CDiagContext::GetRequestContext(), and CNetCacheAdmin::m_Impl.
Referenced by CGridCommandLineInterfaceApp::Cmd_Shutdown().
|
private |
Definition at line 185 of file netcache_rw.cpp.
References buf, CONNSERV_THROW_FMT, eIO_Success, eIO_Timeout, CSocket::GetOSHandle(), IO_StatusStr(), CNetCacheReader::m_BlobBytesToRead, CNetCacheReader::m_BlobID, CNetCacheReader::m_BlobSize, CNetCacheReader::m_Connection, SNetServerConnectionImpl::m_Server, SNetServerConnectionImpl::m_Socket, CSocket::Read(), and val.
Referenced by CNetCacheReader::CNetCacheReader(), and CNetCacheReader::Read().
|
virtual |
Add or replace BLOB.
key | BLOB identification key |
key | BLOB identification sub-key |
version | BLOB version |
data | pointer on data buffer |
size | data buffer size in bytes (chars) |
time_to_live | Individual timeout. Cannot exceed max timeout. |
Implements ICache.
Definition at line 391 of file neticache_client.cpp.
References data, CNetCacheAPI::eCaching_Disable, eICache_NoWait, eNetCache_Wait, ICache::fBestReliability, ncbi::grid::netcache::search::fields::key, CNetICacheClient::m_Impl, s_KeyVersionSubkeyToBlobID(), CNetCacheAPIParameters::SetCachingMode(), CNetCacheAPIParameters::SetTTL(), ncbi::grid::netcache::search::fields::size, ncbi::grid::netcache::search::fields::subkey, version, and CNetCacheWriter::WriteBufferAndClose().
Referenced by CDataCrawlerCache::x_WriteState().
|
static |
Definition at line 214 of file netcache_params.cpp.
References NStr::StringToBool().
Referenced by CNetCacheAPIParameters::SetMirroringMode(), CNetCacheAPIParameters::SetServerCheck(), and CNetCacheAPIParameters::SetServerCheckHint().
|
inline |
If the blob key has been parsed successfully, this method returns a trimmed "base" version of the key with "0MetA0" extensions removed.
Definition at line 168 of file netcache_key.hpp.
References CNetCacheKey::m_PrimaryKey.
Referenced by CNCBlobKey::Assign(), and CNetCacheAPI::ProlongBlobLifetime().
|
private |
Definition at line 474 of file netcache_rw.cpp.
References _TROUBLE, CNetCacheWriter::AbortConnection(), buf, CONNSERV_THROW_FMT, eIO_InvalidArg, eIO_NotSupported, eIO_Timeout, eIO_Unknown, CNetCacheWriter::m_Connection, SNetServerConnectionImpl::m_Server, and CNetCacheWriter::TransmitImpl().
Referenced by CNetCacheWriter::UploadCacheFile(), and CNetCacheWriter::Write().
|
private |
Definition at line 391 of file netcache_rw.cpp.
References buf, CONNSERV_THROW_FMT, eIO_Close, eIO_Interrupt, eIO_Read, eIO_ReadWrite, eIO_Success, eIO_Write, eRW_Success, g_CTimeoutToSTimeout(), g_RW_ResultToString(), g_STimeoutToCTimeout(), CNetServerPool::GetCommunicationTimeout(), CDeadline::GetRemainingTime(), in(), CNetCacheWriter::m_Connection, CNetCacheWriter::m_NetCacheAPI, SNetServerConnectionImpl::m_Server, SNetServiceImpl::m_ServerPool, SNetCacheAPIImpl::m_Service, SNetServerConnectionImpl::m_Socket, CNetCacheWriter::m_TransmissionWriter, out(), NStr::ParseEscapes(), poll, CSocketAPI::Poll(), and CSocket::ReadLine().
Referenced by CNetCacheWriter::Transmit().
void CNetICacheClient::UnRegisterSession | ( | unsigned | pid | ) |
Send session unregistration command.
Definition at line 337 of file neticache_client.cpp.
References NCBI_THROW.
|
private |
Definition at line 528 of file netcache_rw.cpp.
References buf, CACHE_XFER_BUFFER_SIZE, CNetCacheWriter::m_CacheFile, CFileIO::Read(), CFileIO::SetFilePos(), and CNetCacheWriter::Transmit().
Referenced by CNetCacheWriter::Close().
|
virtual |
Write up to "count" bytes from the buffer pointed to by the "buf" argument onto the output device.
Always store the number of bytes actually written, or 0 if "count" has been passed as 0 ("buf" must be ignored in this case), via the "bytes_written" pointer, if provided non-NULL. Note that the method can return non-eRW_Success in case of an I/O error along with indicating (some) data delivered to the output device (and reflected in "*bytes_written").
Implements IWriter.
Definition at line 264 of file netcache_rw.cpp.
References buf, eRW_Error, eRW_Success, CNetCacheWriter::IsConnectionOpen(), CNetCacheWriter::m_CacheFile, CNetCacheWriter::m_CachingEnabled, NULL, CNetCacheWriter::Transmit(), and CFileIO::Write().
Referenced by CNetCacheWriter::WriteBufferAndClose().
void CNetCacheWriter::WriteBufferAndClose | ( | const char * | buf_ptr, |
size_t | buf_size | ||
) |
Definition at line 353 of file netcache_rw.cpp.
References CNetCacheWriter::Close(), eRW_Success, NCBI_THROW, and CNetCacheWriter::Write().
Referenced by CNetCacheAPI::PutData(), and CNetICacheClient::Store().
|
virtual |
Definition at line 1052 of file netcache_api.cpp.
References NCBI_CATCH_ALL, and CBlobStorage_NetCache::Reset().
|
virtual |
Definition at line 122 of file netcache_rw.cpp.
References CNetCacheReader::Close(), and NCBI_CATCH_ALL_X.
|
virtual |
Definition at line 257 of file netcache_rw.cpp.
References CNetCacheWriter::Close(), and NCBI_CATCH_ALL_X.
Definition at line 203 of file netcache_api.cpp.
Referenced by CBlobStorageNetCacheCF::CreateInstance(), and SNetCacheAPIImpl::SNetCacheAPIImpl().
Definition at line 65 of file neticache_client.cpp.
Referenced by SNetICacheClientImpl::SNetICacheClientImpl().
|
private |
Definition at line 202 of file netcache_params.hpp.
Referenced by CNetCacheAPIParameters::SetActualBlobAgePtr().
|
private |
Definition at line 101 of file netcache_rw.hpp.
Referenced by CNetCacheReader::Close(), CNetCacheReader::CNetCacheReader(), CNetCacheReader::Eof(), CNetCacheReader::PendingCount(), CNetCacheReader::Read(), and CNetCacheReader::SocketRead().
|
private |
Definition at line 97 of file netcache_rw.hpp.
Referenced by CNetCacheReader::GetBlobID(), CNetCacheReader::Read(), and CNetCacheReader::SocketRead().
|
private |
Definition at line 161 of file netcache_rw.hpp.
Referenced by CNetCacheWriter::CNetCacheWriter(), CNetCacheWriter::GetBlobID(), and CNetCacheWriter::SetBlobID().
|
private |
Definition at line 100 of file netcache_rw.hpp.
Referenced by CNetCacheReader::CNetCacheReader(), CNetCacheReader::GetBlobSize(), CNetCacheReader::Read(), and CNetCacheReader::SocketRead().
|
private |
Definition at line 103 of file netcache_rw.hpp.
Referenced by CNetCacheReader::Close(), CNetCacheReader::CNetCacheReader(), and CNetCacheReader::Read().
|
private |
Definition at line 165 of file netcache_rw.hpp.
Referenced by CNetCacheWriter::Close(), CNetCacheWriter::CNetCacheWriter(), CNetCacheWriter::UploadCacheFile(), and CNetCacheWriter::Write().
|
private |
Definition at line 205 of file netcache_params.hpp.
Referenced by CNetCacheAPIParameters::SetCacheName().
|
private |
Definition at line 104 of file netcache_rw.hpp.
Referenced by CNetCacheReader::Close(), CNetCacheReader::CNetCacheReader(), CNetCacheReader::PendingCount(), and CNetCacheReader::Read().
|
private |
Definition at line 166 of file netcache_rw.hpp.
Referenced by CNetCacheWriter::Close(), CNetCacheWriter::CNetCacheWriter(), CNetCacheWriter::Flush(), and CNetCacheWriter::Write().
|
private |
Definition at line 194 of file netcache_params.hpp.
Referenced by CNetCacheAPIParameters::SetCachingMode().
|
private |
Definition at line 99 of file netcache_rw.hpp.
Referenced by CNetCacheReader::Close(), CNetCacheReader::CNetCacheReader(), CNetCacheReader::PendingCount(), CNetCacheReader::Read(), and CNetCacheReader::SocketRead().
|
private |
Definition at line 155 of file netcache_rw.hpp.
Referenced by CNetCacheWriter::AbortConnection(), CNetCacheWriter::Close(), CNetCacheWriter::EstablishConnection(), CNetCacheWriter::Transmit(), and CNetCacheWriter::TransmitImpl().
|
private |
Definition at line 155 of file netcache_key.hpp.
Referenced by CNetCacheKey::GetCreationTime(), and CNetCacheKey::ParseBlobKey().
|
private |
Definition at line 191 of file netcache_params.hpp.
|
private |
Definition at line 190 of file netcache_params.hpp.
Referenced by CNetCacheAPIParameters::SetActualBlobAgePtr(), CNetCacheAPIParameters::SetCacheName(), CNetCacheAPIParameters::SetCachingMode(), CNetCacheAPIParameters::SetMaxBlobAge(), CNetCacheAPIParameters::SetMirroringMode(), CNetCacheAPIParameters::SetPassword(), CNetCacheAPIParameters::SetServerCheck(), CNetCacheAPIParameters::SetServerCheckHint(), CNetCacheAPIParameters::SetServerLastUsedPtr(), CNetCacheAPIParameters::SetServerToUse(), CNetCacheAPIParameters::SetTryAllServers(), CNetCacheAPIParameters::SetTTL(), and CNetCacheAPIParameters::SetUseCompoundID().
|
private |
Definition at line 160 of file netcache_key.hpp.
Referenced by CNetCacheKey::ClearFlag(), CNetCacheKey::GetFlag(), CNetCacheKey::GetFlags(), CNetCacheKey::ParseBlobKey(), and CNetCacheKey::SetFlag().
|
private |
server name
Definition at line 151 of file netcache_key.hpp.
Referenced by CNetCacheKey::GetHost(), and CNetCacheKey::ParseBlobKey().
|
private |
CRC32 checksum of the host:port combination.
Definition at line 153 of file netcache_key.hpp.
Referenced by CNetCacheKey::GetHostPortCRC32(), and CNetCacheKey::ParseBlobKey().
|
private |
BLOB id.
Definition at line 150 of file netcache_key.hpp.
Referenced by CNetCacheKey::GetId(), and CNetCacheKey::ParseBlobKey().
|
protected |
Definition at line 56 of file netcache_admin.hpp.
Referenced by CNetCacheAdmin::GetServerVersion(), CNetCacheAdmin::PrintConfig(), CNetCacheAdmin::PrintHealth(), CNetCacheAdmin::PrintStat(), CNetCacheAdmin::Purge(), CNetCacheAdmin::ReloadServerConfig(), and CNetCacheAdmin::ShutdownServer().
|
protected |
Definition at line 144 of file netcache_api.hpp.
Referenced by CNetCacheAPI::GetAdmin(), CNetCacheAPI::GetBlobInfo(), CNetCacheAPI::GetBlobSize(), CNetCacheAPI::GetCompoundIDPool(), CNetCacheAPI::GetData(), CNetCacheAPI::GetPartReader(), CNetCacheAPI::GetReader(), CNetCacheAPIExt::GetServer(), CNetCacheAPI::GetService(), CNetCacheAPI::HasBlob(), CNetCacheAPI::ProlongBlobLifetime(), CNetCacheAPI::PutData(), CNetCacheAPI::ReadPart(), CNetCacheAPI::Remove(), CNetCacheAPI::SetCompoundIDPool(), and CNetCacheAPI::SetDefaultParameters().
|
protected |
Definition at line 72 of file neticache_client.hpp.
Referenced by CNetICacheClient::GetBlobAccess(), CNetICacheClient::GetBlobInfo(), CNetICacheClient::GetBlobSize(), CNetICacheClient::GetCacheName(), CNetICacheClient::GetCommunicationTimeout(), CNetICacheClient::GetFlags(), CNetICacheClientExt::GetNetCacheAPI(), CNetICacheClient::GetNetCacheWriter(), CNetICacheClient::GetReadStream(), CNetICacheClientExt::GetReadStream(), CNetICacheClient::GetReadStreamPart(), CNetICacheClientExt::GetServer(), CNetICacheClient::GetService(), CNetICacheClient::HasBlob(), CNetICacheClientExt::ProlongBlobLifetime(), CNetICacheClient::Purge(), CNetICacheClient::ReadPart(), CNetICacheClient::RemoveBlob(), CNetICacheClient::Search(), CNetICacheClient::SetBlobVersionAsCurrent(), CNetICacheClient::SetCommunicationTimeout(), CNetICacheClient::SetFlags(), and CNetICacheClient::Store().
|
private |
Definition at line 674 of file netcache_api.hpp.
Referenced by CBlobStorage_NetCache::GetIStream(), and CBlobStorage_NetCache::Reset().
|
private |
Definition at line 148 of file netcache_key.hpp.
Referenced by CNetCacheKey::Assign(), CNetCacheKey::GetKey(), CNetCacheKey::HasExtensions(), and CNetCacheKey::ParseBlobKey().
|
private |
Definition at line 162 of file netcache_rw.hpp.
Referenced by CNetCacheWriter::GetKey().
|
private |
Definition at line 201 of file netcache_params.hpp.
Referenced by CNetCacheAPIParameters::SetMaxBlobAge().
|
private |
Definition at line 195 of file netcache_params.hpp.
Referenced by CNetCacheAPIParameters::SetMirroringMode().
|
private |
Definition at line 672 of file netcache_api.hpp.
Referenced by CBlobStorage_NetCache::CreateEmptyBlob(), CBlobStorage_NetCache::CreateOStream(), CBlobStorage_NetCache::DeleteBlob(), CBlobStorage_NetCache::GetBlobAsString(), CBlobStorage_NetCache::GetIStream(), CBlobStorage_NetCache::GetNetCacheAPI(), and CBlobStorage_NetCache::IsKeyValid().
|
private |
Definition at line 160 of file netcache_rw.hpp.
Referenced by CNetCacheWriter::EstablishConnection(), and CNetCacheWriter::TransmitImpl().
|
private |
Definition at line 675 of file netcache_api.hpp.
Referenced by CBlobStorage_NetCache::CreateOStream(), and CBlobStorage_NetCache::Reset().
|
private |
Definition at line 163 of file netcache_rw.hpp.
Referenced by CNetCacheWriter::EstablishConnection().
|
private |
Definition at line 198 of file netcache_params.hpp.
Referenced by CNetCacheAPIParameters::SetPassword().
|
private |
TCP/IP port number.
Definition at line 152 of file netcache_key.hpp.
Referenced by CNetCacheKey::GetPort(), and CNetCacheKey::ParseBlobKey().
|
private |
Definition at line 149 of file netcache_key.hpp.
Referenced by CNetCacheKey::HasExtensions(), CNetCacheKey::ParseBlobKey(), and CNetCacheKey::StripKeyExtensions().
|
private |
Definition at line 156 of file netcache_key.hpp.
Referenced by CNetCacheKey::GetRandomPart(), and CNetCacheKey::ParseBlobKey().
|
private |
Definition at line 158 of file netcache_rw.hpp.
Referenced by CNetCacheWriter::Close(), and CNetCacheWriter::GetResponseType().
|
private |
Definition at line 196 of file netcache_params.hpp.
Referenced by CNetCacheAPIParameters::SetServerCheck().
|
private |
Definition at line 197 of file netcache_params.hpp.
Referenced by CNetCacheAPIParameters::SetServerCheckHint().
|
private |
Definition at line 200 of file netcache_params.hpp.
Referenced by CNetCacheAPIParameters::SetServerLastUsedPtr().
|
private |
Definition at line 199 of file netcache_params.hpp.
Referenced by CNetCacheAPIParameters::SetServerToUse().
|
private |
Definition at line 159 of file netcache_key.hpp.
Referenced by CNetCacheKey::GetServiceName(), and CNetCacheKey::ParseBlobKey().
|
private |
Definition at line 156 of file netcache_rw.hpp.
Referenced by CNetCacheWriter::EstablishConnection(), and CNetCacheWriter::ResetWriters().
|
private |
Definition at line 157 of file netcache_rw.hpp.
Referenced by CNetCacheWriter::AbortConnection(), CNetCacheWriter::Close(), CNetCacheWriter::EstablishConnection(), CNetCacheWriter::Flush(), CNetCacheWriter::IsConnectionOpen(), CNetCacheWriter::ResetWriters(), and CNetCacheWriter::TransmitImpl().
|
private |
Definition at line 204 of file netcache_params.hpp.
Referenced by CNetCacheAPIParameters::SetTryAllServers().
|
private |
Definition at line 193 of file netcache_params.hpp.
Referenced by CNetCacheAPIParameters::SetTTL().
|
private |
Definition at line 203 of file netcache_params.hpp.
Referenced by CNetCacheAPIParameters::SetUseCompoundID().
|
private |
Key version.
Definition at line 154 of file netcache_key.hpp.
Referenced by CNetCacheKey::GetVersion(), and CNetCacheKey::ParseBlobKey().