1 #ifndef CONNECT_SERVICES_IMPL__NETSTORAGE_INT__HPP
2 #define CONNECT_SERVICES_IMPL__NETSTORAGE_INT__HPP
44 template <TNetStorageFlags MASK>
69 eFileTrack_ProdSite = 0,
72 eNumberOfFileTrackSites
77 const string& app_domain,
79 EFileTrackSite ft_site);
82 const string& app_domain,
83 const string& unique_key,
84 EFileTrackSite ft_site);
86 const string& object_loc);
88 void SetServiceName(
const string& service_name);
99 return (m_LocatorFlags & fLF_NoMetaData) != 0;
104 bool HasUserKey()
const {
return (m_LocatorFlags & fLF_HasUserKey) != 0;}
105 bool HasSubKey()
const {
return m_LocatorFlags & fLF_HasSubKey; }
117 void SetLocation(
const string& nc_service_name);
121 EFileTrackSite GetFileTrackSite()
const;
137 static EFileTrackSite ParseFileTrackSite(
const string& ft_site_name);
140 static string Create(
const string& service_name,
const string& cache_name,
145 fLF_NetStorageService = (1 << 0),
146 fLF_NoMetaData = (1 << 1),
147 fLF_HasObjectID = (1 << 2),
148 fLF_HasUserKey = (1 << 3),
149 fLF_Movable = (1 << 4),
150 fLF_Cacheable = (1 << 5),
151 fLF_DevEnv = (1 << 6),
152 fLF_QAEnv = (1 << 7),
153 fLF_HasSubKey = (1 << 8),
154 fLF_HasVersion = (1 << 9),
161 fLF_NetStorageService |
170 void Parse(
CCompoundID cid,
bool service_name_only);
171 string MakeShortUniqueKey()
const;
172 string MakeUniqueKey()
const {
return m_AppDomain +
'-' + m_ShortUniqueKey; }
178 static TLocatorFlags x_StorageFlagsToLocatorFlags(
180 EFileTrackSite ft_site = eFileTrack_ProdSite);
259 CJsonNode MkNetStorageRequest(
const string& request_type);
Pool of recycled CCompoundID objects.
Base64-encoded ID string that contains extractable typed fields.
NCBI_NET_COMPONENT(NetStorageAdmin)
TSelf & operator&=(TSelf flag)
TSelf & operator^=(TSelf flag)
TSelf & operator|=(TSelf flag)
CNetStorageFlagsSubset(TNetStorageFlags flags)
CNetStorageFlagsSubset TSelf
string GetShortUniqueKey() const
CTime GetCreationTime() const
string GetAppDomain() const
string GetNCServiceName() const
const TVersion & GetVersion() const
void SetLocatorFlags(TLocatorFlags flags)
string GetLocator() const
const string & GetSubKey() const
CCompoundIDPool m_CompoundIDPool
ENetStorageObjectLocation GetLocation() const
bool HasServiceName() const
TLocatorFlags m_LocatorFlags
bool IsMetaDataDisabled() const
string MakeUniqueKey() const
void ClearLocatorFlags(TLocatorFlags flags)
string GetServiceName() const
string GetUniqueKey() const
Basic network-based data object I/O.
@ eNetStorageAttributeValueNotFound
@ eInvalidIncomingMessage
@ eNetStorageAttributeNotFound
@ eNetStorageObjectExpired
@ eInvalidMetaInfoRequest
@ eNetStorageObjectNotFound
@ eNetStorageClientNotFound
Declarations of CCompoundIDPool, CCompoundID, and CCompoundIDField.
CNetStorageFlagsSubset< fNST_AnyAttr > TNetStorageAttrFlags
CNetStorageFlagsSubset< fNST_AnyLoc > TNetStorageLocFlags
static CS_CONNECTION * conn
unsigned TNetStorageFlags
Bitwise OR of ENetStorageFlags.
ENetStorageObjectLocation
Enumeration that indicates the current location of the object.
int64_t Int8
8-byte (64-bit) signed integer
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_XCONNECT_EXPORT
const string version
version string
const struct ncbi::grid::netcache::search::fields::KEY key
const struct ncbi::grid::netcache::search::fields::SUBKEY subkey
Miscellaneous common-use basic types and functionality.
@ eVoid
To create a void (uninitialized) instance of a component.