NCBI C++ ToolKit
|
Search Toolkit Book for CJsonNode
JSON node abstraction. More...
#include <connect/services/json_over_uttp.hpp>
Public Types | |
enum | ENodeType { eObject , eArray , eString , eInteger , eDouble , eBoolean , eNull } |
JSON node type. More... | |
enum | EIterationMode { eNatural , eOrdered , eFlatten } |
Different modes of array and object iteration. More... | |
enum | EReprFlags { fVerbatimIfString = 1 << 0 , fOmitOutermostBrackets = 1 << 1 , fStandardJson = 1 << 2 } |
String representation flags. More... | |
enum class | EParseFlags { fStandardJson = EReprFlags::fStandardJson } |
Parse methods flags. More... | |
typedef SJsonNodeImpl * | TInstance |
typedef int | TReprFlags |
Binary OR of EReprFlags. More... | |
typedef int | TParseFlags |
Binary OR of EParseFlags. More... | |
Public Member Functions | |
CJsonNode (EVoid) | |
CJsonNode (SJsonNodeImpl *impl) | |
CJsonNode & | operator= (SJsonNodeImpl *impl) |
operator SJsonNodeImpl * () | |
operator const SJsonNodeImpl * () const | |
SJsonNodeImpl & | operator-- (int) |
const SJsonNodeImpl & | operator-- (int) const |
SJsonNodeImpl * | operator-> () |
const SJsonNodeImpl * | operator-> () const |
CJsonNode () | |
CJsonNode (const string &value) | |
Create new JSON string node. More... | |
CJsonNode (const char *value) | |
CJsonNode (int value) | |
Create new JSON integer node. More... | |
CJsonNode (Int8 value) | |
CJsonNode (double value) | |
Create new JSON double node. More... | |
CJsonNode (bool value) | |
Create new JSON boolean node. More... | |
CJsonNode (ENodeType type) | |
Create new JSON node (type depends on the argument) More... | |
ENodeType | GetNodeType () const |
Return a ENodeType constant identifying the node type. More... | |
string | GetTypeName () const |
Return a string identifying the node type. More... | |
bool | IsObject () const |
Return true for a JSON object. Return false otherwise. More... | |
bool | IsArray () const |
Return true for a JSON array. Return false otherwise. More... | |
bool | IsString () const |
Return true for a string node. Return false otherwise. More... | |
bool | IsInteger () const |
Return true for an integer node. Return false otherwise. More... | |
bool | IsDouble () const |
Return true for a double node. Return false otherwise. More... | |
bool | IsBoolean () const |
Return true for a boolean node. Return false otherwise. More... | |
bool | IsNull () const |
Return true for a null node. Return false otherwise. More... | |
bool | IsContainer () const |
Return true if the node is either an object or an array. More... | |
bool | IsScalar () const |
Return true if the node is any of the JSON scalar types. More... | |
SJsonIteratorImpl * | Iterate (EIterationMode mode=eNatural) const |
For a container node (that is, either an array or an object), begin iteration over its elements. More... | |
size_t | GetSize () const |
For a container node (that is, either an array or an object), return the number of elements in the container. More... | |
void | AppendString (const string &value) |
For an array node, add a string node at the end of the array. More... | |
void | AppendInteger (Int8 value) |
For an array node, add a integer node at the end of the array. More... | |
void | AppendDouble (double value) |
For an array node, add a floating point node at the end of the array. More... | |
void | AppendBoolean (bool value) |
For an array node, add a boolean node at the end of the array. More... | |
void | AppendNull () |
For an array node, add a null node at the end of the array. More... | |
void | Append (CJsonNode::TInstance value) |
For an array node, add a new element at the end of the array. More... | |
void | InsertAt (size_t index, CJsonNode::TInstance value) |
For an array node, insert a new element at the specified position. More... | |
void | SetAt (size_t index, CJsonNode::TInstance value) |
For an array node, set a new value for an existing element. More... | |
void | DeleteAt (size_t index) |
Delete an element located at the specified index from a JSON array. More... | |
CJsonNode | GetAt (size_t index) const |
Return a JSON array element at the specified index. More... | |
void | SetString (const string &key, const string &value) |
Set a JSON object element to the specified string value. More... | |
void | SetInteger (const string &key, Int8 value) |
Set a JSON object element to the specified integer value. More... | |
void | SetDouble (const string &key, double value) |
Set a JSON object element to the specified floating point value. More... | |
void | SetBoolean (const string &key, bool value) |
Set a JSON object element to the specified boolean value. More... | |
void | SetNull (const string &key) |
Set a JSON object element to the specified null value. More... | |
void | SetByKey (const string &key, CJsonNode::TInstance value) |
For a JSON object node, insert a new element or update an existing element. More... | |
void | DeleteByKey (const string &key) |
Delete an element referred to by the specified key from a JSON object. More... | |
bool | HasKey (const string &key) const |
Check if an object node has an element accessible by the specified key. More... | |
CJsonNode | GetByKey (const string &key) const |
For a JSON object node, return the value associated with the specified key. More... | |
CJsonNode | GetByKeyOrNull (const string &key) const |
For a JSON object node, return the value associated with the specified key. More... | |
string | GetString (const string &key) const |
For a JSON object node, return the string referred to by the specified key. More... | |
Int8 | GetInteger (const string &key) const |
For a JSON object node, return the integer referred to by the specified key. More... | |
double | GetDouble (const string &key) const |
For a JSON object node, return the floating point number referred to by the specified key. More... | |
bool | GetBoolean (const string &key) const |
For a JSON object node, return the boolean referred to by the specified key. More... | |
const string | AsString () const |
Provided that this is a string node, return the string value of this node. More... | |
Int8 | AsInteger () const |
Provided that this is a numeric node (that is, either an integer or a floating point node), return the value of this node as an integer number. More... | |
double | AsDouble () const |
Provided that this is a numeric node (that is, either a floating point or an integer node), return the value of this node as a floating point number. More... | |
bool | AsBoolean () const |
Provided that this is a boolean node, return the boolean value of this node. More... | |
string | Repr (TReprFlags flags=0) const |
Return a string representation of this node. More... | |
Static Public Member Functions | |
static CJsonNode | NewObjectNode () |
Create a new JSON object node. More... | |
static CJsonNode | NewArrayNode () |
Create a new JSON array node. More... | |
static CJsonNode | NewStringNode (const string &value) |
Create a new JSON string node. More... | |
static CJsonNode | NewIntegerNode (Int8 value) |
Create a new JSON integer node. More... | |
static CJsonNode | NewDoubleNode (double value) |
Create a new JSON double node. More... | |
static CJsonNode | NewBooleanNode (bool value) |
Create a new JSON boolean node. More... | |
static CJsonNode | NewNullNode () |
Create a new JSON null node. More... | |
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 with this value. More... | |
static CJsonNode | ParseObject (const string &json, TParseFlags flags=0) |
static CJsonNode | ParseArray (const string &json, TParseFlags flags=0) |
static CJsonNode | ParseJSON (const string &json, TParseFlags flags=0) |
Protected Attributes | |
CNetRef< SJsonNodeImpl > | m_Impl |
JSON node abstraction.
Definition at line 91 of file json_over_uttp.hpp.
typedef SJsonNodeImpl* CJsonNode::TInstance |
Definition at line 93 of file json_over_uttp.hpp.
typedef int CJsonNode::TParseFlags |
Binary OR of EParseFlags.
Definition at line 327 of file json_over_uttp.hpp.
typedef int CJsonNode::TReprFlags |
Binary OR of EReprFlags.
Definition at line 317 of file json_over_uttp.hpp.
Different modes of array and object iteration.
Definition at line 183 of file json_over_uttp.hpp.
enum CJsonNode::ENodeType |
JSON node type.
Enumerator | |
---|---|
eObject | |
eArray | |
eString | |
eInteger | |
eDouble | |
eBoolean | |
eNull |
Definition at line 136 of file json_over_uttp.hpp.
|
strong |
String representation flags.
Enumerator | |
---|---|
fVerbatimIfString | |
fOmitOutermostBrackets | |
fStandardJson |
Definition at line 311 of file json_over_uttp.hpp.
|
inline |
Definition at line 93 of file json_over_uttp.hpp.
|
inline |
Definition at line 93 of file json_over_uttp.hpp.
|
inline |
Definition at line 93 of file json_over_uttp.hpp.
Create new JSON string node.
Definition at line 305 of file json_over_uttp.cpp.
CJsonNode::CJsonNode | ( | const char * | value | ) |
Definition at line 310 of file json_over_uttp.cpp.
CJsonNode::CJsonNode | ( | int | value | ) |
Create new JSON integer node.
Definition at line 315 of file json_over_uttp.cpp.
CJsonNode::CJsonNode | ( | Int8 | value | ) |
Definition at line 320 of file json_over_uttp.cpp.
CJsonNode::CJsonNode | ( | double | value | ) |
Create new JSON double node.
Definition at line 325 of file json_over_uttp.cpp.
CJsonNode::CJsonNode | ( | bool | value | ) |
Create new JSON boolean node.
Definition at line 330 of file json_over_uttp.cpp.
CJsonNode::CJsonNode | ( | ENodeType | type | ) |
Create new JSON node (type depends on the argument)
Definition at line 416 of file json_over_uttp.cpp.
void CJsonNode::Append | ( | CJsonNode::TInstance | value | ) |
For an array node, add a new element at the end of the array.
Definition at line 742 of file json_over_uttp.cpp.
References rapidjson::value.
Referenced by AppendError(), AppendWarning(), CJobInfoToJSON::BeginJobEvent(), CreateErrorResponseMessage(), SQueueParameters::Diff(), NAutomation::CAutomationProc::ExecEcho(), NAutomation::SNetScheduleService::ExecQueueClassInfo(), NAutomation::SNetScheduleService::ExecReconf(), NAutomation::SNetService::ExecServerInfo(), NAutomation::SWorkerNode::ExecVersion(), NAutomation::SWorkerNode::ExecWnInfo(), g_GenericStatToJson(), g_WorkerNodeInfoToJson(), GetReferencesNode(), SSimpleCommandImpl::Help(), SCommandGroupImpl::Help(), CPSGS_Dispatcher::PopulateStatus(), NAutomation::CAutomationProc::ProcessMessage(), NAutomation::CAutomationProc::SendWarning(), CNSTAlerts::Serialize(), CNSTClientRegistry::Serialize(), CNSTServiceRegistry::Serialize(), SerializeHistogram(), CPSGTimingBase::SerializeSeries(), CNetScheduleAccessList::SetHosts(), CJsonOverUTTPReader::x_AddNewNode(), CNetStorageHandler::x_ProcessGetUsersInfo(), CPubseqGatewayApp::x_ReadyzHealthzImplementation(), CPubseqGatewayApp::x_SelfZEndPointCheck(), and CNetScheduleServer::x_SetFromList().
void CJsonNode::AppendBoolean | ( | bool | value | ) |
For an array node, add a boolean node at the end of the array.
Definition at line 732 of file json_over_uttp.cpp.
References rapidjson::value.
Referenced by AddParameterToDiff(), and CNetScheduleServer::SetNSParameters().
void CJsonNode::AppendDouble | ( | double | value | ) |
For an array node, add a floating point node at the end of the array.
Definition at line 727 of file json_over_uttp.cpp.
References rapidjson::value.
Referenced by AddParameterToDiff(), CProcessorRequestTimeSeries::x_SerializeOneSeries(), and CMomentousCounterSeries::x_SerializeOneSeries().
void CJsonNode::AppendInteger | ( | Int8 | value | ) |
For an array node, add a integer node at the end of the array.
Definition at line 722 of file json_over_uttp.cpp.
References rapidjson::value.
Referenced by AddParameterToDiff(), CGridCommandLineInterfaceApp::Automation_PipeServer(), NAutomation::SNetCacheService::ExecGetServers(), NAutomation::SNetScheduleService::ExecGetServers(), NAutomation::SNetStorageService::ExecGetServers(), NAutomation::CAutomationProc::SendWarning(), CNetScheduleServer::SetNSParameters(), CMonotonicCounterSeries::x_SerializeOneSeries(), and CAvgPerformanceSeries::x_SerializeOneSeries().
void CJsonNode::AppendNull | ( | ) |
For an array node, add a null node at the end of the array.
Definition at line 737 of file json_over_uttp.cpp.
For an array node, add a string node at the end of the array.
Definition at line 717 of file json_over_uttp.cpp.
References rapidjson::value.
Referenced by AddParameterToDiff(), AppendAccSubstitutionParameter(), SPSGS_RequestBase::AppendCommonParameters(), AppendFmtParameter(), AppendId2InfoParameter(), AppendSendBlobIfSmallParameter(), AppendTseOptionParameter(), AppendUseCacheParameter(), CGridCommandLineInterfaceApp::Automation_PipeServer(), SQueueParameters::Diff(), NAutomation::SNetStorageObject::ExecAttrList(), NAutomation::SNetCacheBlob::ExecGetKey(), NAutomation::SNetICacheBlob::ExecGetKey(), NAutomation::SNetServiceBase::ExecGetName(), SExecAnyCmdToJson::ExecOn(), NAutomation::CAutomationProc::ExecVersion(), g_GenericStatToJson(), g_LegacyStatToJson(), CNetStorageServer::GetBackendConfDiff(), NAutomation::CAutomationProc::ProcessMessage(), CJobInfoToJSON::ProcessRawLine(), CNSTServiceRegistry::ReadConfiguration(), CJsonOverUTTPReader::ReadMessage(), CNetScheduleServer::ReadServicesConfig(), s_WordsToJsonArray(), NAutomation::CAutomationProc::SendWarning(), SPSGS_BlobBySeqIdRequest::Serialize(), SPSGS_AnnotRequest::Serialize(), CNetScheduleAccessList::SetHosts(), CQueueDataBase::x_ConfigureQueueClasses(), CQueueDataBase::x_ConfigureQueues(), CQueueDataBase::x_DetectChangesInLinkedSection(), CNetStorageServer::x_diffInJson(), CNetStorageHandler::x_ProcessGetClientObjects(), CNetStorageHandler::x_ProcessGetClientsInfo(), CNetStorageHandler::x_ProcessGetUserObjects(), CQueueDataBase::x_ReadLinkedSections(), and CNetScheduleServer::x_SetFromList().
bool CJsonNode::AsBoolean | ( | ) | const |
Provided that this is a boolean node, return the boolean value of this node.
Definition at line 893 of file json_over_uttp.cpp.
Referenced by NAutomation::CArgument::AsBoolean(), GetBoolean(), PrintJSONNode(), s_Repr_Value(), and CJsonOverUTTPWriter::x_SendNode().
double CJsonNode::AsDouble | ( | ) | const |
Provided that this is a numeric node (that is, either a floating point or an integer node), return the value of this node as a floating point number.
Definition at line 881 of file json_over_uttp.cpp.
References SJsonNodeImpl::VerifyType().
Referenced by NAutomation::CArgument::AsDouble(), GetDouble(), PrintJSONNode(), s_Repr_Value(), and CJsonOverUTTPWriter::x_SendNode().
Int8 CJsonNode::AsInteger | ( | ) | const |
Provided that this is a numeric node (that is, either an integer or a floating point node), return the value of this node as an integer number.
Definition at line 869 of file json_over_uttp.cpp.
References SJsonNodeImpl::VerifyType().
Referenced by NAutomation::CArgument::AsInteger(), SNetStorage_NetCacheBlob::GetInfo(), NDirectNetStorageImpl::CNetCache::GetInfo(), NDirectNetStorageImpl::CFileTrack::GetInfo(), GetInteger(), PrintJSONNode(), s_Repr_Value(), CNetStorageHandler::x_ProcessHello(), and CJsonOverUTTPWriter::x_SendNode().
Provided that this is a string node, return the string value of this node.
Definition at line 861 of file json_over_uttp.cpp.
References eString.
Referenced by NAutomation::CArgument::AsString(), GetString(), SLazyInitData::InitData(), PrintJSONNode(), SNetStorageObjectRPC::Relocate(), s_Repr_Value(), and CNetStorageHandler::x_ProcessHello().
void CJsonNode::DeleteAt | ( | size_t | index | ) |
Delete an element located at the specified index from a JSON array.
Throw an exception if the index is out of range.
Definition at line 766 of file json_over_uttp.cpp.
Delete an element referred to by the specified key from a JSON object.
Definition at line 827 of file json_over_uttp.cpp.
References ncbi::grid::netcache::search::fields::key, and NULL.
Referenced by SLazyInitData::Clean(), and NNetStorage::RemoveStdReplyFields().
CJsonNode CJsonNode::GetAt | ( | size_t | index | ) | const |
Return a JSON array element at the specified index.
Throw an exception if the index is out of range.
Definition at line 775 of file json_over_uttp.cpp.
For a JSON object node, return the boolean referred to by the specified key.
Throw an exception if the key does not exist or refers to a non-boolean node.
Definition at line 438 of file json_over_uttp.hpp.
References AsBoolean(), GetByKey(), and ncbi::grid::netcache::search::fields::key.
Referenced by CNetStorageHandler::x_ProcessDelete(), CNetStorageHandler::x_ProcessGetSize(), CNetStorageHandler::x_ProcessRead(), CNetStorageHandler::x_ProcessRelocate(), CNetStorageHandler::x_ProcessSetAttr(), CNetStorageHandler::x_ProcessSetExpTime(), and CNetStorageHandler::x_ProcessWrite().
For a JSON object node, return the value associated with the specified key.
Throw an exception if there is no such key in this object.
Definition at line 412 of file json_over_uttp.hpp.
References GetByKeyOrNull(), ncbi::grid::netcache::search::fields::key, and NCBI_THROW_FMT.
Referenced by AppendError(), AppendWarning(), ExtractICacheSettings(), ExtractStorageFlags(), ExtractUserKey(), CNetStorageServer::GetBackendConfDiff(), GetBoolean(), GetDouble(), GetInteger(), CPSG_BioseqInfo::GetOtherIds(), GetString(), CPSG_BioseqInfo::IncludedInfo(), SLazyInitData::InitData(), CNetStorageHandler::x_ProcessHello(), and CNetStorageHandler::x_ProcessRelocate().
For a JSON object node, return the value associated with the specified key.
Return NULL if there is no such key in this object.
Definition at line 848 of file json_over_uttp.cpp.
References ncbi::grid::netcache::search::fields::key, and NULL.
Referenced by SNetStorageObjectRPC::GetAttributeList(), GetByKey(), CPSG_NamedAnnotInfo::GetId2AnnotInfo(), SNetStorage_NetCacheBlob::GetInfo(), NDirectNetStorageImpl::CNetCache::GetInfo(), NDirectNetStorageImpl::CFileTrack::GetInfo(), SFileTrackAPI::GetPath(), SIssue::SBuilder::GetScope(), SIssue::SBuilder::GetSubCode(), SLazyInitData::GetTime(), NDirectNetStorageImpl::CFileTrack::GetUserInfo(), SLazyInitData::InitData(), SNetStorageObjectRPC::Relocate(), and s_TrapErrors().
For a JSON object node, return the floating point number referred to by the specified key.
Throw an exception if the key does not exist or refers to a non-numeric node.
Definition at line 433 of file json_over_uttp.hpp.
References AsDouble(), GetByKey(), and ncbi::grid::netcache::search::fields::key.
For a JSON object node, return the integer referred to by the specified key.
Throw an exception if the key does not exist or refers to a non-numeric node.
Definition at line 428 of file json_over_uttp.hpp.
References AsInteger(), GetByKey(), and ncbi::grid::netcache::search::fields::key.
Referenced by ExtractCommonFields(), g_GetWorkerNodes(), CPSG_BioseqInfo::GetChainState(), CPSG_BlobInfo::GetClass(), SIssue::SBuilder::GetCode(), CPSG_BlobInfo::GetCompression(), CPSG_BioseqInfo::GetDateChanged(), CPSG_IpgInfo::GetGbState(), CPSG_BioseqInfo::GetGi(), CPSG_BioseqInfo::GetHash(), CPSG_BlobInfo::GetHupReleaseDate(), CPSG_IpgInfo::GetIpg(), CPSG_BioseqInfo::GetLength(), CPSG_BioseqInfo::GetMoleculeType(), CPSG_BlobInfo::GetNChunks(), CPSG_BlobInfo::GetOriginalLoadDate(), CPSG_BlobInfo::GetOwner(), CPSG_BlobInfo::GetSize(), SNetStorageObjectRPC::GetSize(), CPSG_BioseqInfo::GetState(), CPSG_BlobInfo::GetStorageSize(), CPSG_BioseqInfo::GetTaxId(), CPSG_IpgInfo::GetTaxId(), CPSG_BlobInfo::IsDead(), CPSG_BlobInfo::IsSuppressed(), CPSG_BlobInfo::IsWithdrawn(), s_TrapErrors(), CNetStorageHandler::x_ProcessGetClientObjects(), and CNetStorageHandler::x_ProcessGetUserObjects().
CJsonNode::ENodeType CJsonNode::GetNodeType | ( | ) | const |
Return a ENodeType constant identifying the node type.
Definition at line 421 of file json_over_uttp.cpp.
References m_Impl.
Referenced by CJsonOverUTTPWriter::CompleteMessage(), NAutomation::CArgument::Exec(), IsArray(), IsBoolean(), IsContainer(), IsDouble(), IsInteger(), IsNull(), IsObject(), IsScalar(), IsString(), PrintJSONNode(), s_Repr_Value(), SFlattenIterator::x_DepthFirstSearchForScalar(), CNetStorageHandler::x_ProcessHello(), and CJsonOverUTTPWriter::x_SendNode().
size_t CJsonNode::GetSize | ( | void | ) | const |
For a container node (that is, either an array or an object), return the number of elements in the container.
Definition at line 702 of file json_over_uttp.cpp.
References eArray, eObject, and NCBI_THROW.
Referenced by g_WorkerNodeInfoToJson(), CPSG_BioseqInfo::IncludedInfo(), CNetScheduleServer::ReadServicesConfig(), CNetScheduleServer::SetNSParameters(), CQueueDataBase::x_ConfigureQueueClasses(), CQueueDataBase::x_ConfigureQueues(), and CNetScheduleHandler::x_ProcessReloadConfig().
For a JSON object node, return the string referred to by the specified key.
Throw an exception if the key does not exist or refers to a non-string node.
Definition at line 423 of file json_over_uttp.hpp.
References AsString(), GetByKey(), and ncbi::grid::netcache::search::fields::key.
Referenced by ExtractCommonFields(), ExtractICacheSettings(), ExtractUserKey(), SNetStorageObjectRPC::FileTrack_Path(), SFileTrackUpload::FinishUpload(), g_GetWorkerNodes(), SNetStorageObjectRPC::GetAttribute(), CPSG_BlobInfo::GetDivision(), CPSG_BlobInfo::GetId2Info(), SIssue::SBuilder::GetMessage(), CPSG_IpgInfo::GetNucleotide(), CPSG_IpgInfo::GetProtein(), CPSG_BlobInfo::GetUsername(), SLazyInitData::InitData(), CGridCommandLineInterfaceApp::PrintNetStorageServerConfig(), CJobInfoToJSON::ProcessOutput(), s_TrapErrors(), SetSessionAndIPAndPHID(), SNetStorageObjectRPC::Write(), CNetStorageHandler::x_ConvertMetadataArgument(), CNetStorageHandler::x_DetectMetaDBNeedOnGetObjectInfo(), CNetStorageHandler::x_DetectMetaDBNeedUpdate(), CNetStorageHandler::x_GetObject(), CNetStorageHandler::x_ProcessAckAlert(), CNetStorageHandler::x_ProcessDelAttr(), CNetStorageHandler::x_ProcessExists(), CNetStorageHandler::x_ProcessGetAttr(), CNetStorageHandler::x_ProcessGetClientObjects(), CNetStorageHandler::x_ProcessGetUserObjects(), CNetStorageHandler::x_ProcessHello(), CNetStorageHandler::x_ProcessSetAttr(), CNetStorageHandler::x_ProcessSetExpTime(), CNetStorageHandler::x_ProcessShutdown(), and CNetStorageHandler::x_ValidateWriteMetaDBAccess().
string CJsonNode::GetTypeName | ( | ) | const |
Return a string identifying the node type.
Definition at line 426 of file json_over_uttp.cpp.
References m_Impl.
Referenced by NAutomation::CArgument::Exec(), and NAutomation::CArgument::Help().
|
static |
Guess the type of a JSON scalar from the string representation of its value and initialize a new node with this value.
Definition at line 340 of file json_over_uttp.cpp.
References NStr::CompareNocase(), isdigit(), NewBooleanNode(), NewDoubleNode(), NewIntegerNode(), NewNullNode(), NewStringNode(), NStr::ParseQuoted(), NStr::StringToDouble(), NStr::StringToInt8(), and rapidjson::value.
Referenced by SSingleQueueInfoToJson::ExecOn(), SQueueInfoToJson::ExecOn(), g_GenericStatToJson(), g_LegacyStatToJson(), g_WorkerNodeInfoToJson(), SNetStorage_NetCacheBlob::GetInfo(), NDirectNetStorageImpl::CNetCache::GetInfo(), CJobInfoToJSON::ProcessJobEventField(), and CJobInfoToJSON::ProcessJobInfoField().
Check if an object node has an element accessible by the specified key.
Definition at line 840 of file json_over_uttp.cpp.
References ncbi::grid::netcache::search::fields::key, and NULL.
Referenced by AppendError(), AppendWarning(), ExtractICacheSettings(), ExtractStorageFlags(), ExtractUserKey(), g_LegacyStatToJson(), g_WorkerNodeInfoToJson(), CNetStorageServer::GetBackendConfDiff(), CPSG_BioseqInfo::IncludedInfo(), SetSessionAndIPAndPHID(), CNetStorageHandler::x_ConvertMetadataArgument(), CNetStorageHandler::x_DetectMetaDBNeedOnGetObjectInfo(), CNetStorageHandler::x_DetectMetaDBNeedUpdate(), CNetStorageHandler::x_GetObject(), CNetStorageHandler::x_ProcessAckAlert(), CNetStorageHandler::x_ProcessCreate(), CNetStorageHandler::x_ProcessDelAttr(), CNetStorageHandler::x_ProcessDelete(), CNetStorageHandler::x_ProcessExists(), CNetStorageHandler::x_ProcessGetAttr(), CNetStorageHandler::x_ProcessGetAttrList(), CNetStorageHandler::x_ProcessGetClientObjects(), CNetStorageHandler::x_ProcessGetSize(), CNetStorageHandler::x_ProcessGetUserObjects(), CNetStorageHandler::x_ProcessHello(), CNetStorageHandler::x_ProcessLockFTPath(), CNetStorageHandler::x_ProcessRead(), CNetStorageHandler::x_ProcessRelocate(), CNetStorageHandler::x_ProcessSetAttr(), CNetStorageHandler::x_ProcessSetExpTime(), CNetStorageHandler::x_ProcessShutdown(), CNetStorageHandler::x_ProcessWrite(), and CNetStorageHandler::x_ValidateWriteMetaDBAccess().
void CJsonNode::InsertAt | ( | size_t | index, |
CJsonNode::TInstance | value | ||
) |
For an array node, insert a new element at the specified position.
Definition at line 748 of file json_over_uttp.cpp.
References rapidjson::value.
|
inline |
Return true for a JSON array. Return false otherwise.
Definition at line 372 of file json_over_uttp.hpp.
References eArray, and GetNodeType().
Referenced by CJsonOverUTTPReader::ReadMessage(), and CJsonOverUTTPReader::x_AddNewNode().
|
inline |
Return true for a boolean node. Return false otherwise.
Definition at line 392 of file json_over_uttp.hpp.
References eBoolean, and GetNodeType().
|
inline |
Return true if the node is either an object or an array.
Definition at line 402 of file json_over_uttp.hpp.
References eArray, and GetNodeType().
|
inline |
Return true for a double node. Return false otherwise.
Definition at line 387 of file json_over_uttp.hpp.
References eDouble, and GetNodeType().
|
inline |
Return true for an integer node. Return false otherwise.
Definition at line 382 of file json_over_uttp.hpp.
References eInteger, and GetNodeType().
Referenced by SNetStorage_NetCacheBlob::GetInfo(), and NDirectNetStorageImpl::CNetCache::GetInfo().
|
inline |
Return true for a null node. Return false otherwise.
Definition at line 397 of file json_over_uttp.hpp.
References eNull, and GetNodeType().
Referenced by s_ExtractVectorOfStrings(), and CNetStorageHandler::x_ProcessReconfigure().
|
inline |
Return true for a JSON object. Return false otherwise.
Definition at line 367 of file json_over_uttp.hpp.
References eObject, and GetNodeType().
Referenced by CPSG_NamedAnnotStatus::GetId2AnnotStatusList(), CNetStorageHandler::OnRead(), and SFlattenIterator::SFlattenIterator().
|
inline |
Return true if the node is any of the JSON scalar types.
Definition at line 407 of file json_over_uttp.hpp.
References eArray, and GetNodeType().
|
inline |
Return true for a string node. Return false otherwise.
Definition at line 377 of file json_over_uttp.hpp.
References eString, and GetNodeType().
Referenced by CPSG_NamedAnnotInfo::GetId2AnnotInfo().
SJsonIteratorImpl * CJsonNode::Iterate | ( | EIterationMode | mode = eNatural | ) | const |
For a container node (that is, either an array or an object), begin iteration over its elements.
The returned value must be used to initialize a CJsonIterator object.
Definition at line 669 of file json_over_uttp.cpp.
References eArray, eObject, NCBI_THROW, and SFlattenIterator::SFlattenIterator().
Referenced by g_GetWorkerNodes(), CNetStorageServer::GetBackendConfDiff(), CPSG_NamedAnnotStatus::GetId2AnnotStatusList(), CGridCommandLineInterfaceApp::NetStorage_PrintServerReply(), PrintJSONNode(), s_ExtractVectorOfStrings(), s_Repr_Array(), s_Repr_Object(), s_TrapErrors(), SFlattenIterator::SFlattenIterator(), SFlattenIterator::x_DepthFirstSearchForScalar(), CNetStorageHandler::x_PrintMessageRequestStart(), CNetStorageHandler::x_ProcessGetObjectInfo(), CNetScheduleHandler::x_ProcessReloadConfig(), and CJsonOverUTTPWriter::x_SendNode().
|
static |
Create a new JSON array node.
Definition at line 300 of file json_over_uttp.cpp.
Referenced by AddParameterToDiff(), AppendAccSubstitutionParameter(), SPSGS_RequestBase::AppendCommonParameters(), AppendError(), AppendFmtParameter(), AppendId2InfoParameter(), AppendSendBlobIfSmallParameter(), AppendTseOptionParameter(), AppendUseCacheParameter(), AppendWarning(), CGridCommandLineInterfaceApp::Automation_PipeServer(), CJobInfoToJSON::BeginJobEvent(), CreateErrorResponseMessage(), SRemoteApp::SRequest::CreateFilesNode(), SQueueParameters::Diff(), NAutomation::SNetCacheService::ExecGetServers(), NAutomation::SNetScheduleService::ExecGetServers(), NAutomation::SNetStorageService::ExecGetServers(), SExecAnyCmdToJson::ExecOn(), g_GenericStatToJson(), g_LegacyStatToJson(), g_WorkerNodeInfoToJson(), CNetStorageServer::GetBackendConfDiff(), GetReferencesNode(), CPubseqGatewayApp::OnDispatcherStatus(), CJsonParser::ParseArray(), CPSGS_Dispatcher::PopulateStatus(), CJobInfoToJSON::ProcessRawLine(), CNSTServiceRegistry::ReadConfiguration(), CJsonOverUTTPReader::ReadMessage(), CNetScheduleServer::ReadServicesConfig(), s_WordsToJsonArray(), NAutomation::CAutomationProc::SendError(), NAutomation::CAutomationProc::SendWarning(), CNSTAlerts::Serialize(), CNSTClientRegistry::Serialize(), CNSTServiceRegistry::Serialize(), SPSGS_BlobBySeqIdRequest::Serialize(), SPSGS_AnnotRequest::Serialize(), SerializeHistogram(), CPSGTimingBase::SerializeSeries(), CNetScheduleAccessList::SetHosts(), CNetScheduleServer::SetNSParameters(), CQueueDataBase::x_ConfigureQueueClasses(), CQueueDataBase::x_ConfigureQueues(), CQueueDataBase::x_DetectChangesInLinkedSection(), CNetStorageServer::x_diffInJson(), CPubseqGatewayApp::x_IsConnectionAboveSoftLimitForZEndPoints(), CPubseqGatewayApp::x_IsShuttingDownForZEndPoints(), CNetStorageHandler::x_ProcessGetAttrList(), CNetStorageHandler::x_ProcessGetClientObjects(), CNetStorageHandler::x_ProcessGetClientsInfo(), CNetStorageHandler::x_ProcessGetUserObjects(), CNetStorageHandler::x_ProcessGetUsersInfo(), CQueueDataBase::x_ReadLinkedSections(), CPubseqGatewayApp::x_ReadyzHealthzImplementation(), CPubseqGatewayApp::x_SelfZEndPointCheck(), CMonotonicCounterSeries::x_SerializeOneSeries(), CProcessorRequestTimeSeries::x_SerializeOneSeries(), CMomentousCounterSeries::x_SerializeOneSeries(), CAvgPerformanceSeries::x_SerializeOneSeries(), and CNetScheduleServer::x_SetFromList().
Create a new JSON boolean node.
Definition at line 111 of file json_over_uttp.hpp.
References rapidjson::value.
Referenced by GuessType(), CJsonParser::ParseValue(), CJsonOverUTTPReader::ReadMessage(), and CNetStorageServer::SetParameters().
Create a new JSON double node.
Definition at line 108 of file json_over_uttp.hpp.
References rapidjson::value.
Referenced by GuessType(), CJsonParser::ParseValue(), CJsonOverUTTPReader::ReadMessage(), and CNSTDatabase::SetParameters().
Create a new JSON integer node.
Definition at line 105 of file json_over_uttp.hpp.
References rapidjson::value.
Referenced by NAutomation::SServerAddressToJson::ExecOn(), GuessType(), CJsonParser::ParseValue(), CJsonOverUTTPReader::ReadMessage(), and CNetStorageServer::SetParameters().
|
static |
Create a new JSON null node.
Definition at line 335 of file json_over_uttp.cpp.
Referenced by CNetStorageServer::GetBackendConfDiff(), GuessType(), CJsonParser::ParseValue(), CJsonOverUTTPReader::ReadMessage(), CNSTDatabase::SetParameters(), and CNetStorageServer::SetParameters().
|
static |
Create a new JSON object node.
Definition at line 295 of file json_over_uttp.cpp.
Referenced by AppendAccSubstitutionParameter(), AppendAckAlertUsernameParameter(), AppendAlertParameter(), AppendAuthTokenParameter(), AppendBioseqFlagParameter(), AppendBlobIdParameter(), AppendClientIdParameter(), AppendDisableProcessorParameter(), AppendEnableProcessorParameter(), AppendExcludeBlobsParameter(), AppendFmtParameter(), AppendHistogramNamesParameter(), AppendHopsParameter(), AppendId2ChunkParameter(), AppendId2InfoParameter(), AppendIncludeHupParameter(), AppendIpgParameter(), AppendLastModifiedParameter(), AppendLogParameter(), AppendMostAncientTimeParameter(), AppendMostRecentTimeParameter(), AppendNamesParameter(), AppendNucleotideParameter(), AppendProcessorEventsParameter(), AppendProteinParameter(), AppendResendTimeoutParameter(), AppendResetParameter(), AppendReturnDataSizeParameter(), AppendSendBlobIfSmallParameter(), AppendSeqIdParameter(), AppendSeqIdParameterForGetNA(), AppendSeqIdResolveParameter(), AppendSeqIdsParameterForGetNA(), AppendSeqIdTypeParameter(), AppendSNPScaleLimitParameter(), AppendTimeoutParameter(), AppendTimeSeriesParameter(), AppendTraceParameter(), AppendTseOptionParameter(), AppendUseCacheParameter(), AppendUsernameParameter(), CPSGSCounters::AppendValueNode(), AppendZExcludeParameter(), AppendZVerboseParameter(), CJobInfoToJSON::BeginJobEvent(), CJsonNodeUpdater::CJsonNodeUpdater(), CGridCommandLineInterfaceApp::Cmd_WhatIs(), CreateErrorResponseMessage(), SRemoteApp::SRequest::CreateFilesNode(), CreateIssue(), CreateResponseMessage(), SQueueParameters::Diff(), NAutomation::SNetScheduleService::ExecJobCounters(), SSingleQueueInfoToJson::ExecOn(), SQueueInfoToJson::ExecOn(), g_ExecToJson(), g_GenericStatToJson(), g_GetWorkerNodeInfo(), g_LegacyStatToJson(), g_ServerInfoToJson(), g_WhatIs(), g_WorkerNodeInfoToJson(), GetAboutNode(), GetAdminAckAlertsRequestNode(), GetAdminConfigRequestNode(), GetAdminGetAlertsRequestNode(), GetAdminInfoRequestNode(), GetAdminShutdownRequestNode(), GetAdminStatisticsRequestNode(), GetAdminStatusRequestNode(), CNetStorageServer::GetBackendConfDiff(), GetDeepHealthRequestNode(), GetFaviconRequestNode(), GetHealthRequestNode(), GetHealthzRequestNode(), GetIdAccessionVersionHistoryRequestNode(), GetIdGetblobRequestNode(), GetIdGetNaRequestNode(), GetIdGetRequestNode(), GetIdGetTseChunkRequestNode(), GetIdResolveRequestNode(), SNetStorage_NetCacheBlob::GetInfo(), NDirectNetStorageImpl::CNetCache::GetInfo(), GetIntrospectionNode(), GetIpgResolveRequestNode(), GetLivezRequestNone(), GetReadyzCassandraRequestNode(), GetReadyzCDDRequestNode(), GetReadyzLMDBRequestNode(), GetReadyzRequestNode(), GetReadyzSNPRequestNode(), GetReadyzWGSRequestNode(), GetReferencesNode(), GetRequestsNode(), GetTestIoRequestNode(), GetUnknownRequestNode(), SLazyInitData::InitJson(), SNetStorageRPC::MkObjectRequest(), SNetStorageRPC::MkStdRequest(), NSTGetBackendConfiguration(), CPubseqGatewayApp::OnConfig(), CPubseqGatewayApp::OnInfo(), CPubseqGatewayApp::OnLivez(), CPubseqGatewayApp::OnStatus(), CJsonParser::ParseObject(), PopulatePerRequestMomentousDictionary(), CPSGS_Dispatcher::PopulateStatus(), CGridCommandLineInterfaceApp::PrintNetScheduleStats(), CGridCommandLineInterfaceApp::PrintNetScheduleStats_Generic(), CNSTServiceRegistry::ReadConfiguration(), CJsonOverUTTPReader::ReadMessage(), CNetScheduleServer::ReadServicesConfig(), SNetStorageObjectRPC::Relocate(), NDirectNetStorageImpl::CObj::Relocate(), SDirectNetStorageImpl::ReportConfig(), CNetScheduleDApp::Run(), s_GetBlobMeta(), s_SetStorageFlags(), CMomentousCounterSeries::Serialize(), CAvgPerformanceSeries::Serialize(), CMonotonicCounterSeries::Serialize(), CProcessorRequestTimeSeries::Serialize(), CRequestTimeSeries::Serialize(), COperationTiming::Serialize(), SNSTAlertAttributes::Serialize(), CNSTClient::Serialize(), CNSTServiceProperties::Serialize(), CNSTServiceRegistry::Serialize(), SPSGAlertAttributes::Serialize(), CPSGAlerts::Serialize(), CPSGS_Request::Serialize(), SPSGS_ResolveRequest::Serialize(), SPSGS_BlobBySeqIdRequest::Serialize(), SPSGS_BlobBySatSatKeyRequest::Serialize(), SPSGS_AnnotRequest::Serialize(), SPSGS_TSEChunkRequest::Serialize(), SPSGS_AccessionVersionHistoryRequest::Serialize(), SPSGS_IPGResolveRequest::Serialize(), CPSGAlerts::SerializeActive(), CPSGTimingBase::SerializeCombined(), SerializeHistogram(), CBlobRetrieveTiming::SerializeSeries(), CNetScheduleServer::SetNSParameters(), CNSTDatabase::SetParameters(), CNetStorageServer::SetParameters(), CNetStorageObjectLoc::ToJSON(), CQueueDataBase::x_ConfigureQueueClasses(), CQueueDataBase::x_ConfigureQueues(), SRemoteApp::x_CreateArgsNode(), SRemoteApp::x_CreateDataNode(), SDataDetector::x_CreateNode(), CQueueDataBase::x_DetectChangesInLinkedSection(), CNetStorageServer::x_diffInJson(), CPubseqGatewayApp::x_IsConnectionAboveSoftLimitForZEndPoints(), CPubseqGatewayApp::x_IsShuttingDownForZEndPoints(), CQueueDataBase::x_Open(), CNetStorageHandler::x_ProcessGetUsersInfo(), CNetStorageHandler::x_ProcessHealth(), CNetStorageHandler::x_ProcessReconfigure(), CNetScheduleHandler::x_ProcessReloadConfig(), CQueueDataBase::x_ReadLinkedSections(), CPubseqGatewayApp::x_ReadyzHealthzImplementation(), CPubseqGatewayApp::x_SelfZEndPointCheck(), CPubseqGatewayApp::x_SelfZEndPointCheckImpl(), CPSGS_CDDProcessor::x_SendAnnotInfo(), CPSGS_SNPProcessor::x_SendAnnotInfo(), CMonotonicCounterSeries::x_SerializeOneSeries(), CProcessorRequestTimeSeries::x_SerializeOneSeries(), CMomentousCounterSeries::x_SerializeOneSeries(), and CAvgPerformanceSeries::x_SerializeOneSeries().
Create a new JSON string node.
Definition at line 102 of file json_over_uttp.hpp.
References rapidjson::value.
Referenced by NAutomation::SServerAddressToJson::ExecOn(), SExecAnyCmdToJson::ExecOn(), g_GenericStatToJson(), GuessType(), SLazyInitData::InitJson(), CJsonParser::ParseValue(), CJobInfoToJSON::ProcessJobInfoField(), CNSTServiceRegistry::ReadConfiguration(), CJsonOverUTTPReader::ReadMessage(), CNetStorageServer::SetParameters(), and CQueueDataBase::x_ConfigureQueues().
|
inline |
Definition at line 93 of file json_over_uttp.hpp.
|
inline |
Definition at line 93 of file json_over_uttp.hpp.
|
inline |
Definition at line 93 of file json_over_uttp.hpp.
|
inline |
Definition at line 93 of file json_over_uttp.hpp.
|
inline |
Definition at line 93 of file json_over_uttp.hpp.
|
inline |
Definition at line 93 of file json_over_uttp.hpp.
|
inline |
Definition at line 93 of file json_over_uttp.hpp.
|
static |
Definition at line 1254 of file json_over_uttp.cpp.
References flags, and CJsonParser::ParseArray().
Referenced by CGridCommandLineInterfaceApp::Automation_DebugConsole().
|
static |
Definition at line 1259 of file json_over_uttp.cpp.
References flags, and CJsonParser::ParseJSON().
Referenced by CPSG_Reply::SImpl::CreateImpl(), CExecAndParseStructuredOutput::ExecOn(), SFileTrackRequest::GetFileInfo(), and SFileTrackAPI::GetPath().
|
static |
Definition at line 1249 of file json_over_uttp.cpp.
References flags, and CJsonParser::ParseObject().
string CJsonNode::Repr | ( | TReprFlags | flags = 0 | ) | const |
Return a string representation of this node.
Definition at line 972 of file json_over_uttp.cpp.
References eArray, eObject, eString, flags, SJsonStringNodeImpl::m_String, s_Repr_Array(), s_Repr_Object(), and s_Repr_Value().
Referenced by CPubseqGatewayApp::CPubseqGatewayApp(), CNetStorageServer::GetBackendConfDiff(), CPSG_NamedAnnotStatus::GetId2AnnotStatusList(), NDirectNetStorageImpl::CFileTrack::GetUserInfo(), CPubseqGatewayApp::OnConfig(), CPubseqGatewayApp::OnDispatcherStatus(), CPubseqGatewayApp::OnGetAlerts(), CPubseqGatewayApp::OnLivez(), CPubseqGatewayApp::OnStatistics(), CPubseqGatewayApp::OnStatus(), SNetStorageObjectRPC::Relocate(), s_ReadMessage(), s_TrapErrors(), CPubseqGatewayApp::x_IsConnectionAboveSoftLimitForZEndPoints(), CPubseqGatewayApp::x_IsShuttingDownForZEndPoints(), CNetScheduleHandler::x_ProcessReloadConfig(), CPubseqGatewayApp::x_ReadyzHealthzImplementation(), CPubseqGatewayApp::x_SelfZEndPointCheck(), CPSGS_CDDProcessor::x_SendAnnotInfo(), and CPSGS_SNPProcessor::x_SendAnnotInfo().
void CJsonNode::SetAt | ( | size_t | index, |
CJsonNode::TInstance | value | ||
) |
For an array node, set a new value for an existing element.
Throw an exception if the index is out of range.
Definition at line 757 of file json_over_uttp.cpp.
References rapidjson::value.
Set a JSON object element to the specified boolean value.
Definition at line 799 of file json_over_uttp.cpp.
References ncbi::grid::netcache::search::fields::key, and rapidjson::value.
Referenced by AppendAccSubstitutionParameter(), AppendAckAlertUsernameParameter(), AppendAlertParameter(), AppendAuthTokenParameter(), AppendBioseqFlagParameter(), AppendBlobIdParameter(), AppendClientIdParameter(), SPSGS_RequestBase::AppendCommonParameters(), AppendDisableProcessorParameter(), AppendEnableProcessorParameter(), AppendExcludeBlobsParameter(), AppendFmtParameter(), AppendHistogramNamesParameter(), AppendHopsParameter(), AppendId2ChunkParameter(), AppendId2InfoParameter(), AppendIncludeHupParameter(), AppendIpgParameter(), AppendLastModifiedParameter(), AppendLogParameter(), AppendMostAncientTimeParameter(), AppendMostRecentTimeParameter(), AppendNucleotideParameter(), AppendProcessorEventsParameter(), AppendProteinParameter(), AppendResendTimeoutParameter(), AppendResetParameter(), AppendReturnDataSizeParameter(), AppendSendBlobIfSmallParameter(), AppendSeqIdParameter(), AppendSeqIdParameterForGetNA(), AppendSeqIdResolveParameter(), AppendSeqIdsParameterForGetNA(), AppendSeqIdTypeParameter(), AppendSNPScaleLimitParameter(), AppendTimeoutParameter(), AppendTimeSeriesParameter(), AppendTseOptionParameter(), AppendUseCacheParameter(), AppendUsernameParameter(), CPSGSCounters::AppendValueNode(), AppendZExcludeParameter(), AppendZVerboseParameter(), SRemoteApp::Input(), CPSGS_Dispatcher::PopulateStatus(), SNetStorageObjectRPC::Relocate(), s_SetStorageFlags(), SNSTAlertAttributes::Serialize(), SPSGS_IPGResolveRequest::Serialize(), CNetStorageObjectLoc::ToJSON(), CNetStorageHandler::x_ProcessDelete(), CNetStorageHandler::x_ProcessExists(), and CNetStorageHandler::x_ProcessHealth().
void CJsonNode::SetByKey | ( | const string & | key, |
CJsonNode::TInstance | value | ||
) |
For a JSON object node, insert a new element or update an existing element.
Definition at line 809 of file json_over_uttp.cpp.
References ncbi::grid::netcache::search::fields::key, SJsonObjectElement::m_Node, SJsonObjectElement::m_Order, NULL, and rapidjson::value.
Referenced by SDataDetector::AddNode(), AppendAccSubstitutionParameter(), AppendAckAlertUsernameParameter(), AppendAlertParameter(), AppendAuthTokenParameter(), AppendBioseqFlagParameter(), AppendBlobIdParameter(), AppendClientIdParameter(), SPSGS_RequestBase::AppendCommonParameters(), AppendDisableProcessorParameter(), AppendEnableProcessorParameter(), AppendError(), AppendExcludeBlobsParameter(), AppendFmtParameter(), AppendHistogramNamesParameter(), AppendHopsParameter(), AppendId2ChunkParameter(), AppendId2InfoParameter(), AppendIncludeHupParameter(), AppendIpgParameter(), AppendLastModifiedParameter(), AppendLogParameter(), AppendMostAncientTimeParameter(), AppendMostRecentTimeParameter(), AppendNamesParameter(), AppendNucleotideParameter(), AppendProcessorEventsParameter(), AppendProteinParameter(), AppendResendTimeoutParameter(), AppendResetParameter(), AppendReturnDataSizeParameter(), AppendSendBlobIfSmallParameter(), AppendSeqIdParameter(), AppendSeqIdParameterForGetNA(), AppendSeqIdResolveParameter(), AppendSeqIdsParameterForGetNA(), AppendSeqIdTypeParameter(), AppendSNPScaleLimitParameter(), AppendTimeoutParameter(), AppendTimeSeriesParameter(), AppendTraceParameter(), AppendTseOptionParameter(), AppendUseCacheParameter(), AppendUsernameParameter(), CPSGSCounters::AppendValueNode(), AppendWarning(), AppendZExcludeParameter(), AppendZVerboseParameter(), CJobInfoToJSON::BeginJobEvent(), CRelocateCallback::Callback(), CreateErrorResponseMessage(), SQueueParameters::Diff(), SSingleQueueInfoToJson::ExecOn(), SQueueInfoToJson::ExecOn(), g_GenericStatToJson(), g_LegacyStatToJson(), g_WorkerNodeInfoToJson(), GetAdminAckAlertsRequestNode(), GetAdminConfigRequestNode(), GetAdminGetAlertsRequestNode(), GetAdminInfoRequestNode(), GetAdminShutdownRequestNode(), GetAdminStatisticsRequestNode(), GetAdminStatusRequestNode(), CNetStorageServer::GetBackendConfDiff(), GetDeepHealthRequestNode(), GetHealthRequestNode(), GetHealthzRequestNode(), GetIdAccessionVersionHistoryRequestNode(), GetIdGetblobRequestNode(), GetIdGetNaRequestNode(), GetIdGetRequestNode(), GetIdGetTseChunkRequestNode(), GetIdResolveRequestNode(), SNetStorage_NetCacheBlob::GetInfo(), NDirectNetStorageImpl::CNetCache::GetInfo(), GetIntrospectionNode(), GetIpgResolveRequestNode(), GetLivezRequestNone(), GetReadyzCassandraRequestNode(), GetReadyzCDDRequestNode(), GetReadyzLMDBRequestNode(), GetReadyzRequestNode(), GetReadyzSNPRequestNode(), GetReadyzWGSRequestNode(), GetRequestsNode(), GetTestIoRequestNode(), GetUnknownRequestNode(), SLazyInitData::InitJson(), SRemoteApp::Input(), SNetStorageRPC::MkObjectRequest(), NSTGetBackendConfiguration(), SRemoteApp::Output(), PopulatePerRequestMomentousDictionary(), CPSGS_Dispatcher::PopulateStatus(), CJobInfoToJSON::ProcessJobEventField(), CJobInfoToJSON::ProcessJobInfoField(), CJobInfoToJSON::ProcessRawLine(), CNSTServiceRegistry::ReadConfiguration(), CNetScheduleServer::ReadServicesConfig(), SNetStorageObjectRPC::Relocate(), s_SetStorageFlags(), CMomentousCounterSeries::Serialize(), CAvgPerformanceSeries::Serialize(), CMonotonicCounterSeries::Serialize(), CProcessorRequestTimeSeries::Serialize(), CRequestTimeSeries::Serialize(), COperationTiming::Serialize(), CNSTServiceRegistry::Serialize(), SPSGS_BlobBySeqIdRequest::Serialize(), SPSGS_AnnotRequest::Serialize(), SerializeHistogram(), CBlobRetrieveTiming::SerializeSeries(), CNetScheduleServer::SetNSParameters(), CNSTDatabase::SetParameters(), CNetStorageServer::SetParameters(), CNetStorageObjectLoc::ToJSON(), CJsonOverUTTPReader::x_AddNewNode(), CQueueDataBase::x_ConfigureQueueClasses(), CQueueDataBase::x_ConfigureQueues(), SRemoteApp::x_CreateArgsNode(), CQueueDataBase::x_DetectChangesInLinkedSection(), CNetStorageServer::x_diffInJson(), CPubseqGatewayApp::x_IsConnectionAboveSoftLimitForZEndPoints(), CPubseqGatewayApp::x_IsShuttingDownForZEndPoints(), CNetStorageHandler::x_ProcessConfiguration(), CNetStorageHandler::x_ProcessGetAttrList(), CNetStorageHandler::x_ProcessGetClientObjects(), CNetStorageHandler::x_ProcessGetClientsInfo(), CNetStorageHandler::x_ProcessGetMetadataInfo(), CNetStorageHandler::x_ProcessGetObjectInfo(), CNetStorageHandler::x_ProcessGetUserObjects(), CNetStorageHandler::x_ProcessGetUsersInfo(), CNetStorageHandler::x_ProcessHealth(), CNetStorageHandler::x_ProcessReconfigure(), CNetScheduleHandler::x_ProcessReloadConfig(), CQueueDataBase::x_ReadLinkedSections(), CPubseqGatewayApp::x_ReadyzHealthzImplementation(), CPubseqGatewayApp::x_SelfZEndPointCheck(), CMonotonicCounterSeries::x_SerializeOneSeries(), CProcessorRequestTimeSeries::x_SerializeOneSeries(), CMomentousCounterSeries::x_SerializeOneSeries(), CAvgPerformanceSeries::x_SerializeOneSeries(), and CJsonNodeUpdater::~CJsonNodeUpdater().
Set a JSON object element to the specified floating point value.
Definition at line 794 of file json_over_uttp.cpp.
References ncbi::grid::netcache::search::fields::key, and rapidjson::value.
Referenced by COperationTiming::Serialize(), CNetStorageHandler::x_ProcessConfiguration(), CMonotonicCounterSeries::x_SerializeOneSeries(), CProcessorRequestTimeSeries::x_SerializeOneSeries(), and CMomentousCounterSeries::x_SerializeOneSeries().
Set a JSON object element to the specified integer value.
Definition at line 789 of file json_over_uttp.cpp.
References ncbi::grid::netcache::search::fields::key, and rapidjson::value.
Referenced by SPSGS_RequestBase::AppendCommonParameters(), SPSGS_BlobRequestBase::AppendCommonParameters(), AppendHopsParameter(), CPSGSCounters::AppendValueNode(), CreateErrorResponseMessage(), CreateIssue(), CreateResponseMessage(), NAutomation::SNetStorageService::ExecClientObjects(), NAutomation::SNetScheduleService::ExecJobCounters(), NAutomation::SNetStorageService::ExecUserObjects(), g_FixMisplacedPID(), g_LegacyStatToJson(), g_WorkerNodeInfoToJson(), SLazyInitData::InitJson(), SRemoteApp::Input(), SNetStorageRPC::MkStdRequest(), SRemoteApp::Output(), SRemoteCgi::Output(), PopulatePerRequestMomentousDictionary(), CJobInfoToJSON::ProcessJobMeta(), NDirectNetStorageImpl::CObj::Relocate(), COperationTiming::Serialize(), SNSTAlertAttributes::Serialize(), CPSGS_Request::Serialize(), SPSGS_ResolveRequest::Serialize(), SPSGS_BlobBySeqIdRequest::Serialize(), SPSGS_BlobBySatSatKeyRequest::Serialize(), SPSGS_AnnotRequest::Serialize(), SPSGS_TSEChunkRequest::Serialize(), SPSGS_AccessionVersionHistoryRequest::Serialize(), SPSGS_IPGResolveRequest::Serialize(), CPSGTimingBase::SerializeCombined(), CBlobRetrieveTiming::SerializeCombined(), SerializeHistogram(), CPSGTimingBase::SerializeSeries(), CBlobRetrieveTiming::SerializeSeries(), CNetStorageObjectLoc::ToJSON(), CNetStorageHandler::x_ProcessGetClientObjects(), CNetStorageHandler::x_ProcessGetSize(), CNetStorageHandler::x_ProcessGetUserObjects(), CNetStorageHandler::x_ProcessInfo(), CPubseqGatewayApp::x_SelfZEndPointCheckImpl(), CPSGS_CDDProcessor::x_SendAnnotInfo(), CMonotonicCounterSeries::x_SerializeOneSeries(), CProcessorRequestTimeSeries::x_SerializeOneSeries(), CMomentousCounterSeries::x_SerializeOneSeries(), and CAvgPerformanceSeries::x_SerializeOneSeries().
Set a JSON object element to the specified null value.
Definition at line 804 of file json_over_uttp.cpp.
References ncbi::grid::netcache::search::fields::key.
Referenced by CPSGS_Dispatcher::PopulateStatus(), CJobInfoToJSON::ProcessJobEventField(), and CNetStorageObjectLoc::ToJSON().
Set a JSON object element to the specified string value.
Definition at line 784 of file json_over_uttp.cpp.
References ncbi::grid::netcache::search::fields::key, and rapidjson::value.
Referenced by SDataDetector::AddNodes(), AppendAccSubstitutionParameter(), AppendAckAlertUsernameParameter(), AppendAlertParameter(), AppendAuthTokenParameter(), AppendBioseqFlagParameter(), AppendBlobIdParameter(), AppendClientIdParameter(), SPSGS_RequestBase::AppendCommonParameters(), SPSGS_BlobRequestBase::AppendCommonParameters(), AppendDisableProcessorParameter(), AppendEnableProcessorParameter(), AppendError(), AppendExcludeBlobsParameter(), AppendFmtParameter(), AppendHistogramNamesParameter(), AppendHopsParameter(), AppendId2ChunkParameter(), AppendId2InfoParameter(), AppendIncludeHupParameter(), AppendIpgParameter(), AppendLastModifiedParameter(), AppendLogParameter(), AppendMostAncientTimeParameter(), AppendMostRecentTimeParameter(), AppendNucleotideParameter(), AppendProcessorEventsParameter(), AppendProteinParameter(), AppendResendTimeoutParameter(), AppendResetParameter(), AppendReturnDataSizeParameter(), AppendSendBlobIfSmallParameter(), AppendSeqIdParameter(), AppendSeqIdParameterForGetNA(), AppendSeqIdResolveParameter(), AppendSeqIdsParameterForGetNA(), AppendSeqIdTypeParameter(), AppendSNPScaleLimitParameter(), AppendTimeoutParameter(), AppendTimeSeriesParameter(), AppendTseOptionParameter(), AppendUseCacheParameter(), AppendUsernameParameter(), CPSGSCounters::AppendValueNode(), AppendZExcludeParameter(), AppendZVerboseParameter(), CGridCommandLineInterfaceApp::Cmd_WhatIs(), CreateErrorResponseMessage(), CreateIssue(), CreateResponseMessage(), NAutomation::SNetStorageServer::ExecAckAlert(), NAutomation::SNetStorageService::ExecClientObjects(), NAutomation::SNetStorageService::ExecUserObjects(), g_GenericStatToJson(), g_LegacyStatToJson(), g_ServerInfoToJson(), g_WorkerNodeInfoToJson(), GetAboutNode(), GetAdminAckAlertsRequestNode(), GetAdminConfigRequestNode(), GetAdminGetAlertsRequestNode(), GetAdminInfoRequestNode(), GetAdminShutdownRequestNode(), GetAdminStatisticsRequestNode(), GetAdminStatusRequestNode(), SNetStorageObjectRPC::GetAttribute(), GetDeepHealthRequestNode(), GetFaviconRequestNode(), GetHealthRequestNode(), GetHealthzRequestNode(), GetIdAccessionVersionHistoryRequestNode(), GetIdGetblobRequestNode(), GetIdGetNaRequestNode(), GetIdGetRequestNode(), GetIdGetTseChunkRequestNode(), GetIdResolveRequestNode(), GetIpgResolveRequestNode(), GetLivezRequestNone(), GetReadyzCassandraRequestNode(), GetReadyzCDDRequestNode(), GetReadyzLMDBRequestNode(), GetReadyzRequestNode(), GetReadyzSNPRequestNode(), GetReadyzWGSRequestNode(), GetReferencesNode(), GetTestIoRequestNode(), GetUnknownRequestNode(), SLazyInitData::InitJson(), SRemoteCgi::Input(), SInputOutputProcessor::Input(), SNetStorageRPC::MkObjectRequest(), SNetStorageRPC::MkStdRequest(), CPubseqGatewayApp::OnConfig(), CPubseqGatewayApp::OnLivez(), SInputOutputProcessor::Output(), CPSGS_Dispatcher::PopulateStatus(), CJobInfoToJSON::ProcessInput(), CJobInfoToJSON::ProcessJobMeta(), CJsonOverUTTPReader::ReadMessage(), NDirectNetStorageImpl::CObj::Relocate(), COperationTiming::Serialize(), SNSTAlertAttributes::Serialize(), CNSTAlerts::Serialize(), CNSTClientRegistry::Serialize(), CNSTServiceProperties::Serialize(), CNSTServiceRegistry::Serialize(), CPSGS_Request::Serialize(), SPSGS_ResolveRequest::Serialize(), SPSGS_BlobBySeqIdRequest::Serialize(), SPSGS_BlobBySatSatKeyRequest::Serialize(), SPSGS_AnnotRequest::Serialize(), SPSGS_TSEChunkRequest::Serialize(), SPSGS_AccessionVersionHistoryRequest::Serialize(), SPSGS_IPGResolveRequest::Serialize(), SerializeHistogram(), SNetStorageObjectRPC::SetAttribute(), SNetStorageObjectRPC::SetExpiration(), CGridCommandLineInterfaceApp::ShutdownNetStorageServer(), SNetStorageRPC::SNetStorageRPC(), CNetStorageObjectLoc::ToJSON(), SRemoteApp::x_CreateArgsNode(), SRemoteApp::x_CreateDataNode(), SDataDetector::x_CreateNode(), CNetStorageHandler::x_FillObjectInfo(), CPubseqGatewayApp::x_IsConnectionAboveSoftLimitForZEndPoints(), CPubseqGatewayApp::x_IsShuttingDownForZEndPoints(), CNetStorageHandler::x_ProcessConfiguration(), CNetStorageHandler::x_ProcessCreate(), CNetStorageHandler::x_ProcessGetAttr(), CNetStorageHandler::x_ProcessGetClientsInfo(), CNetStorageHandler::x_ProcessGetObjectInfo(), CNetStorageHandler::x_ProcessGetUsersInfo(), CNetStorageHandler::x_ProcessHealth(), CNetStorageHandler::x_ProcessInfo(), CNetStorageHandler::x_ProcessLockFTPath(), CNetStorageHandler::x_ProcessRelocate(), CNetStorageHandler::x_ProcessWrite(), CPubseqGatewayApp::x_ReadyzHealthzImplementation(), CPubseqGatewayApp::x_SelfZEndPointCheck(), CPubseqGatewayApp::x_SelfZEndPointCheckImpl(), CPSGS_CDDProcessor::x_SendAnnotInfo(), CPSGS_SNPProcessor::x_SendAnnotInfo(), CAvgPerformanceSeries::x_SerializeOneSeries(), and CNetStorageHandler::x_SetObjectInfoReply().
|
protected |
Definition at line 93 of file json_over_uttp.hpp.
Referenced by GetNodeType(), and GetTypeName().