NCBI C++ ToolKit
Typedefs | Functions | Variables
netschedule_api_wn_info.cpp File Reference
#include <ncbi_pch.hpp>
#include "netschedule_api_impl.hpp"
#include <connect/services/netschedule_api.hpp>
#include <locale>
+ Include dependency graph for netschedule_api_wn_info.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Typedefs

typedef CNetScheduleAdmin::SWorkerNodeInfo SWorkerNodeInfo
 

Functions

void g_GetWorkerNodes (CNetScheduleAPI api, list< SWorkerNodeInfo > &worker_nodes)
 
CJsonNode g_GetWorkerNodeInfo (CNetScheduleAPI api)
 
string g_GetNetScheduleStatCommand (ENetScheduleStatTopic topic)
 
string g_UnquoteIfQuoted (const CTempString &str)
 
static void NormalizeStatKeyName (CTempString &key)
 
bool g_FixMisplacedPID (CJsonNode &stat_info, CTempString &executable_path, const char *pid_key)
 
CJsonNode g_GenericStatToJson (CNetServer server, ENetScheduleStatTopic topic, bool verbose)
 
CJsonNode g_ServerInfoToJson (CNetServerInfo server_info, bool server_version_key)
 
static bool s_ExtractKey (const CTempString &line, string &key, CTempString &value)
 
static CJsonNode s_WordsToJsonArray (const CTempString &str)
 
CJsonNode g_WorkerNodeInfoToJson (CNetServer worker_node)
 

Variables

struct {
   const char *   command
 
   const char *   record_prefix
 
