A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/netstorage__direct__nc_8cpp_source.html below:

NCBI C++ ToolKit: src/connect/services/netstorage_direct_nc.cpp Source File

44 #define NCBI_USE_ERRCODE_X NetStorage_RPC 70  "I/O error while reading NetCache BLOB "

<<

71  reader

->GetBlobID() <<

": "

<<

86  return

reader->PendingCount(

count

);

110  size_t

* bytes_written)

113  return m_OState

.Write(buf_pos, buf_size, bytes_written);

117  size_t

* bytes_written)

120  return

writer->Write(buf_pos, buf_size, bytes_written);

133  return

writer->Flush();

148  ": attribute retrieval is not implemented for NetCache blobs"

);

154  ": attribute retrieval is not implemented for NetCache blobs"

);

161  ": attribute setting for NetCache blobs is not implemented"

);

174  while

(

output

.ReadLine(line))

205  ": infinite ttl for NetCache blobs is not implemented"

);

217  ": not a FileTrack object"

);

223  ": Relocate for NetCache blobs is not implemented"

);

Int8 AsInteger() const

Provided that this is a numeric node (that is, either an integer or a floating point node),...

static CJsonNode GuessType(const CTempString &value)

Guess the type of a JSON scalar from the string representation of its value and initialize a new node...

void SetByKey(const string &key, CJsonNode::TInstance value)

For a JSON object node, insert a new element or update an existing element.

bool IsInteger() const

Return true for an integer node. Return false otherwise.

static CJsonNode NewObjectNode()

Create a new JSON object node.

CJsonNode GetByKeyOrNull(const string &key) const

For a JSON object node, return the value associated with the specified key.

Exception class for use by CNetStorage, CNetStorageByKey, and CNetStorageObject.

Detailed information about a CNetStorage object.

CTimeout – Timeout interval.

static SQLCHAR output[256]

TErrCode GetErrCode(void) const

Get error code.

#define NCBI_THROW_FMT(exception_class, err_code, message)

The same as NCBI_THROW but with message processed as output to ostream.

size_t GetBlobSize(const string &blob_id, const CNamedParameterList *optional=NULL)

Returns the size of the BLOB identified by the "key" parameter.

void Remove(const string &blob_id, const CNamedParameterList *optional=NULL)

Remove BLOB by key.

CNetServerMultilineCmdOutput GetBlobInfo(const string &blob_id, const CNamedParameterList *optional=NULL)

Return a CNetServerMultilineCmdOutput object for reading meta information about the specified blob.

string PutData(const void *buf, size_t size, const CNamedParameterList *optional=NULL)

Put BLOB to server.

bool HasBlob(const string &blob_id, const CNamedParameterList *optional=NULL)

Check if the BLOB identified by the key "key" exists.

void ProlongBlobLifetime(const string &blob_key, unsigned ttl, const CNamedParameterList *optional=NULL)

unsigned TNetStorageFlags

Bitwise OR of ENetStorageFlags.

function< void(CJsonNode)> TNetStorageProgressCb

Progress callback.

ENetStorageRemoveResult

Result returned by Remove() methods.

@ eNotExists

Illegal op applied to non-existent object.

@ eNSTRR_Removed

Object has been removed successfully.

@ eNSTRR_NotFound

Removing failed due to object not found.

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.

ERW_Result

Result codes for I/O operations.

const char * g_RW_ResultToString(ERW_Result res)

@ eRW_Eof

End of data, should be considered permanent.

@ eRW_Error

Unrecoverable error, no retry possible.

@ eRW_Success

Everything is okay, I/O completed.

static bool SplitInTwo(const CTempString str, const CTempString delim, string &str1, string &str2, TSplitFlags flags=0)

Split a string into two pieces using the specified delimiters.

@ fSplit_ByPattern

Require full delimiter strings.

double GetAsDouble(void) const

Get as number of seconds (fractional value).

bool IsFinite() const

Check if timeout holds a numeric value.

Definition of all error codes used in connect services library (xconnserv.lib and others).

const struct ncbi::grid::netcache::search::fields::KEY key

#define NETSTORAGE_CONVERT_NETCACHEEXCEPTION(message)

CNetStorageObjectInfo g_CreateNetStorageObjectInfo(const string &object_loc, ENetStorageObjectLocation location, const CNetStorageObjectLoc *object_loc_struct, Uint8 file_size, CJsonNode::TInstance storage_specific_info)

Defines CRequestContext class for NCBI C++ diagnostic API.

void EnterState(INetStorageObjectState *state)

CNetCacheReader * GetPartReader(const string &blob_id, size_t offset, size_t part_size, size_t *blob_size, const CNamedParameterList *optional)

ERW_Result Read(void *buf, size_t count, size_t *read) override

Read as many as "count" bytes into a buffer pointed to by the "buf" argument.

ERW_Result PendingCount(size_t *count) override

Via parameter "count" (which is guaranteed to be supplied non-NULL) return the number of bytes that a...

unique_ptr< CNetCacheReader > reader

ERW_Result Flush() override

Flush pending data (if any) down to the output device.

ERW_Result Write(const void *buf, size_t count, size_t *written) override

Write up to "count" bytes from the buffer pointed to by the "buf" argument onto the output device.

CNetStorageObjectInfo GetInfo() override

SNetStorageObjectState< SOState > m_OState

list< string > GetAttributeList() const override

ERW_Result Flush() override

Flush pending data (if any) down to the output device.

ERW_Result Read(void *buf, size_t count, size_t *bytes_read) override

Read as many as "count" bytes into a buffer pointed to by the "buf" argument.

ENetStorageRemoveResult Remove() override

string GetAttribute(const string &attr_name) const override

string Relocate(TNetStorageFlags flags, TNetStorageProgressCb cb) override

void SetExpiration(const CTimeout &) override

CNetCacheAPI m_NetCacheAPI

void SetAttribute(const string &attr_name, const string &attr_value) override

SNetStorageObjectState< SIState > m_IState

string FileTrack_Path() override

ERW_Result PendingCount(size_t *count) override

Via parameter "count" (which is guaranteed to be supplied non-NULL) return the number of bytes that a...

ERW_Result Write(const void *buf, size_t count, size_t *bytes_written) override

Write up to "count" bytes from the buffer pointed to by the "buf" argument onto the output device.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4