m_NetScheduleAPI(ns_api)
51 "WorkerNode constructor: 'wn_address' " 52 "must be a host:port combination");
60{
"client_name",
"", },
68 const autown_address = args[
"wn_address"].AsString();
69 const autoclient_name = args[
"client_name"].AsString();
72wn_address, client_name));
86{
"version", ExecMethod<TSelf, &TSelf::ExecVersion>, },
87{
"wn_info", ExecMethod<TSelf, &TSelf::ExecWnInfo>, },
88{
"suspend", ExecMethod<TSelf, &TSelf::ExecSuspend>, {
89{
"pullback_mode",
false, },
92{
"resume", ExecMethod<TSelf, &TSelf::ExecResume>, },
93{
"shutdown", ExecMethod<TSelf, &TSelf::ExecShutdown>, {
99cmds.insert(cmds.end(), base_cmds.begin(), base_cmds.end());
106 auto& reply = io.
reply;
112 auto& reply = io.
reply;
120 const autopullback_mode = args[
"pullback_mode"].AsBoolean();
121 const autotimeout = args[
"timeout"].AsInteger<
unsigned int>();
132 enumEWorkerNodeShutdownMode { eNormalShutdown, eShutdownNow, eKillNode };
145 const autolevel = args[
"level"].AsInteger();
void g_ResumeWorkerNode(CNetServer worker_node)
void g_SuspendWorkerNode(CNetServer worker_node, bool pullback_mode, unsigned timeout)
void Append(CJsonNode::TInstance value)
For an array node, add a new element at the end of the array.
Client API for NCBI NetSchedule server.
EShutdownLevel
Shutdown level.
@ eNormalShutdown
Normal shutdown was requested.
@ eDie
A serious error occurred, the server shuts down.
@ eShutdownImmediate
Urgent shutdown was requested.
void ShutdownServer(EShutdownLevel level=eNormalShutdown)
Shutdown the server daemon.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
CNetScheduleAdmin GetAdmin()
int64_t Int8
8-byte (64-bit) signed integer
pair< TCommands, TCommandChecker > TCommandGroup
vector< CCommand > TCommands
CJsonNode g_ServerInfoToJson(CNetServerInfo server_info, bool server_version_key)
CJsonNode g_WorkerNodeInfoToJson(CNetServer worker_node)
static TInstance CreateWnCompat(const string &, const string &)
static TCommands CallCommands()
void ExecSuspend(const TArguments &args, SInputOutput &io)
void ExecResume(const TArguments &args, SInputOutput &io)
static CAutomationObject * Create(const TArguments &args, CAutomationProc *automation_proc)
static CCommand NewCommand()
void ExecShutdown(const TArguments &args, SInputOutput &io)
void ExecVersion(const TArguments &args, SInputOutput &io)
static TCommands CallCommands()
CNetScheduleAPI m_NetScheduleAPI
void ExecWnInfo(const TArguments &args, SInputOutput &io)
SWorkerNode(CAutomationProc *automation_proc, CNetScheduleAPI ns_api)
static const string kName
static CCommand CallCommand()
CNetScheduleAdmin::EShutdownLevel s_GetWorkerNodeShutdownMode(Int8 level)
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