NCBI C++ ToolKit
Classes | Namespaces | Functions | Variables
util.cpp File Reference
#include <ncbi_pch.hpp>
#include "util.hpp"
#include <sstream>
#include <locale>
#include <corelib/rwstream.hpp>
#include <cgi/ncbicgi.hpp>
#include <connect/services/ns_output_parser.hpp>
#include <connect/services/grid_rw_impl.hpp>
#include <connect/services/remote_app.hpp>
#include <connect/services/netstorage.hpp>
#include <connect/ncbi_util.h>
+ Include dependency graph for util.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.


class  CExecAndParseStructuredOutput
struct  SSingleQueueInfoToJson
struct  SQueueInfoToJson
struct  SDataDetector
struct  CJsonNodeUpdater
struct  SRemoteApp
struct  SRemoteApp::SRequest
struct  SRemoteCgi
struct  SRemoteCgi::SRequest
struct  SInputOutputProcessor
struct  SInputOutputProcessor::SStringStream
struct  SExecAnyCmdToJson
struct  SServerInfoToJson




CJsonNode g_LegacyStatToJson (CNetServer server, bool verbose)
CJsonNode g_QueueInfoToJson (CNetScheduleAPI ns_api, const string &queue_name)
CJsonNode g_QueueClassInfoToJson (CNetScheduleAPI ns_api)
CJsonNode g_ReconfAndReturnJson (CNetScheduleAPI ns_api)
void g_ProcessJobInfo (CNetScheduleAPI ns_api, const string &job_key, IJobInfoProcessor *processor, bool verbose, CCompoundIDPool::TInstance id_pool)
static void Indent (FILE *output_stream, int indent_depth, const char *indent)
static void PrintJSONNode (FILE *output_stream, CJsonNode node, const char *indent, int struct_indent_depth=0, const char *struct_prefix="", int scalar_indent_depth=0, const char *scalar_prefix="")
void g_PrintJSON (FILE *output_stream, CJsonNode node, const char *indent)
CJsonNode g_ExecAnyCmdToJson (CNetService service, const string &command, bool multiline)
CJsonNode g_ServerInfoToJson (CNetService service, bool server_version_key)
void g_SuspendNetSchedule (CNetScheduleAPI netschedule_api, bool pullback_mode)
void g_ResumeNetSchedule (CNetScheduleAPI netschedule_api)
void g_SuspendWorkerNode (CNetServer worker_node, bool pullback_mode, unsigned timeout)
void g_ResumeWorkerNode (CNetServer worker_node)
CJsonNode s_GetBlobMeta (const CNetCacheKey &key)
CJsonNode g_WhatIs (const string &id, CCompoundIDPool id_pool)
void NNetStorage::RemoveStdReplyFields (CJsonNode &server_reply)


static const string s_JobType = "job_type"

Function Documentation

◆ g_ExecAnyCmdToJson()

CJsonNode g_ExecAnyCmdToJson ( CNetService  service,
const string command,
bool  multiline 

◆ g_LegacyStatToJson()

CJsonNode g_LegacyStatToJson ( CNetServer  server,
bool  verbose 

◆ g_PrintJSON()

void g_PrintJSON ( FILE *  output_stream,
CJsonNode  node,
const char *  indent 

◆ g_ProcessJobInfo()

void g_ProcessJobInfo ( CNetScheduleAPI  ns_api,
const string job_key,
IJobInfoProcessor processor,
bool  verbose,
CCompoundIDPool::TInstance  id_pool 

◆ g_QueueClassInfoToJson()

CJsonNode g_QueueClassInfoToJson ( CNetScheduleAPI  ns_api)

◆ g_QueueInfoToJson()

CJsonNode g_QueueInfoToJson ( CNetScheduleAPI  ns_api,
const string queue_name 

◆ g_ReconfAndReturnJson()

CJsonNode g_ReconfAndReturnJson ( CNetScheduleAPI  ns_api)

◆ g_ResumeNetSchedule()

void g_ResumeNetSchedule ( CNetScheduleAPI  netschedule_api)

◆ g_ResumeWorkerNode()

void g_ResumeWorkerNode ( CNetServer  worker_node)

◆ g_ServerInfoToJson()

CJsonNode g_ServerInfoToJson ( CNetService  service,
bool  server_version_key 

Definition at line 799 of file util.cpp.

References CNetService::eIncludePenalized, and g_ExecToJson().

Referenced by SServerInfoToJson::ExecOn().

◆ g_SuspendNetSchedule()

void g_SuspendNetSchedule ( CNetScheduleAPI  netschedule_api,
bool  pullback_mode 

◆ g_SuspendWorkerNode()

void g_SuspendWorkerNode ( CNetServer  worker_node,
bool  pullback_mode,
unsigned  timeout 

◆ g_WhatIs()

CJsonNode g_WhatIs ( const string id,
CCompoundIDPool  id_pool 

◆ Indent()

static void Indent ( FILE *  output_stream,
int  indent_depth,
const char *  indent 

Definition at line 659 of file util.cpp.

References indent().

Referenced by PrintJSONNode(), and CTextItem::x_Indent().

◆ PrintJSONNode()

static void PrintJSONNode ( FILE *  output_stream,
CJsonNode  node,
const char *  indent,
int  struct_indent_depth = 0,
const char *  struct_prefix = "",
int  scalar_indent_depth = 0,
const char *  scalar_prefix = "" 

◆ s_GetBlobMeta()

CJsonNode s_GetBlobMeta ( const CNetCacheKey key)

Variable Documentation

◆ s_JobType

const string s_JobType = "job_type"
Modified on Thu Jul 18 16:04:18 2024 by rev. 669887