   const char *   entity_name
 
s_StatTopics [eNumberOfNetStheduleStatTopics]
 

Typedef Documentation

◆ SWorkerNodeInfo

Definition at line 40 of file netschedule_api_wn_info.cpp.

Function Documentation

◆ g_FixMisplacedPID()

bool g_FixMisplacedPID ( CJsonNode stat_info,
CTempString executable_path,
const char *  pid_key 
)

◆ g_GenericStatToJson()

CJsonNode g_GenericStatToJson ( CNetServer  server,
ENetScheduleStatTopic  topic,
bool  verbose 
)

◆ g_GetNetScheduleStatCommand()

string g_GetNetScheduleStatCommand ( ENetScheduleStatTopic  topic)

◆ g_GetWorkerNodeInfo()

CJsonNode g_GetWorkerNodeInfo ( CNetScheduleAPI  api)

◆ g_GetWorkerNodes()

void g_GetWorkerNodes ( CNetScheduleAPI  api,
list< SWorkerNodeInfo > &  worker_nodes 
)

◆ g_ServerInfoToJson()

CJsonNode g_ServerInfoToJson ( CNetServerInfo  server_info,
bool  server_version_key 
)

◆ g_UnquoteIfQuoted()

string g_UnquoteIfQuoted ( const CTempString str)

Definition at line 134 of file netschedule_api_wn_info.cpp.

References NStr::ParseQuoted(), and str().

Referenced by g_GenericStatToJson(), and CJobInfoToJSON::ProcessJobMeta().

◆ g_WorkerNodeInfoToJson()

CJsonNode g_WorkerNodeInfoToJson ( CNetServer  worker_node)

◆ NormalizeStatKeyName()

static void NormalizeStatKeyName ( CTempString key)
static

◆ s_ExtractKey()

static bool s_ExtractKey ( const CTempString line,
string key,
CTempString value 
)
static

◆ s_WordsToJsonArray()

static CJsonNode s_WordsToJsonArray ( const CTempString str)
static

Variable Documentation

◆ command

const char* command

Definition at line 112 of file netschedule_api_wn_info.cpp.

Referenced by CNcbiResource::AddCommand(), CCommandArgDescriptions::AddCommand(), CCmdComposite::AddCommand(), CReportTrim::AdjustAndTranslate(), SNSCommandArguments::AssignValues(), CCommandArgDescriptions::CreateArgs(), CBioseqEditor::EditSelection(), NAutomation::SNetService::ExecExec(), CUndoManager::Execute(), execute_sql(), fetch_results(), Messenger::FileMessengerSend(), g_ExecAnyCmdToJson(), g_GenericStatToJson(), CAdjustForConsensusSpliceSite::GetCommand(), CAdjustForConsensusSpliceSite::GetCommandToAdjustCDSEnds(), CPsgClientApp::Init(), LaunchWebPage(), CEutilsClient::Link(), CReadDispatcher::LoadAccVers(), CReadDispatcher::LoadBlob(), CReadDispatcher::LoadBlobs(), CReadDispatcher::LoadBlobSet(), CReadDispatcher::LoadBlobState(), CReadDispatcher::LoadBlobVersion(), CReadDispatcher::LoadBulkIds(), CReadDispatcher::LoadChunk(), CReadDispatcher::LoadChunks(), CReadDispatcher::LoadGis(), CReadDispatcher::LoadHashes(), CReadDispatcher::LoadLabels(), CReadDispatcher::LoadLengths(), CReadDispatcher::LoadSeq_idAccVer(), CReadDispatcher::LoadSeq_idBlob_ids(), CReadDispatcher::LoadSeq_idGi(), CReadDispatcher::LoadSeq_idLabel(), CReadDispatcher::LoadSeq_idSeq_ids(), CReadDispatcher::LoadSeq_idTaxId(), CReadDispatcher::LoadSequenceHash(), CReadDispatcher::LoadSequenceLength(), CReadDispatcher::LoadSequenceType(), CReadDispatcher::LoadStates(), CReadDispatcher::LoadTaxIds(), CReadDispatcher::LoadTypes(), CReadDispatcher::LogStat(), main(), odbc_command_proc(), odbc_command_with_result(), odbc_connect(), CwxGridTableAdapter::CEventHandler::OnAssignColumnValue(), CwxGridTableAdapter::CEventHandler::OnCopyColumn(), CBioseqEditor::OnDeleteBiosourceFeat(), CPhyTreeView::OnSomethingEdited(), CSimpleProjectView::OnWidgetCommand(), SCommandLineParserImpl::ParseAndValidate(), CNetServProtoParser< Extra >::ParseCommand(), CNetServProtoParserBase::ParseCommand(), CReadDispatcher::Process(), CommandProcessor::ProcessCommand(), FileMessenger::ReceiveCommands(), StructureWindow::ReceivedCommand(), CUndoManager::Redo(), CPsgClientApp::Run(), CMultiCommandApplication::Run(), s_AddCommand(), s_ReadAAIndex(), StructureWindow::SendCommand(), FileMessenger::SendCommand(), CArgs::SetCommand(), CAlnScannerNexus::sStripNexusCommentsFromCommand(), tds5_process_optioncmd(), tds_submit_optioncmd(), CReportTrim::TrimAlignments(), CEditSeqEndsWithAlign::TrimQualityScores(), CAlignmentAssistant::TrimQualityScores(), CReportTrim::TrimSeqGraphs(), CUndoManager::Undo(), CVectorTrimPanel::x_DeleteSelected(), CAlignmentAssistant::x_ExecuteCommand(), CEditSequence::x_ExecuteCommand(), CNetScheduleHandler::x_FinalizeReadCommand(), CCommandArgDescriptions::x_IdentifyCommand(), CEutilsClient::x_Link(), CVectorTrimPanel::x_RetranslateCDS(), CReportTrim::x_RetranslateCDS(), CVectorTrimPanel::x_TrimAlignments(), CVectorTrimPanel::x_TrimSelected(), CVectorTrimPanel::x_TrimSeqGraphs(), CAlnScannerNexus::xBeginBlock(), CAlnScannerNexus::xGetKeyVal(), CAlnScannerNexus::xProcessCommand(), CAlnScannerNexus::xProcessDataBlockCommand(), CAlnScannerNexus::xProcessFormat(), CAlnScannerNexus::xProcessMatrix(), CAlnScannerNexus::xProcessNCBIBlockCommand(), CAlnScannerNexus::xProcessTaxaBlockCommand(), and CAlnScannerNexus::xUnexpectedEndBlock().

◆ entity_name

const char* entity_name

◆ record_prefix

const char* record_prefix

Definition at line 113 of file netschedule_api_wn_info.cpp.

Referenced by g_GenericStatToJson().

◆ 

struct { ... } s_StatTopics[eNumberOfNetStheduleStatTopics]
Initial value:
= {
{"STAT GROUPS", "GROUP: ", "group"},
{"STAT CLIENTS", "CLIENT: ", "client_node"},
{"STAT NOTIFICATIONS", "CLIENT: ", "client_node"},
{"STAT AFFINITIES", "AFFINITY: ", "affinity_token"}
}

Referenced by g_GenericStatToJson(), and g_GetNetScheduleStatCommand().

Modified on Thu Jul 18 16:06:47 2024 by modify_doxy.py rev. 669887