NCBI C++ ToolKit
Namespaces | Macros | Functions | Variables
state.cpp File Reference
#include <ncbi_pch.hpp>
#include <connect/services/impl/netstorage_impl.hpp>
#include "state.hpp"
#include <limits>
#include <sstream>
+ Include dependency graph for state.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Namespaces

 NDirectNetStorageImpl
 

Macros

#define NC_CHECK_VERSION(object_loc)
 
#define NC_GET_ARGS(object_loc)
 
#define NC_EXISTS_IMPL(object_loc)
 
#define FT_EXISTS_IMPL(object_loc)
 

Functions

CNetICacheClient NDirectNetStorageImpl::s_GetICClient (const SCombinedNetStorageConfig &c)
 
string NDirectNetStorageImpl::s_GetSection (const IRegistry &registry, const string &service, const string &name)
 
SFileTrackConfig NDirectNetStorageImpl::s_GetFTConfig (const IRegistry &registry, const string &service)
 
CNetICacheClient NDirectNetStorageImpl::s_GetICClient (const IRegistry &registry, const string &service)
 
string NDirectNetStorageImpl::s_GetAppDomain (const string &app_domain, CNetICacheClient &nc_client)
 
size_t NDirectNetStorageImpl::s_GetRelocateChunk (const IRegistry &registry, const string &service, size_t default_value)
 

Variables

const size_t NDirectNetStorageImpl::kRelocateChunk = 1024 * 1024
 

Macro Definition Documentation

◆ FT_EXISTS_IMPL

#define FT_EXISTS_IMPL (   object_loc)
Value:
if (!m_Context->filetrack_api.GetFileInfo(object_loc)) { \
/* Have to throw to let other locations try */ \
NCBI_THROW_FMT(CNetStorageException, eNotExists, \
"NetStorageObject \"" << object_loc.GetLocator() << \
"\" does not exist in FileTrack."); \
}
Exception class for use by CNetStorage, CNetStorageByKey, and CNetStorageObject.
Definition: netstorage.hpp:67

Definition at line 597 of file state.cpp.

◆ NC_CHECK_VERSION

#define NC_CHECK_VERSION (   object_loc)
Value:
if (object_loc.GetVersion().IsNull()) { \
NCBI_THROW_FMT(CNetStorageException, eInvalidArg, \
"Null version is not supported"); \
}

Definition at line 367 of file state.cpp.

◆ NC_EXISTS_IMPL

#define NC_EXISTS_IMPL (   object_loc)
Value:
if (!m_Client.HasBlob(object_loc.GetShortUniqueKey(), \
object_loc.GetSubKey(), nc_cache_name = object_loc.GetAppDomain())) { \
/* Have to throw to let other locations try */ \
NCBI_THROW_FMT(CNetStorageException, eNotExists, \
"NetStorageObject \"" << object_loc.GetLocator() << \
"\" does not exist in NetCache."); \
}
#define nc_cache_name
In ICache mode, override the name of the cache specified in the CNetICacheClient constructor.

Definition at line 443 of file state.cpp.

◆ NC_GET_ARGS

#define NC_GET_ARGS (   object_loc)
Value:
object_loc.GetShortUniqueKey(), object_loc.GetVersion(), object_loc.GetSubKey(), \
nc_cache_name = object_loc.GetAppDomain()

Definition at line 373 of file state.cpp.

Modified on Wed Apr 17 13:09:12 2024 by modify_doxy.py rev. 669887