Search Toolkit Book for CGridCommandLineInterfaceApp
#include "grid_cli.hpp"
(Private to src/app/grid/grid_cli
.)
Definition at line 290 of file grid_cli.hpp.
◆ EAdminCmdSeverity Enumerator eReadOnlyAdminCmd eAdminCmdWithSideEffectsDefinition at line 536 of file grid_cli.hpp.
◆ EAPIClass Enumerator eNetCacheAPI eNetICacheClient eNetCacheAdmin eNetScheduleAPI eNetScheduleAdmin eNetScheduleSubmitter eNetScheduleExecutor eWorkerNodeAdmin eNetStorageAPI eNetStorageAdminDefinition at line 523 of file grid_cli.hpp.
◆ CGridCommandLineInterfaceApp() CGridCommandLineInterfaceApp::CGridCommandLineInterfaceApp ( int argc, const char * argv[] ) ◆ Automation_DebugConsole() int CGridCommandLineInterfaceApp::Automation_DebugConsole ( ) privateDefinition at line 797 of file automation.cpp.
References AUTOMATION_IO_BUFFER_SIZE, DEBUG_CONSOLE_PROMPT, eDPF_Log, CParseTemplException< TBase >::GetPos(), GRID_APP_NAME, NCBI_AS_STRING, NULL, CJsonNode::ParseArray(), proc, PROTOCOL_VERSION, read_buf(), and CException::ReportThis().
Referenced by Cmd_Automate().
◆ Automation_PipeServer() int CGridCommandLineInterfaceApp::Automation_PipeServer ( ) privateDefinition at line 720 of file automation.cpp.
References CJsonNode::AppendInteger(), CJsonNode::AppendString(), AUTOMATION_IO_BUFFER_SIZE, eDPF_Log, eIO_Success, eProtocolDump, CException::GetErrCode(), CJsonOverUTTPReader::GetMessage(), GRID_APP_NAME, IsOptionSet(), m_Opts, CJsonNode::NewArrayNode(), CPipe::OpenSelf(), NAutomation::IMessageSender::OutputMessage(), proc, CGridCommandLineInterfaceApp::SOptions::protocol_dump, PROTOCOL_ERROR_BASE_RETCODE, PROTOCOL_VERSION, CPipe::Read(), read_buf(), CJsonOverUTTPReader::ReadMessage(), CException::ReportThis(), CJsonOverUTTPReader::Reset(), CUTTPWriter::Reset(), and CUTTPReader::SetNewBuffer().
Referenced by Cmd_Automate().
◆ CheckJobInputStream() void CGridCommandLineInterfaceApp::CheckJobInputStream ( CNcbiOstream & job_input_ostream ) private ◆ CheckNetStorageOptions() void CGridCommandLineInterfaceApp::CheckNetStorageOptions ( ) const private ◆ Cmd_Automate() int CGridCommandLineInterfaceApp::Cmd_Automate ( ) ◆ Cmd_BlobInfo() int CGridCommandLineInterfaceApp::Cmd_BlobInfo ( )Definition at line 215 of file nc_cmds.cpp.
References eNetCacheAPI, CNetCacheException::eServerError, eTryAllServers, CNetCacheAPI::GetBlobInfo(), CNetICacheClient::GetBlobInfo(), CNetCacheAPI::GetBlobSize(), CNetICacheClient::GetBlobSize(), CException::GetErrCode(), IsOptionSet(), CGridCommandLineInterfaceApp::SOptions::SNCID::key, m_APIClass, m_CompoundIDPool, m_NetCacheAPI, m_NetICacheClient, m_Opts, nc_server_last_used, nc_try_all_servers, CGridCommandLineInterfaceApp::SOptions::ncid, output, PrintBlobMeta(), PrintServerAddress(), SetUp_NetCacheCmd(), NStr::StartsWith(), CGridCommandLineInterfaceApp::SOptions::SNCID::subkey, and CGridCommandLineInterfaceApp::SOptions::SNCID::version.
◆ Cmd_CancelJob() int CGridCommandLineInterfaceApp::Cmd_CancelJob ( )Definition at line 969 of file ns_cmds.cpp.
References CNetScheduleAdmin::CancelAllJobs(), CNetScheduleSubmitter::CancelJob(), CNetScheduleSubmitter::CancelJobGroup(), eAdminCmdWithSideEffects, eAllJobs, eJobGroup, eNetScheduleAdmin, eNetScheduleAPI, CNetScheduleAPI::GetSubmitter(), CGridCommandLineInterfaceApp::SOptions::id, IsOptionSet(), CGridCommandLineInterfaceApp::SOptions::job_group, CGridCommandLineInterfaceApp::SOptions::job_statuses, m_NetScheduleAdmin, m_NetScheduleAPI, m_Opts, and SetUp_NetScheduleCmd().
◆ Cmd_ClearNode() int CGridCommandLineInterfaceApp::Cmd_ClearNode ( ) ◆ Cmd_CommitJob() int CGridCommandLineInterfaceApp::Cmd_CommitJob ( )Definition at line 1079 of file ns_cmds.cpp.
References CNetScheduleJob::auth_token, CGridCommandLineInterfaceApp::SOptions::auth_token, buffer, eFailJob, eJobOutput, eJobOutputBlob, eNetScheduleExecutor, eRead, CGridCommandLineInterfaceApp::SOptions::error_message, CNetScheduleJob::error_msg, eRW_Success, CNetScheduleAPI::GetServerParams(), GRID_APP_NAME, CGridCommandLineInterfaceApp::SOptions::id, CGridCommandLineInterfaceApp::SOptions::input_stream, IO_BUFFER_SIZE, IsOptionSet(), CNetScheduleNewJob::job_id, CGridCommandLineInterfaceApp::SOptions::job_output, CGridCommandLineInterfaceApp::SOptions::job_output_blob, m_NetCacheAPI, m_NetScheduleAPI, m_NetScheduleExecutor, m_Opts, CNetScheduleAPI::SServerParams::max_output_size, NCBI_THROW, CNetScheduleJob::output, CNetScheduleExecutor::PutFailure(), CNetScheduleExecutor::PutResult(), CNetScheduleJob::ret_code, CGridCommandLineInterfaceApp::SOptions::return_code, SetUp_NetScheduleCmd(), and CStringOrWriter::Write().
◆ Cmd_CreateLoc() int CGridCommandLineInterfaceApp::Cmd_CreateLoc ( )Definition at line 381 of file nst_cmds.cpp.
References CGridCommandLineInterfaceApp::SOptions::cache_name, CACHE_OPTION, CNetStorageObjectLoc::Create(), eCache, eNetCache, CGridCommandLineInterfaceApp::SOptions::SNCID::HasVersion(), IsOptionSet(), CGridCommandLineInterfaceApp::SOptions::SNCID::key, m_Opts, CGridCommandLineInterfaceApp::SOptions::nc_service, NCBI_THROW, CGridCommandLineInterfaceApp::SOptions::ncid, NETCACHE_OPTION, CGridCommandLineInterfaceApp::SOptions::SNCID::Parse(), CGridCommandLineInterfaceApp::SOptions::SNCID::subkey, CGridCommandLineInterfaceApp::SOptions::SNCID::version, and dtl::version.
◆ Cmd_CreateQueue() int CGridCommandLineInterfaceApp::Cmd_CreateQueue ( ) ◆ Cmd_DeleteQueue() int CGridCommandLineInterfaceApp::Cmd_DeleteQueue ( ) ◆ Cmd_Discover() int CGridCommandLineInterfaceApp::Cmd_Discover ( )Definition at line 638 of file adm_cmds.cpp.
References CGridCommandLineInterfaceApp::SOptions::auth, CNetService::Create(), NStr::DoubleToString(), CNetService::eIncludePenalized, NStr::EndsWith(), eNoDNSLookup, eOff, CNetServer::GetHost(), CSocketAPI::gethostbyaddr(), CNetServer::GetPort(), IsOptionSet(), CNetService::Iterate(), m_Opts, NCBI_DOMAIN, CSocketAPI::ntoa(), row, CGridCommandLineInterfaceApp::SOptions::service_name, and NStr::UIntToString().
◆ Cmd_Download() int CGridCommandLineInterfaceApp::Cmd_Download ( ) ◆ Cmd_Drain() int CGridCommandLineInterfaceApp::Cmd_Drain ( ) ◆ Cmd_DumpQueue() int CGridCommandLineInterfaceApp::Cmd_DumpQueue ( )Definition at line 1204 of file ns_cmds.cpp.
References CNetScheduleAdmin::DumpQueue(), eNetScheduleAdmin, eReadOnlyAdminCmd, CGridCommandLineInterfaceApp::SOptions::job_count, CGridCommandLineInterfaceApp::SOptions::job_group, CGridCommandLineInterfaceApp::SOptions::job_statuses, m_NetScheduleAdmin, m_Opts, NcbiCout, SetUp_NetScheduleCmd(), and CGridCommandLineInterfaceApp::SOptions::start_after_job.
◆ Cmd_Exec() int CGridCommandLineInterfaceApp::Cmd_Exec ( )Definition at line 694 of file adm_cmds.cpp.
References CGridCommandLineInterfaceApp::SOptions::command, eAdminCmdWithSideEffects, eMultiline, CNetService::eMultilineOutput, eNetCacheAdmin, eNetScheduleAdmin, eRaw, CNetService::eSingleLineOutput, eWorkerNodeAdmin, g_ExecAnyCmdToJson(), g_PrintJSON(), CNetCacheAPI::GetService(), CNetScheduleAPI::GetService(), IsOptionSet(), m_APIClass, m_NetCacheAPI, m_NetScheduleAPI, m_Opts, NcbiCout, CGridCommandLineInterfaceApp::SOptions::output_format, CNetService::PrintCmdOutput(), and SetUp_AdminCmd().
◆ Cmd_GetAttr() int CGridCommandLineInterfaceApp::Cmd_GetAttr ( ) ◆ Cmd_GetAttrList() int CGridCommandLineInterfaceApp::Cmd_GetAttrList ( ) ◆ Cmd_GetBlob() int CGridCommandLineInterfaceApp::Cmd_GetBlob ( )Definition at line 274 of file nc_cmds.cpp.
References buffer, eCache, CNetCacheAPI::eCaching_Disable, ICache::eCurrent, eNetCacheAPI, ePassword, ERR_POST, eRW_Eof, eRW_Success, eTryAllServers, ICache::eValid, CNetCacheAPI::GetPartReader(), CNetCacheAPI::GetReader(), CNetICacheClient::GetReadStream(), CNetICacheClient::GetReadStreamPart(), CGridCommandLineInterfaceApp::SOptions::SNCID::HasVersion(), IO_BUFFER_SIZE, IsOptionSet(), CGridCommandLineInterfaceApp::SOptions::SNCID::key, m_APIClass, m_NetCacheAPI, m_NetICacheClient, m_Opts, nc_blob_password, nc_caching_mode, nc_try_all_servers, NCBI_THROW, NcbiCerr, NcbiEndl, CGridCommandLineInterfaceApp::SOptions::ncid, NULL, CGridCommandLineInterfaceApp::SOptions::offset, OPTION_N, CGridCommandLineInterfaceApp::SOptions::output_stream, CGridCommandLineInterfaceApp::SOptions::password, SetUp_NetCacheCmd(), CGridCommandLineInterfaceApp::SOptions::size, CGridCommandLineInterfaceApp::SOptions::SNCID::subkey, and CGridCommandLineInterfaceApp::SOptions::SNCID::version.
◆ Cmd_GetConf() int CGridCommandLineInterfaceApp::Cmd_GetConf ( )Definition at line 397 of file adm_cmds.cpp.
References eNetCacheAdmin, eNetScheduleAdmin, eNetStorageAdmin, eReadOnlyAdminCmd, eWorkerNodeAdmin, m_APIClass, m_NetCacheAdmin, m_NetScheduleAdmin, NcbiCout, CNetScheduleAdmin::PrintConf(), CNetCacheAdmin::PrintConfig(), PrintNetStorageServerConfig(), and SetUp_AdminCmd().
◆ Cmd_GetJobInput() int CGridCommandLineInterfaceApp::Cmd_GetJobInput ( )Definition at line 841 of file ns_cmds.cpp.
References DumpJobInputOutput(), CNetScheduleAPI::eJobNotFound, eNetScheduleSubmitter, CNetScheduleAPI::GetJobDetails(), GRID_APP_NAME, CGridCommandLineInterfaceApp::SOptions::id, CNetScheduleNewJob::input, CNetScheduleNewJob::job_id, m_NetScheduleAPI, m_Opts, and SetUp_NetScheduleCmd().
◆ Cmd_GetJobOutput() int CGridCommandLineInterfaceApp::Cmd_GetJobOutput ( )Definition at line 857 of file ns_cmds.cpp.
References DumpJobInputOutput(), CNetScheduleAPI::eConfirmed, CNetScheduleAPI::eDone, eNetScheduleSubmitter, CNetScheduleAPI::eReadFailed, CNetScheduleAPI::eReading, CNetScheduleAPI::GetJobDetails(), CGridCommandLineInterfaceApp::SOptions::id, CNetScheduleNewJob::job_id, m_NetScheduleAPI, m_Opts, CNetScheduleJob::output, SetUp_NetScheduleCmd(), and CNetScheduleAPI::StatusToString().
◆ Cmd_GetQueueList() int CGridCommandLineInterfaceApp::Cmd_GetQueueList ( ) ◆ Cmd_Health() int CGridCommandLineInterfaceApp::Cmd_Health ( ) ◆ Cmd_JobInfo() int CGridCommandLineInterfaceApp::Cmd_JobInfo ( )Definition at line 176 of file ns_cmds.cpp.
References BRIEF_OPTION, CNetScheduleAdmin::DumpJob(), eBrief, eDeferExpiration, eJSON, eNetScheduleAdmin, eProgressMessageOnly, eRaw, eReadOnlyAdminCmd, eStatusOnly, g_PrintJSON(), g_ProcessJobInfo(), CNetScheduleAPI::GetExecutor(), CNetScheduleExecutor::GetJobStatus(), CNetScheduleSubmitter::GetJobStatus(), CNetScheduleAPI::GetProgressMsg(), CJobInfoToJSON::GetRootNode(), CNetScheduleAPI::GetSubmitter(), GRID_APP_NAME, CGridCommandLineInterfaceApp::SOptions::id, IsOptionSet(), CNetScheduleNewJob::job_id, JOBINFO_COMMAND, JobInfo_PrintStatus(), m_CompoundIDPool, m_NetScheduleAdmin, m_NetScheduleAPI, m_Opts, NcbiCout, CGridCommandLineInterfaceApp::SOptions::output_format, PrintLine(), CNetScheduleJob::progress_msg, RAW_OUTPUT_FORMAT, and SetUp_NetScheduleCmd().
◆ Cmd_Login() int CGridCommandLineInterfaceApp::Cmd_Login ( )Definition at line 103 of file misc_cmds.cpp.
References CGridCommandLineInterfaceApp::SOptions::app_uid, CCompoundID::AppendBoolean(), CCompoundID::AppendCurrentTime(), CCompoundID::AppendDatabaseName(), CCompoundID::AppendHost(), CCompoundID::AppendID(), CCompoundID::AppendLabel(), CCompoundID::AppendServiceName(), CCompoundID::AppendString(), CGridCommandLineInterfaceApp::SOptions::auth, CGridCommandLineInterfaceApp::SOptions::cache_name, DEFAULT_APP_UID, eAuth, eCache, eCIC_GenericID, eEnableMirroring, eFileTrackSite, eFileTrackToken, eNetCache, eNetSchedule, eNoConnRetries, eQueue, CGridCommandLineInterfaceApp::SOptions::ft_site, CGridCommandLineInterfaceApp::SOptions::ft_token, GetDiagContext(), impl::GetHost(), CDiagContext::GetPID(), IsOptionSet(), LOGIN_TOKEN_ALLOW_XSITE_CONN, LOGIN_TOKEN_APP_UID_FIELD, LOGIN_TOKEN_AUTH_FIELD, LOGIN_TOKEN_ENABLE_MIRRORING, LOGIN_TOKEN_FILETRACK_SITE, LOGIN_TOKEN_FILETRACK_TOKEN, LOGIN_TOKEN_HOST_FIELD, LOGIN_TOKEN_ICACHE_NAME_FIELD, LOGIN_TOKEN_NETCACHE_FIELD, LOGIN_TOKEN_NETSCHEDULE_FIELD, LOGIN_TOKEN_NO_CONN_RETRIES, LOGIN_TOKEN_QUEUE_FIELD, LOGIN_TOKEN_SESSION_PID_FIELD, LOGIN_TOKEN_SESSION_TIMESTAMP_FIELD, LOGIN_TOKEN_SESSION_UID_FIELD, LOGIN_TOKEN_USER_FIELD, m_CompoundIDPool, m_Opts, CGridCommandLineInterfaceApp::SOptions::nc_service, CCompoundIDPool::NewID(), CGridCommandLineInterfaceApp::SOptions::ns_service, PrintLine(), CGridCommandLineInterfaceApp::SOptions::queue, and CCompoundID::ToString().
◆ Cmd_NetStorageObjectInfo() int CGridCommandLineInterfaceApp::Cmd_NetStorageObjectInfo ( ) ◆ Cmd_Purge() int CGridCommandLineInterfaceApp::Cmd_Purge ( ) ◆ Cmd_PutBlob() int CGridCommandLineInterfaceApp::Cmd_PutBlob ( )Definition at line 398 of file nc_cmds.cpp.
References buffer, eInput, eNetCacheAPI, ePassword, eRW_Success, eUseCompoundID, CNetICacheClient::GetNetCacheWriter(), CNetICacheClient::GetService(), CGridCommandLineInterfaceApp::SOptions::input, CGridCommandLineInterfaceApp::SOptions::input_stream, IO_BUFFER_SIZE, CNetService::IsLoadBalanced(), IsOptionSet(), CGridCommandLineInterfaceApp::SOptions::SNCID::key, m_APIClass, m_NetCacheAPI, m_NetICacheClient, m_Opts, nc_blob_password, nc_blob_ttl, nc_server_last_used, nc_use_compound_id, NCBI_USER_THROW, NcbiCout, NcbiEndl, CGridCommandLineInterfaceApp::SOptions::ncid, CGridCommandLineInterfaceApp::SOptions::password, PrintServerAddress(), CNetCacheAPI::PutData(), SetUp_NetCacheCmd(), CGridCommandLineInterfaceApp::SOptions::SNCID::subkey, CGridCommandLineInterfaceApp::SOptions::ttl, and CGridCommandLineInterfaceApp::SOptions::SNCID::version.
◆ Cmd_QueueInfo() int CGridCommandLineInterfaceApp::Cmd_QueueInfo ( )Definition at line 1175 of file ns_cmds.cpp.
References ALL_QUEUES_OPTION, eAllQueues, eJSON, CNetService::eMultilineOutput, eNetScheduleAdmin, eQueueArg, eQueueClasses, eReadOnlyAdminCmd, g_PrintJSON(), g_QueueClassInfoToJson(), g_QueueInfoToJson(), CNetScheduleAPI::GetService(), GRID_APP_NAME, IsOptionSet(), kEmptyStr, m_NetScheduleAdmin, m_NetScheduleAPI, m_Opts, NcbiCout, CGridCommandLineInterfaceApp::SOptions::output_format, CNetService::PrintCmdOutput(), CNetScheduleAdmin::PrintQueueInfo(), CGridCommandLineInterfaceApp::SOptions::queue, QUEUE_ARG, QUEUEINFO_COMMAND, and SetUp_NetScheduleCmd().
◆ Cmd_ReadJob() int CGridCommandLineInterfaceApp::Cmd_ReadJob ( )Definition at line 880 of file ns_cmds.cpp.
References CGridCommandLineInterfaceApp::SOptions::affinity, CNetScheduleJob::auth_token, CGridCommandLineInterfaceApp::SOptions::auth_token, CLIENT_SESSION_OPTION, DumpJobInputOutput(), eClientSession, eConfirmRead, CNetScheduleAPI::eDone, eFailRead, eJobId, eNetScheduleSubmitter, eReliableRead, CNetScheduleJobReader::eRNJ_Interrupt, CNetScheduleJobReader::eRNJ_JobReady, CNetScheduleJobReader::eRNJ_NoMoreJobs, CNetScheduleJobReader::eRNJ_NotReady, eRollbackRead, CGridCommandLineInterfaceApp::SOptions::error_message, eWaitTimeout, CNetScheduleSubmitter::GetJobDetails(), CNetScheduleAPI::GetJobReader(), GRID_APP_NAME, CGridCommandLineInterfaceApp::SOptions::id, IsOptionSet(), CGridCommandLineInterfaceApp::SOptions::job_group, CNetScheduleNewJob::job_id, JOB_ID_OPTION, LOGIN_TOKEN_OPTION, m_NetScheduleAPI, m_NetScheduleSubmitter, m_Opts, CNetScheduleJob::output, PrintLine(), CNetScheduleSubmitter::ReadConfirm(), CNetScheduleSubmitter::ReadFail(), READJOB_COMMAND, CNetScheduleJobReader::ReadNextJob(), CNetScheduleSubmitter::ReadRollback(), SetUp_NetScheduleCmd(), CNetScheduleAPI::StatusToString(), and CGridCommandLineInterfaceApp::SOptions::timeout.
◆ Cmd_Reconf() int CGridCommandLineInterfaceApp::Cmd_Reconf ( )Definition at line 419 of file adm_cmds.cpp.
References eAdminCmdWithSideEffects, CNetCacheAdmin::eCompleteReload, eMirror, CNetCacheAdmin::eMirrorReload, eNetCacheAdmin, eNetScheduleAdmin, eNetStorageAdmin, g_PrintJSON(), g_ReconfAndReturnJson(), IsOptionExplicitlySet(), m_APIClass, m_NetCacheAdmin, m_NetScheduleAPI, ReconfigureNetStorageServer(), CNetCacheAdmin::ReloadServerConfig(), and SetUp_AdminCmd().
◆ Cmd_Relocate() int CGridCommandLineInterfaceApp::Cmd_Relocate ( )Definition at line 334 of file nst_cmds.cpp.
References CheckNetStorageOptions(), eNetStorageAPI, eReportProgress, eUserKey, CJsonNode::fOmitOutermostBrackets, CGridCommandLineInterfaceApp::SOptions::id, IsOptionSet(), m_NetStorage, m_NetStorageByKey, m_Opts, CGridCommandLineInterfaceApp::SOptions::netstorage_flags, PrintLine(), CNetStorage::Relocate(), CNetStorageByKey::Relocate(), and SetUp_NetStorageCmd().
◆ Cmd_RemoveBlob() int CGridCommandLineInterfaceApp::Cmd_RemoveBlob ( )Definition at line 491 of file nc_cmds.cpp.
References eNetCacheAPI, ePassword, IsOptionSet(), CGridCommandLineInterfaceApp::SOptions::SNCID::key, m_APIClass, m_NetCacheAPI, m_NetICacheClient, m_Opts, nc_blob_password, CGridCommandLineInterfaceApp::SOptions::ncid, CGridCommandLineInterfaceApp::SOptions::password, CNetCacheAPI::Remove(), CNetICacheClient::RemoveBlob(), SetUp_NetCacheCmd(), CGridCommandLineInterfaceApp::SOptions::SNCID::subkey, and CGridCommandLineInterfaceApp::SOptions::SNCID::version.
◆ Cmd_RemoveNetStorageObject() int CGridCommandLineInterfaceApp::Cmd_RemoveNetStorageObject ( )Definition at line 367 of file nst_cmds.cpp.
References CheckNetStorageOptions(), eNetStorageAPI, eUserKey, CGridCommandLineInterfaceApp::SOptions::id, IsOptionSet(), m_NetStorage, m_NetStorageByKey, m_Opts, CNetStorageByKey::Remove(), CNetStorage::Remove(), and SetUp_NetStorageCmd().
◆ Cmd_Replay() int CGridCommandLineInterfaceApp::Cmd_Replay ( )Definition at line 43 of file wn_cmds.cpp.
References CNetScheduleAPI::eCanceled, CNetScheduleAPI::eConfirmed, CNetScheduleAPI::eDone, eDumpCGIEnv, eDumpCGIStdIn, CNetScheduleAPI::eFailed, eJobInputDir, CNetScheduleAPI::eJobNotFound, eJobOutputDir, eNetScheduleSubmitter, env, CNetScheduleAPI::eReadFailed, CNetScheduleAPI::eReading, CCgiRequest::fDoNotParseContent, CCgiRequest::fIgnoreQueryString, CRWStreambuf::fLeakExceptions, CCgiRequest::fSaveRequestContent, CNetScheduleAPI::GetJobDetails(), GRID_APP_NAME, CGridCommandLineInterfaceApp::SOptions::id, CNetScheduleNewJob::input, IsOptionSet(), ITERATE, CNetScheduleNewJob::job_id, CGridCommandLineInterfaceApp::SOptions::job_input_dir, CGridCommandLineInterfaceApp::SOptions::job_output_dir, m_CompoundIDPool, m_NetCacheAPI, m_NetScheduleAPI, m_Opts, CGridCommandLineInterfaceApp::SOptions::output_stream, NStr::PrintableString(), CNetScheduleJobSerializer::SaveJobInput(), CNetScheduleJobSerializer::SaveJobOutput(), SetUp_NetScheduleCmd(), CNetScheduleAPI::StatusToString(), and CException::what().
◆ Cmd_RequestJob() int CGridCommandLineInterfaceApp::Cmd_RequestJob ( )Definition at line 989 of file ns_cmds.cpp.
References CGridCommandLineInterfaceApp::SOptions::affinity, ANY_AFFINITY_OPTION, CNetScheduleNotificationHandler::CheckRequestJobNotification(), CLAIM_NEW_AFFINITIES_OPTION, cmd, CNetScheduleNotificationHandler::CmdAppendTimeoutGroupAndClientInfo(), eAffinityList, eAnyAffinity, CNetScheduleExecutor::eAnyJob, eClaimNewAffinities, CNetScheduleExecutor::eClaimNewPreferredAffs, eDumpNSNotifications, CNetScheduleExecutor::eExplicitAffinitiesOnly, eNetScheduleExecutor, CNetScheduleExecutor::ePreferredAffinities, CNetScheduleExecutor::ePreferredAffsOrAnyJob, eUsePreferredAffinities, format, GetFastLocalTime(), CNetScheduleExecutor::GetJob(), CNetScheduleNotificationHandler::GetMessage(), CNetServer::GetServerAddress(), GRID_APP_NAME, IsOptionSet(), CGridCommandLineInterfaceApp::SOptions::job_group, CNetScheduleNewJob::job_id, m_NetScheduleExecutor, m_Opts, CNetScheduleNotificationHandler::MkBaseGETCmd(), OPTION_N, PrintJobAttrsAndDumpInput(), CNetScheduleNotificationHandler::PrintPortNumber(), CNetScheduleNotificationHandler::RequestJob(), s_NotificationTimestampFormat(), CNetScheduleExecutor::SetAffinityPreference(), SetUp_NetScheduleCmd(), CGridCommandLineInterfaceApp::SOptions::timeout, and CNetScheduleNotificationHandler::WaitForNotification().
◆ Cmd_Resume() int CGridCommandLineInterfaceApp::Cmd_Resume ( )Definition at line 508 of file adm_cmds.cpp.
References eAdminCmdWithSideEffects, eNetScheduleAdmin, eWorkerNodeAdmin, g_ResumeWorkerNode(), CNetServiceIterator::GetServer(), CNetScheduleAPI::GetService(), CNetService::Iterate(), m_APIClass, m_NetScheduleAPI, NetSchedule_SuspendResume(), and SetUp_AdminCmd().
◆ Cmd_ReturnJob() int CGridCommandLineInterfaceApp::Cmd_ReturnJob ( ) ◆ Cmd_SanityCheck() int CGridCommandLineInterfaceApp::Cmd_SanityCheck ( ) ◆ Cmd_ServerInfo() int CGridCommandLineInterfaceApp::Cmd_ServerInfo ( )Definition at line 100 of file adm_cmds.cpp.
References CNetService::eIncludePenalized, eJSON, eNetCacheAdmin, eNetScheduleAdmin, eNetStorageAdmin, eRaw, eReadOnlyAdminCmd, CNetService::eSingleLineOutput, eWorkerNodeAdmin, g_PrintJSON(), g_ServerInfoToJson(), CNetServerInfo::GetNextAttribute(), CNetCacheAPI::GetService(), CNetScheduleAPI::GetService(), CNetService::IsLoadBalanced(), CNetService::Iterate(), m_APIClass, m_NetCacheAPI, m_NetScheduleAPI, m_Opts, NcbiCout, CGridCommandLineInterfaceApp::SOptions::output_format, CNetService::PrintCmdOutput(), PrintNetStorageServerInfo(), and SetUp_AdminCmd().
◆ Cmd_SetAttr() int CGridCommandLineInterfaceApp::Cmd_SetAttr ( )Definition at line 429 of file nst_cmds.cpp.
References CGridCommandLineInterfaceApp::SOptions::attr_name, CGridCommandLineInterfaceApp::SOptions::attr_value, ATTR_VALUE_ARG, eAttrValue, eInput, eInputFile, GetNetStorageObject(), GRID_APP_NAME, CGridCommandLineInterfaceApp::SOptions::input, INPUT_FILE_OPTION, INPUT_OPTION, CGridCommandLineInterfaceApp::SOptions::input_stream, IsOptionSet(), m_Opts, CNetStorageObject::SetAttribute(), and rapidjson::value.
◆ Cmd_Shutdown() int CGridCommandLineInterfaceApp::Cmd_Shutdown ( )Definition at line 526 of file adm_cmds.cpp.
References DIE_OPTION, DRAIN_OPTION, eAdminCmdWithSideEffects, CNetScheduleAdmin::eDie, eDie, CNetScheduleAdmin::eDrain, CNetCacheAdmin::eDrain, eDrain, eNetCacheAdmin, eNetScheduleAdmin, eNetStorageAdmin, CNetCacheAdmin::eNormalShutdown, eNow, CNetScheduleAdmin::eShutdownImmediate, eWorkerNodeAdmin, GRID_APP_NAME, IsOptionSet(), m_APIClass, m_NetCacheAdmin, m_NetScheduleAdmin, NOW_OPTION, OPTION_N, SetUp_AdminCmd(), ShutdownNetStorageServer(), CNetScheduleAdmin::ShutdownServer(), and CNetCacheAdmin::ShutdownServer().
◆ Cmd_Stats() int CGridCommandLineInterfaceApp::Cmd_Stats ( )Definition at line 156 of file adm_cmds.cpp.
References CGridCommandLineInterfaceApp::SOptions::aggregation_interval, eJSON, eNetCacheAdmin, eNetScheduleAdmin, ePreviousInterval, eReadOnlyAdminCmd, CNetCacheAdmin::eReturnCompletePeriod, CNetCacheAdmin::eReturnCurrentPeriod, eWorkerNodeAdmin, g_PrintJSON(), g_WorkerNodeInfoToJson(), CNetServiceIterator::GetServer(), CNetScheduleAPI::GetService(), IsOptionSet(), CNetService::Iterate(), m_APIClass, m_NetCacheAdmin, m_NetScheduleAdmin, m_NetScheduleAPI, m_Opts, NcbiCout, CGridCommandLineInterfaceApp::SOptions::output_format, PrintNetScheduleStats(), CNetScheduleAdmin::PrintServerStatistics(), CNetCacheAdmin::PrintStat(), and SetUp_AdminCmd().
◆ Cmd_SubmitJob() int CGridCommandLineInterfaceApp::Cmd_SubmitJob ( )Definition at line 570 of file ns_cmds.cpp.
References CNetScheduleNewJob::affinity, CGridCommandLineInterfaceApp::SOptions::affinity, CCompoundID::AppendCurrentTime(), CCompoundID::AppendRandom(), DumpJobInputOutput(), eBatch, eCIC_GenericID, CNetScheduleAPI::eDone, eDumpNSNotifications, CNetScheduleAPI::eExclusiveJob, eExclusiveJob, eJobInputDir, eNetScheduleSubmitter, eRemoteAppArgs, eRemoteAppStdOut, eWaitTimeout, CNetScheduleNewJob::group, CNetScheduleNewJob::input, IsOptionSet(), CGridCommandLineInterfaceApp::SOptions::job_group, CNetScheduleNewJob::job_id, CGridCommandLineInterfaceApp::SOptions::job_input_dir, JOB_INPUT_DIR_OPTION, m_CompoundIDPool, m_GridClient, m_NetCacheAPI, m_NetScheduleAPI, m_NetScheduleSubmitter, m_Opts, MarkOptionAsSet(), max(), NCBI_THROW, CCompoundIDPool::NewID(), NULL, CNetScheduleJob::output, PrintJobStatusNotification(), PrintLine(), CNetScheduleNotificationHandler::PrintPortNumber(), CNetScheduleJobSerializer::SaveJobInput(), SetUp_NetScheduleCmd(), CNetScheduleAPI::StatusToString(), CNetScheduleNotificationHandler::SubmitJob(), SubmitJob_Batch(), CGridCommandLineInterfaceApp::SOptions::timeout, CCompoundID::ToString(), CNetScheduleNotificationHandler::WaitForJobCompletion(), CNetScheduleNotificationHandler::WaitForNotification(), and x_LoadJobInput().
◆ Cmd_Suspend() int CGridCommandLineInterfaceApp::Cmd_Suspend ( )Definition at line 469 of file adm_cmds.cpp.
References eAdminCmdWithSideEffects, eNetScheduleAdmin, ePullback, eWaitForJobCompletion, eWorkerNodeAdmin, CNetServer::ExecWithRetry(), g_SuspendWorkerNode(), CNetServiceIterator::GetServer(), CNetScheduleAPI::GetService(), IsOptionSet(), CNetService::Iterate(), m_APIClass, m_NetScheduleAPI, m_Opts, NetSchedule_SuspendResume(), CNetServerMultilineCmdOutput::ReadLine(), SetUp_AdminCmd(), SleepMilliSec(), NStr::StartsWith(), NStr::StringToUInt(), and CGridCommandLineInterfaceApp::SOptions::timeout.
◆ Cmd_UpdateJob() int CGridCommandLineInterfaceApp::Cmd_UpdateJob ( )Definition at line 1151 of file ns_cmds.cpp.
References eExtendLifetime, eNetScheduleAPI, eProgressMessage, CGridCommandLineInterfaceApp::SOptions::extend_lifetime_by, CNetScheduleAPI::GetExecutor(), CGridCommandLineInterfaceApp::SOptions::id, IsOptionSet(), CNetScheduleNewJob::job_id, CNetScheduleExecutor::JobDelayExpiration(), m_NetScheduleAPI, m_Opts, CGridCommandLineInterfaceApp::SOptions::progress_message, CNetScheduleJob::progress_msg, CNetScheduleExecutor::PutProgressMsg(), and SetUp_NetScheduleCmd().
◆ Cmd_Upload() int CGridCommandLineInterfaceApp::Cmd_Upload ( )Definition at line 281 of file nst_cmds.cpp.
References buffer, CNetStorageObject::Close(), eInput, eOptionalID, eRead, CNetStorageObject::GetLoc(), GetNetStorageObject(), CGridCommandLineInterfaceApp::SOptions::id, CGridCommandLineInterfaceApp::SOptions::input, CGridCommandLineInterfaceApp::SOptions::input_stream, IO_BUFFER_SIZE, IsOptionSet(), m_Opts, NCBI_THROW, PrintLine(), CNetStorageObject::SetExpiration(), CGridCommandLineInterfaceApp::SOptions::ttl, and CNetStorageObject::Write().
◆ Cmd_WatchJob() int CGridCommandLineInterfaceApp::Cmd_WatchJob ( )Definition at line 660 of file ns_cmds.cpp.
References eDumpNSNotifications, CNetScheduleAPI::eJobNotFound, eNetScheduleSubmitter, CNetScheduleAPI::ePending, CNetScheduleAPI::eRunning, eWaitForJobEventAfter, eWaitForJobStatus, eWaitTimeout, GRID_APP_NAME, CGridCommandLineInterfaceApp::SOptions::id, IsOptionSet(), CGridCommandLineInterfaceApp::SOptions::job_status_mask, CGridCommandLineInterfaceApp::SOptions::last_event_index, m_NetScheduleAPI, m_Opts, PrintJobStatusNotification(), CNetScheduleNotificationHandler::PrintPortNumber(), CNetScheduleNotificationHandler::RequestJobWatching(), SetUp_NetScheduleCmd(), CNetScheduleAPI::StatusToString(), CGridCommandLineInterfaceApp::SOptions::timeout, WAIT_TIMEOUT_OPTION, CNetScheduleNotificationHandler::WaitForJobEvent(), CNetScheduleNotificationHandler::WaitForNotification(), and WATCHJOB_COMMAND.
◆ Cmd_WhatIs() int CGridCommandLineInterfaceApp::Cmd_WhatIs ( )Definition at line 41 of file misc_cmds.cpp.
References eHumanReadable, eJSON, g_PrintJSON(), g_WhatIs(), CNetCacheKey::GetVersion(), GRID_APP_NAME, CGridCommandLineInterfaceApp::SOptions::id, m_CompoundIDPool, m_Opts, CJsonNode::NewObjectNode(), CGridCommandLineInterfaceApp::SOptions::output_format, CNetCacheKey::ParseBlobKey(), CNetScheduleKey::ParseJobKey(), PrintBlobMeta(), CPrintJobInfo::ProcessJobMeta(), result, CJsonNode::SetString(), CNetStorageObjectLoc::ToJSON(), TOKEN_TYPE__NETCACHE_BLOB_KEY, TOKEN_TYPE__NETSCHEDULE_JOB_KEY, TOKEN_TYPE__NETSTORAGEOBJECT_LOC, and CNetScheduleKey::version.
◆ DumpJobInputOutput() int CGridCommandLineInterfaceApp::DumpJobInputOutput ( const string & data_or_blob_id ) privateDefinition at line 747 of file ns_cmds.cpp.
References buffer, CRemoteAppRequest::Deserialize(), CStringOrBlobStorageRWException::eInvalidFlag, eRemoteAppStdErr, eRemoteAppStdIn, eRemoteAppStdOut, Error(), eRW_Eof, CRWStreambuf::fLeakExceptions, CRWStreambuf::fOwnReader, CException::GetErrCode(), CRemoteAppResult::GetStdErr(), CRemoteAppRequest::GetStdInForRead(), CRemoteAppResult::GetStdOut(), GRID_APP_NAME, IO_BUFFER_SIZE, IsOptionSet(), m_NetCacheAPI, m_Opts, CGridCommandLineInterfaceApp::SOptions::output_stream, CRemoteAppResult::Receive(), and s_DumpStdStream().
Referenced by Cmd_GetJobInput(), Cmd_GetJobOutput(), Cmd_ReadJob(), Cmd_SubmitJob(), and PrintJobAttrsAndDumpInput().
◆ GetNetStorageObject()Definition at line 158 of file nst_cmds.cpp.
References CheckNetStorageOptions(), CNetStorage::Create(), eID, eNetStorageAPI, eOptionalID, eUserKey, CGridCommandLineInterfaceApp::SOptions::id, IsOptionSet(), m_NetStorage, m_NetStorageByKey, m_Opts, CGridCommandLineInterfaceApp::SOptions::netstorage_flags, CNetStorage::Open(), CNetStorageByKey::Open(), and SetUp_NetStorageCmd().
Referenced by Cmd_Download(), Cmd_GetAttr(), Cmd_GetAttrList(), Cmd_NetStorageObjectInfo(), Cmd_SetAttr(), and Cmd_Upload().
◆ IsOptionAccepted() [1/2] bool CGridCommandLineInterfaceApp::IsOptionAccepted ( EOption option ) const inlineprivate ◆ IsOptionAccepted() [2/2] int CGridCommandLineInterfaceApp::IsOptionAccepted ( EOption option, int mask ) const inlineprivate ◆ IsOptionAcceptedAndSetImplicitly() bool CGridCommandLineInterfaceApp::IsOptionAcceptedAndSetImplicitly ( EOption option ) const inlineprivate ◆ IsOptionAcceptedButNotSet() bool CGridCommandLineInterfaceApp::IsOptionAcceptedButNotSet ( EOption option ) const inlineprivate ◆ IsOptionExplicitlySet() [1/2] bool CGridCommandLineInterfaceApp::IsOptionExplicitlySet ( int option ) const inlineprivate ◆ IsOptionExplicitlySet() [2/2] int CGridCommandLineInterfaceApp::IsOptionExplicitlySet ( int option, int mask ) const inlineprivate ◆ IsOptionSet() [1/2] bool CGridCommandLineInterfaceApp::IsOptionSet ( int option ) const inlineprivateDefinition at line 421 of file grid_cli.hpp.
References m_Opts, option, CGridCommandLineInterfaceApp::SOptions::option_flags, and OPTION_SET.
Referenced by Automation_PipeServer(), CheckNetStorageOptions(), Cmd_Automate(), Cmd_BlobInfo(), Cmd_CancelJob(), Cmd_CommitJob(), Cmd_CreateLoc(), Cmd_Discover(), Cmd_Exec(), Cmd_GetBlob(), Cmd_JobInfo(), Cmd_Login(), Cmd_PutBlob(), Cmd_QueueInfo(), Cmd_ReadJob(), Cmd_Relocate(), Cmd_RemoveBlob(), Cmd_RemoveNetStorageObject(), Cmd_Replay(), Cmd_RequestJob(), Cmd_SetAttr(), Cmd_Shutdown(), Cmd_Stats(), Cmd_SubmitJob(), Cmd_Suspend(), Cmd_UpdateJob(), Cmd_Upload(), Cmd_WatchJob(), DumpJobInputOutput(), GetNetStorageObject(), NetSchedule_SuspendResume(), NetScheduleSanityCheck(), PrintNetScheduleStats(), PrintNetScheduleStats_Generic(), Run(), SetUp_NetCache(), SetUp_NetCacheCmd(), SetUp_NetScheduleCmd(), SetUp_NetStorageCmd(), ShutdownNetStorageServer(), SubmitJob_Batch(), and x_LoadJobInput().
◆ IsOptionSet() [2/2] int CGridCommandLineInterfaceApp::IsOptionSet ( int option, int mask ) const inlineprivate ◆ JobInfo_PrintStatus() ◆ MarkOptionAsAccepted() void CGridCommandLineInterfaceApp::MarkOptionAsAccepted ( int option ) inlineprivate ◆ MarkOptionAsExplicitlySet() void CGridCommandLineInterfaceApp::MarkOptionAsExplicitlySet ( int option ) inlineprivate ◆ MarkOptionAsSet() void CGridCommandLineInterfaceApp::MarkOptionAsSet ( int option ) inlineprivate ◆ NetCacheSanityCheck() int CGridCommandLineInterfaceApp::NetCacheSanityCheck ( ) privateDefinition at line 204 of file adm_cmds.cpp.
References CHECK_FAILED_RETVAL, CNetCacheAPI::eCaching_Disable, CNetCacheAPI::GetBlobSize(), CNetCacheAPI::GetData(), CNetCacheAPI::GetReader(), ncbi::grid::netcache::search::fields::key, m_NetCacheAPI, nc_caching_mode, NcbiCerr, NcbiCout, NcbiEndl, CNetCacheAPI::PutData(), and util::strcmp().
Referenced by Cmd_SanityCheck().
◆ NetSchedule_SuspendResume() void CGridCommandLineInterfaceApp::NetSchedule_SuspendResume ( bool suspend ) private ◆ NetScheduleSanityCheck() int CGridCommandLineInterfaceApp::NetScheduleSanityCheck ( ) privateDefinition at line 269 of file adm_cmds.cpp.
References CNetScheduleAdmin::CreateQueue(), CNetScheduleAdmin::DeleteQueue(), CNetScheduleAPI::eCanceled, CNetScheduleAPI::eDone, CNetScheduleAPI::eFailed, CNetScheduleAPI::eJobNotFound, eNetScheduleExecutor, CNetScheduleAPI::ePending, eQueue, eQueueClass, eReadOnlyAdminCmd, ERR_POST, CNetScheduleJob::error_msg, CNetScheduleAPI::eRunning, CNetScheduleExecutor::GetJob(), CNetScheduleSubmitter::GetJobDetails(), CNetScheduleAdmin::GetQueueList(), GRID_APP_NAME, CNetScheduleNewJob::input, input(), IsOptionSet(), ITERATE, CNetScheduleNewJob::job_id, m_NetScheduleAdmin, m_NetScheduleExecutor, m_NetScheduleSubmitter, m_Opts, NETSCHEDULE_CHECK_QUEUE, CNetScheduleJob::output, output, CNetScheduleExecutor::PutFailure(), CNetScheduleExecutor::PutResult(), CGridCommandLineInterfaceApp::SOptions::queue, CGridCommandLineInterfaceApp::SOptions::queue_class, QUEUE_CLASS_OPTION, QUEUE_OPTION, CNetScheduleJob::ret_code, CNetScheduleExecutor::ReturnJob(), SetUp_NetScheduleCmd(), and CNetScheduleSubmitter::SubmitJob().
Referenced by Cmd_SanityCheck().
◆ NetStorage_PrintServerReply() void CGridCommandLineInterfaceApp::NetStorage_PrintServerReply ( CJsonNode & server_reply ) private ◆ OnWarning() ◆ ParseLoginToken() bool CGridCommandLineInterfaceApp::ParseLoginToken ( const string & token ) privateDefinition at line 1793 of file grid_cli.cpp.
References CGridCommandLineInterfaceApp::SOptions::app_uid, CGridCommandLineInterfaceApp::SOptions::auth, CGridCommandLineInterfaceApp::SOptions::cache_name, CGridCommandLineInterfaceApp::SOptions::client_node, CGridCommandLineInterfaceApp::SOptions::client_session, DEFAULT_APP_UID, eAppUID, eAuth, eCache, eCIT_Label, eClientNode, eClientSession, eEnableMirroring, eFileTrackSite, eFileTrackToken, eNetCache, eNetSchedule, eNoConnRetries, eQueue, CCompoundIDPool::FromString(), CGridCommandLineInterfaceApp::SOptions::ft_site, CGridCommandLineInterfaceApp::SOptions::ft_token, CCompoundIDField::GetBoolean(), CCompoundIDField::GetDatabaseName(), CCompoundID::GetFirst(), CCompoundIDField::GetHost(), CCompoundIDField::GetID(), CCompoundIDField::GetLabel(), CCompoundIDField::GetNextHomogeneous(), CCompoundIDField::GetNextNeighbor(), CCompoundIDField::GetServiceName(), CCompoundIDField::GetString(), CCompoundIDField::GetTimestamp(), GRID_APP_NAME, kEmptyStr, label, LOGIN_TOKEN_ALLOW_XSITE_CONN, LOGIN_TOKEN_APP_UID_FIELD, LOGIN_TOKEN_AUTH_FIELD, LOGIN_TOKEN_ENABLE_MIRRORING, LOGIN_TOKEN_FILETRACK_SITE, LOGIN_TOKEN_FILETRACK_TOKEN, LOGIN_TOKEN_HOST_FIELD, LOGIN_TOKEN_ICACHE_NAME_FIELD, LOGIN_TOKEN_NETCACHE_FIELD, LOGIN_TOKEN_NETSCHEDULE_FIELD, LOGIN_TOKEN_NO_CONN_RETRIES, LOGIN_TOKEN_QUEUE_FIELD, LOGIN_TOKEN_SESSION_PID_FIELD, LOGIN_TOKEN_SESSION_TIMESTAMP_FIELD, LOGIN_TOKEN_SESSION_UID_FIELD, LOGIN_TOKEN_USER_FIELD, m_CompoundIDPool, m_Opts, MarkOptionAsSet(), CGridCommandLineInterfaceApp::SOptions::nc_service, CGridCommandLineInterfaceApp::SOptions::ns_service, NStr::NumericToString(), and CGridCommandLineInterfaceApp::SOptions::queue.
Referenced by Run().
◆ PrepareRemoteAppJobInput() void CGridCommandLineInterfaceApp::PrepareRemoteAppJobInput ( size_t max_embedded_input_size, const string & args, CNcbiIstream & remote_app_stdin, CNcbiOstream & job_input_ostream ) private ◆ PrintBlobMeta() ◆ PrintJobAttrsAndDumpInput() ◆ PrintJobStatusNotification() ◆ PrintLine() void CGridCommandLineInterfaceApp::PrintLine ( const string & line ) static ◆ PrintNetScheduleStats() int CGridCommandLineInterfaceApp::PrintNetScheduleStats ( ) privateDefinition at line 43 of file ns_cmd_impl.cpp.
References CGridCommandLineInterfaceApp::SOptions::affinity, cmd, eActiveJobCount, eAffinity, eAffinityInfo, eBrief, eClientInfo, eHumanReadable, CNetService::eIncludePenalized, eJobGroup, eJobGroupInfo, eJobsByStatus, eJSON, CNetService::eMultilineOutput, eNetScheduleStatAffinities, eNetScheduleStatClients, eNetScheduleStatJobGroups, eNetScheduleStatNotifications, eNotificationInfo, eQueue, eRaw, CNetScheduleAdmin::eStatisticsAll, CNetScheduleAdmin::eStatisticsBrief, format, g_LegacyStatToJson(), g_PrintJSON(), CNetScheduleAPI::GetService(), GRID_APP_NAME, IsOptionSet(), CNetService::Iterate(), ITERATE, CGridCommandLineInterfaceApp::SOptions::job_group, m_NetScheduleAdmin, m_NetScheduleAPI, m_Opts, NcbiCout, CJsonNode::NewObjectNode(), CGridCommandLineInterfaceApp::SOptions::output_format, NStr::PrintableString(), CNetService::PrintCmdOutput(), PrintNetScheduleStats_Generic(), CNetScheduleAdmin::PrintServerStatistics(), result, and CNetScheduleAdmin::StatusSnapshot().
Referenced by Cmd_Stats().
◆ PrintNetScheduleStats_Generic()Definition at line 133 of file ns_cmd_impl.cpp.
References cmd, CNetService::eIncludePenalized, eJSON, CNetService::eMultilineOutput, eVerbose, g_GenericStatToJson(), g_GetNetScheduleStatCommand(), g_PrintJSON(), CNetScheduleAPI::GetService(), IsOptionSet(), CNetService::Iterate(), m_NetScheduleAPI, m_Opts, NcbiCout, CJsonNode::NewObjectNode(), CGridCommandLineInterfaceApp::SOptions::output_format, CNetService::PrintCmdOutput(), and result.
Referenced by PrintNetScheduleStats().
◆ PrintNetStorageServerConfig() int CGridCommandLineInterfaceApp::PrintNetStorageServerConfig ( ) private ◆ PrintNetStorageServerInfo() int CGridCommandLineInterfaceApp::PrintNetStorageServerInfo ( ) privateDefinition at line 196 of file nst_cmds.cpp.
References eHumanReadable, CNetService::eIncludePenalized, CNetStorageAdmin::ExchangeJson(), g_ExecToJson(), g_PrintJSON(), CNetServer::GetServerAddress(), CNetStorageAdmin::GetService(), CNetService::IsLoadBalanced(), CNetService::Iterate(), m_NetStorageAdmin, m_Opts, CNetStorageAdmin::MkNetStorageRequest(), NetStorage_PrintServerReply(), CGridCommandLineInterfaceApp::SOptions::output_format, and NNetStorage::RemoveStdReplyFields().
Referenced by Cmd_ServerInfo().
◆ PrintServerAddress() void CGridCommandLineInterfaceApp::PrintServerAddress ( CNetServer server ) private ◆ ReadFromCin() void CGridCommandLineInterfaceApp::ReadFromCin ( ) private ◆ ReconfigureNetStorageServer() int CGridCommandLineInterfaceApp::ReconfigureNetStorageServer ( ) private ◆ Run() int CGridCommandLineInterfaceApp::Run ( ) virtualRun the application.
It is defined as a pure virtual method – so you must(!) supply the Run() method to implement the application-specific logic.
Implements CNcbiApplicationAPI.
Definition at line 1299 of file grid_cli.cpp.
References _ASSERT, ABOUT_SWITCH_ARG, CCommandLineParser::AddAssociation(), CCommandLineParser::AddCommand(), CCommandLineParser::AddCommandCategory(), CCommandLineParser::AddOption(), CGridCommandLineInterfaceApp::SOptions::SNCID::AddPart(), CGridCommandLineInterfaceApp::SOptions::affinity, CGridCommandLineInterfaceApp::SOptions::aggregation_interval, CNetService::AllowXSiteConnections(), ANY_JOB_STATUS, CGridCommandLineInterfaceApp::SOptions::app_domain, CGridCommandLineInterfaceApp::SOptions::app_uid, CGridCommandLineInterfaceApp::SOptions::attr_name, CGridCommandLineInterfaceApp::SOptions::attr_value, CGridCommandLineInterfaceApp::SOptions::auth, CGridCommandLineInterfaceApp::SOptions::auth_token, CGridCommandLineInterfaceApp::SOptions::batch_size, CGridCommandLineInterfaceApp::SOptions::cache_name, SCommandCategoryDefinition::cat_id, SCommandDefinition::cat_id, CGridCommandLineInterfaceApp::SOptions::client_node, CGridCommandLineInterfaceApp::SOptions::client_session, SCommandDefinition::cmd_proc, CGridCommandLineInterfaceApp::SOptions::command, NStr::CompareNocase(), COutputFileHelper::CreateTemporaryFile(), debug(), SOptionDefinition::description, eAdministrativeCommand, eAffinity, eAffinityList, eAggregationInterval, eAppUID, eAttrName, eAttrValue, eAuth, eAuthToken, eBatch, eCache, eCacheable, eCacheArg, eClientNode, eClientSession, eCommand, eConfirmRead, eDiag_Trace, eDPF_All, eDPF_Default, eDPF_ErrorID, eDPF_File, eDPF_Line, eDPF_Location, eDPF_LongFilename, eDPF_OmitInfoSev, eDT_Enable, eErrorMessage, eExtendedCLICommand, eExtendedOptionDelimiter, eExtendLifetime, eFailJob, eFailRead, eFastStorage, eFileTrackSite, eFileTrackToken, eID, eInput, eInputFile, eJobCount, eJobGroup, eJobId, eJobInputDir, eJobOutput, eJobOutputBlob, eJobOutputDir, eJobStatus, eLimit, eLoginToken, eMovable, eNamespace, eNCID, eNetCache, eNetSchedule, eNetStorage, eNoConnRetries, eNoMetaData, eNoServerCheck, eNumberOfCommandCategories, eNumberOfOptions, eOff, eOffset, eOn, eOptionalID, eOptionalNCID, eOutputFile, eOutputFormat, ePassword, ePersistent, eProgressMessage, eProtocolDump, eQueue, eQueueArg, eQueueClass, eQueueClassArg, eQueueDescription, eRemoteAppArgs, eReturnCode, eRollbackRead, CGridCommandLineInterfaceApp::SOptions::error_message, eServiceName, eSize, eStartAfterJob, eSwitchArg, eTargetQueueArg, eTTL, eUntypedArg, eWaitForJobEventAfter, eWaitForJobStatus, eWaitTimeout, eWorkerNode, CGridCommandLineInterfaceApp::SOptions::extend_lifetime_by, fNST_Cacheable, fNST_Fast, fNST_Movable, fNST_NoMetaData, fNST_Persistent, format, CGridCommandLineInterfaceApp::SOptions::ft_site, CGridCommandLineInterfaceApp::SOptions::ft_token, Get(), CNcbiApplicationAPI::GetEnvironment(), CException::GetMsg(), CNcbiApplicationAPI::GetRWConfig(), GRID_APP_NAME, GRID_APP_VERSION_INFO, IRegistry::HasEntry(), i, CGridCommandLineInterfaceApp::SOptions::id, CGridCommandLineInterfaceApp::SOptions::input, input_file, INPUT_FILE_OPTION, INPUT_OPTION, CGridCommandLineInterfaceApp::SOptions::input_stream, IsOptionAcceptedButNotSet(), IsOptionSet(), CGridCommandLineInterfaceApp::SOptions::job_count, CGridCommandLineInterfaceApp::SOptions::job_group, CGridCommandLineInterfaceApp::SOptions::job_input_dir, CGridCommandLineInterfaceApp::SOptions::job_output, CGridCommandLineInterfaceApp::SOptions::job_output_blob, CGridCommandLineInterfaceApp::SOptions::job_output_dir, CGridCommandLineInterfaceApp::SOptions::job_status_mask, CGridCommandLineInterfaceApp::SOptions::job_statuses, kEmptyStr, CGridCommandLineInterfaceApp::SOptions::last_event_index, CGridCommandLineInterfaceApp::SOptions::limit, LOGIN_TOKEN_ENV, m_AdminMode, m_ArgC, m_ArgV, m_Opts, MarkOptionAsAccepted(), MarkOptionAsExplicitlySet(), memmove, SOptionDefinition::name_variants, SCommandDefinition::name_variants, CGridCommandLineInterfaceApp::SOptions::nc_service, NcbiCerr, NcbiSysChar_putenv, CGridCommandLineInterfaceApp::SOptions::ncid, CGridCommandLineInterfaceApp::SOptions::netstorage_flags, CCommandLineParser::NextOption(), CGridCommandLineInterfaceApp::SOptions::ns_service, CGridCommandLineInterfaceApp::SOptions::nst_service, NULL, CGridCommandLineInterfaceApp::SOptions::offset, CGridCommandLineInterfaceApp::SOptions::on_off_switch, SOptionDefinition::opt_id, CGridCommandLineInterfaceApp::SOptions::option_flags, SCommandDefinition::options, CGridCommandLineInterfaceApp::SOptions::output_format, SCommandDefinition::output_formats, CGridCommandLineInterfaceApp::SOptions::output_stream, CCommandLineParser::Parse(), ParseLoginToken(), CGridCommandLineInterfaceApp::SOptions::password, CGridCommandLineInterfaceApp::SOptions::progress_message, CGridCommandLineInterfaceApp::SOptions::protocol_dump, CGridCommandLineInterfaceApp::SOptions::queue, CGridCommandLineInterfaceApp::SOptions::queue_class, CGridCommandLineInterfaceApp::SOptions::queue_description, ReadFromCin(), CGridCommandLineInterfaceApp::SOptions::remote_app_args, CException::ReportThis(), CGridCommandLineInterfaceApp::SOptions::return_code, s_CategoryDefinitions, s_CommandDefinitions, s_ConnDebugEnv, s_GetLatency(), s_OptionDefinitions, s_OutputFormats, COutputFileHelper::SaveOutputFile(), CGridCommandLineInterfaceApp::SOptions::service_name, IRWRegistry::Set(), SetDiagPostAllFlags(), SetDiagPostLevel(), SetDiagTrace(), SetDiagTraceAllFlags(), SetDiagUserAndHost(), CGridCommandLineInterfaceApp::SOptions::size, CGridCommandLineInterfaceApp::SOptions::start_after_job, util::strcmp(), strerror(), NStr::StringToInt(), StringToJobStatus(), NStr::StringToSizet(), NStr::StringToUInt(), NStr::StringToUInt8(), SCommandDefinition::synopsis, CGridCommandLineInterfaceApp::SOptions::timeout, SCommandCategoryDefinition::title, TOTAL_NUMBER_OF_COMMANDS, CGridCommandLineInterfaceApp::SOptions::ttl, SOptionDefinition::type, UnsetDiagPostFlag(), SCommandDefinition::usage, and while().
◆ SetUp_AdminCmd()Definition at line 41 of file adm_cmds.cpp.
References eNetCache, eNetSchedule, eNetScheduleAdmin, eNetStorage, eNetStorageAdmin, eWorkerNode, eWorkerNodeAdmin, IsOptionAccepted(), IsOptionExplicitlySet(), NCBI_THROW, OPTION_N, SetUp_NetCacheAdminCmd(), SetUp_NetScheduleCmd(), and SetUp_NetStorageCmd().
Referenced by Cmd_Drain(), Cmd_Exec(), Cmd_GetConf(), Cmd_Health(), Cmd_Reconf(), Cmd_Resume(), Cmd_SanityCheck(), Cmd_ServerInfo(), Cmd_Shutdown(), Cmd_Stats(), and Cmd_Suspend().
◆ SetUp_NetCache() void CGridCommandLineInterfaceApp::SetUp_NetCache ( ) private ◆ SetUp_NetCacheAdminCmd()Definition at line 113 of file nc_cmds.cpp.
References CGridCommandLineInterfaceApp::SOptions::auth, eNetCache, eNetCacheAdmin, eReadOnlyAdminCmd, CNetCacheAPI::GetAdmin(), IsOptionExplicitlySet(), m_APIClass, m_NetCacheAdmin, m_NetCacheAPI, m_Opts, CGridCommandLineInterfaceApp::SOptions::nc_service, NCBI_THROW, NETCACHE_OPTION, and SetUp_NetCache().
Referenced by Cmd_Purge(), and SetUp_AdminCmd().
◆ SetUp_NetCacheCmd() [1/2] void CGridCommandLineInterfaceApp::SetUp_NetCacheCmd ( ) inlineprivate ◆ SetUp_NetCacheCmd() [2/2] void CGridCommandLineInterfaceApp::SetUp_NetCacheCmd ( bool icache_mode, bool require_version =true
, bool require_service = true
) private
Definition at line 45 of file nc_cmds.cpp.
References CGridCommandLineInterfaceApp::SOptions::auth, CGridCommandLineInterfaceApp::SOptions::cache_name, CACHE_OPTION, eCompatMode, eNetCache, eNetCacheAPI, eNetICacheClient, eNoServerCheck, eOff, ICache::fBestReliability, CNetService::GetServerPool(), CNetCacheAPI::GetService(), IsOptionExplicitlySet(), IsOptionSet(), ncbi::grid::netcache::search::fields::key, CGridCommandLineInterfaceApp::SOptions::SNCID::key, m_APIClass, m_NetCacheAPI, m_NetICacheClient, m_NetScheduleAPI, m_Opts, NStr::MatchesMask(), nc_server_check, CGridCommandLineInterfaceApp::SOptions::nc_service, NCBI_THROW, CGridCommandLineInterfaceApp::SOptions::ncid, NETCACHE_OPTION, CGridCommandLineInterfaceApp::SOptions::SNCID::Parse(), SSocketAddress::Parse(), CNetCacheAPI::SetDefaultParameters(), CNetICacheClient::SetFlags(), SetUp_NetCache(), CNetServerPool::StickToServer(), and CGridCommandLineInterfaceApp::SOptions::SNCID::subkey.
◆ SetUp_NetScheduleCmd()Definition at line 47 of file ns_cmds.cpp.
References _ASSERT, CGridCommandLineInterfaceApp::SOptions::auth, CGridCommandLineInterfaceApp::SOptions::client_node, CGridCommandLineInterfaceApp::SOptions::client_session, CNetScheduleAPIExt::CreateNoCfgLoad(), CNetScheduleAPIExt::CreateWnCompat(), eClientNode, eClientSession, eCompatMode, CNetScheduleAPI::eCT_Admin, eID, eJobGroup, eJobId, eLoginToken, CGridClient::eManualCleanup, eNetSchedule, eNetScheduleAdmin, eNetScheduleAPI, eNetScheduleExecutor, eNetScheduleSubmitter, CGridClient::eProgressMsgOn, eQueue, eReadOnlyAdminCmd, eTargetQueueArg, eWorkerNode, eWorkerNodeAdmin, CNetScheduleAPI::GetAdmin(), CNetScheduleAPI::GetExecutor(), CNetService::GetServerPool(), CNetScheduleAPI::GetService(), CNetScheduleAPI::GetSubmitter(), CGridCommandLineInterfaceApp::SOptions::id, IsOptionAcceptedAndSetImplicitly(), IsOptionExplicitlySet(), IsOptionSet(), CGridCommandLineInterfaceApp::SOptions::job_group, ncbi::grid::netcache::search::fields::key, LOGIN_COMMAND, LOGIN_TOKEN_ENV, m_AdminMode, m_APIClass, m_CompoundIDPool, m_GridClient, m_NetCacheAPI, m_NetScheduleAdmin, m_NetScheduleAPI, m_NetScheduleExecutor, m_NetScheduleSubmitter, m_Opts, NCBI_THROW, NETSCHEDULE_OPTION, CGridCommandLineInterfaceApp::SOptions::ns_service, NStr::NumericToString(), OnWarning(), SSocketAddress::Parse(), CGridCommandLineInterfaceApp::SOptions::queue, QUEUE_OPTION, CNetScheduleAPIExt::ReSetClientNode(), CNetScheduleAPIExt::ReSetClientSession(), CNetScheduleAPI::SetClientType(), CNetScheduleExecutor::SetJobGroup(), SetUp_NetCacheCmd(), CNetService::SetWarningHandler(), CNetServerPool::StickToServer(), and CNetScheduleAPIExt::UseOldStyleAuth().
Referenced by Cmd_CancelJob(), Cmd_ClearNode(), Cmd_CommitJob(), Cmd_CreateQueue(), Cmd_DeleteQueue(), Cmd_DumpQueue(), Cmd_GetJobInput(), Cmd_GetJobOutput(), Cmd_GetQueueList(), Cmd_JobInfo(), Cmd_QueueInfo(), Cmd_ReadJob(), Cmd_Replay(), Cmd_RequestJob(), Cmd_ReturnJob(), Cmd_SubmitJob(), Cmd_UpdateJob(), Cmd_WatchJob(), NetScheduleSanityCheck(), and SetUp_AdminCmd().
◆ SetUp_NetStorageCmd()Definition at line 41 of file nst_cmds.cpp.
References CGridCommandLineInterfaceApp::SOptions::app_domain, CGridCommandLineInterfaceApp::SOptions::auth, DEFAULT_APP_UID, DIRECT_MODE_OPTION, eAuth, eDirectMode, CNetStorageObjectLoc::eFileTrack_DevSite, CNetStorageObjectLoc::eFileTrack_ProdSite, CNetStorageObjectLoc::eFileTrack_QASite, eFileTrackSite, eNamespace, eNetCache, eNetStorage, eNetStorageAdmin, eNFL_NetCache, eNoMetaData, eObjectKey, eUserKey, CGridCommandLineInterfaceApp::SOptions::ft_site, CGridCommandLineInterfaceApp::SOptions::ft_token, CNetStorageObjectLoc::GetAppDomain(), GetDiagContext(), CNetStorageObjectLoc::GetFileTrackSite(), CDiagContext::GetHost(), CNetStorageObjectLoc::GetLocation(), CNetStorageObjectLoc::GetNCServiceName(), CNetStorageObjectLoc::GetServiceName(), CDiagContext::GetUsername(), CNetStorageObjectLoc::HasServiceName(), CGridCommandLineInterfaceApp::SOptions::id, IsOptionSet(), m_APIClass, m_NetStorage, m_NetStorageAdmin, m_NetStorageByKey, m_Opts, MarkOptionAsSet(), NAMESPACE_OPTION, CGridCommandLineInterfaceApp::SOptions::nc_service, NCBI_THROW, NCBI_THROW_FMT, CGridCommandLineInterfaceApp::SOptions::netstorage_flags, NETSTORAGE_OPTION, CGridCommandLineInterfaceApp::SOptions::nst_service, OBJECT_KEY_OPTION, NStr::URLEncode(), and USER_KEY_OPTION.
Referenced by Cmd_Relocate(), Cmd_RemoveNetStorageObject(), GetNetStorageObject(), and SetUp_AdminCmd().
◆ ShutdownNetStorageServer() int CGridCommandLineInterfaceApp::ShutdownNetStorageServer ( ) private ◆ StringToJobStatus() ◆ SubmitJob_Batch() void CGridCommandLineInterfaceApp::SubmitJob_Batch ( ) privateDefinition at line 482 of file ns_cmds.cpp.
References CGridCommandLineInterfaceApp::SOptions::affinity, SBatchSubmitRecord::affinity, CGridCommandLineInterfaceApp::SOptions::batch_size, CheckJobInputStream(), CNetScheduleAPI::eExclusiveJob, eJobGroup, SBatchSubmitRecord::exclusive_job, CGridJobBatchSubmitter::GetBatch(), CGridJobBatchSubmitter::GetOStream(), CGridCommandLineInterfaceApp::SOptions::input_stream, IsOptionSet(), ITERATE, CGridCommandLineInterfaceApp::SOptions::job_group, SBatchSubmitRecord::job_input, SBatchSubmitRecord::LoadNextRecord(), m_GridClient, m_Opts, CGridCommandLineInterfaceApp::SOptions::output_stream, CGridJobBatchSubmitter::PrepareNextJob(), PrepareRemoteAppJobInput(), SBatchSubmitRecord::remote_app_args, SBatchSubmitRecord::remote_app_args_defined, CGridJobBatchSubmitter::Reset(), CGridJobBatchSubmitter::SetJobAffinity(), CGridJobBatchSubmitter::SetJobMask(), and CGridJobBatchSubmitter::Submit().
Referenced by Cmd_SubmitJob().
◆ x_LoadJobInput() void CGridCommandLineInterfaceApp::x_LoadJobInput ( size_t max_embedded_input_size, CNcbiOstream & job_input_ostream ) private ◆ m_AdminMode bool CGridCommandLineInterfaceApp::m_AdminMode private ◆ m_APIClassReferenced by Cmd_BlobInfo(), Cmd_Drain(), Cmd_Exec(), Cmd_GetBlob(), Cmd_GetConf(), Cmd_Health(), Cmd_PutBlob(), Cmd_Reconf(), Cmd_RemoveBlob(), Cmd_Resume(), Cmd_SanityCheck(), Cmd_ServerInfo(), Cmd_Shutdown(), Cmd_Stats(), Cmd_Suspend(), SetUp_NetCacheAdminCmd(), SetUp_NetCacheCmd(), SetUp_NetScheduleCmd(), and SetUp_NetStorageCmd().
◆ m_ArgC int CGridCommandLineInterfaceApp::m_ArgC private ◆ m_ArgV const char** CGridCommandLineInterfaceApp::m_ArgV private ◆ m_CompoundIDPool ◆ m_GridClient unique_ptr<CGridClient> CGridCommandLineInterfaceApp::m_GridClient private ◆ m_NetCacheAdmin ◆ m_NetCacheAPIDefinition at line 446 of file grid_cli.hpp.
Referenced by Cmd_BlobInfo(), Cmd_CommitJob(), Cmd_Exec(), Cmd_GetBlob(), Cmd_PutBlob(), Cmd_RemoveBlob(), Cmd_Replay(), Cmd_ServerInfo(), Cmd_SubmitJob(), DumpJobInputOutput(), NetCacheSanityCheck(), SetUp_NetCacheAdminCmd(), SetUp_NetCacheCmd(), and SetUp_NetScheduleCmd().
◆ m_NetICacheClient ◆ m_NetScheduleAdminDefinition at line 450 of file grid_cli.hpp.
Referenced by Cmd_CancelJob(), Cmd_CreateQueue(), Cmd_DeleteQueue(), Cmd_Drain(), Cmd_DumpQueue(), Cmd_GetConf(), Cmd_GetQueueList(), Cmd_Health(), Cmd_JobInfo(), Cmd_QueueInfo(), Cmd_Shutdown(), Cmd_Stats(), NetScheduleSanityCheck(), PrintNetScheduleStats(), and SetUp_NetScheduleCmd().
◆ m_NetScheduleAPIDefinition at line 449 of file grid_cli.hpp.
Referenced by Cmd_CancelJob(), Cmd_CommitJob(), Cmd_Exec(), Cmd_GetJobInput(), Cmd_GetJobOutput(), Cmd_JobInfo(), Cmd_QueueInfo(), Cmd_ReadJob(), Cmd_Reconf(), Cmd_Replay(), Cmd_Resume(), Cmd_ServerInfo(), Cmd_Stats(), Cmd_SubmitJob(), Cmd_Suspend(), Cmd_UpdateJob(), Cmd_WatchJob(), NetSchedule_SuspendResume(), PrintNetScheduleStats(), PrintNetScheduleStats_Generic(), SetUp_NetCacheCmd(), and SetUp_NetScheduleCmd().
◆ m_NetScheduleExecutor ◆ m_NetScheduleSubmitter ◆ m_NetStorage ◆ m_NetStorageAdmin ◆ m_NetStorageByKey ◆ m_OptsReferenced by Automation_PipeServer(), Cmd_BlobInfo(), Cmd_CancelJob(), Cmd_CommitJob(), Cmd_CreateLoc(), Cmd_CreateQueue(), Cmd_DeleteQueue(), Cmd_Discover(), Cmd_Download(), Cmd_Drain(), Cmd_DumpQueue(), Cmd_Exec(), Cmd_GetAttr(), Cmd_GetAttrList(), Cmd_GetBlob(), Cmd_GetJobInput(), Cmd_GetJobOutput(), Cmd_JobInfo(), Cmd_Login(), Cmd_Purge(), Cmd_PutBlob(), Cmd_QueueInfo(), Cmd_ReadJob(), Cmd_Relocate(), Cmd_RemoveBlob(), Cmd_RemoveNetStorageObject(), Cmd_Replay(), Cmd_RequestJob(), Cmd_ReturnJob(), Cmd_ServerInfo(), Cmd_SetAttr(), Cmd_Stats(), Cmd_SubmitJob(), Cmd_Suspend(), Cmd_UpdateJob(), Cmd_Upload(), Cmd_WatchJob(), Cmd_WhatIs(), DumpJobInputOutput(), GetNetStorageObject(), IsOptionAccepted(), IsOptionAcceptedAndSetImplicitly(), IsOptionAcceptedButNotSet(), IsOptionExplicitlySet(), IsOptionSet(), JobInfo_PrintStatus(), MarkOptionAsAccepted(), MarkOptionAsExplicitlySet(), MarkOptionAsSet(), NetScheduleSanityCheck(), ParseLoginToken(), PrintNetScheduleStats(), PrintNetScheduleStats_Generic(), PrintNetStorageServerInfo(), ReadFromCin(), Run(), SetUp_NetCacheAdminCmd(), SetUp_NetCacheCmd(), SetUp_NetScheduleCmd(), SetUp_NetStorageCmd(), SubmitJob_Batch(), and x_LoadJobInput().
The documentation for this class was generated from the following files:
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