NCBI C++ ToolKit
ns_automation.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: ns_automation.hpp 80895 2018-01-19 16:46:14Z sadyrovr $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * Authors: Dmitry Kazimirov
27  *
28  * File Description: Automation processor - NetSchedule declarations.
29  *
30  */
31 
32 #ifndef NS_AUTOMATION__HPP
33 #define NS_AUTOMATION__HPP
34 
35 #include "automation.hpp"
36 
38 
39 namespace NAutomation
40 {
41 
43 {
45 
46  virtual const string& GetType() const { return kName; }
47 
49 
50  void ExecSetClientType(const TArguments& args, SInputOutput& io);
51  void ExecSetNodeSession(const TArguments& args, SInputOutput& io);
52  void ExecQueueInfo(const TArguments& args, SInputOutput& io);
53  void ExecQueueClassInfo(const TArguments& args, SInputOutput& io);
54  void ExecReconf(const TArguments& args, SInputOutput& io);
55  void ExecSuspend(const TArguments& args, SInputOutput& io);
56  void ExecResume(const TArguments& args, SInputOutput& io);
57  void ExecShutdown(const TArguments& args, SInputOutput& io);
58  void ExecParseKey(const TArguments& args, SInputOutput& io);
59  void ExecJobInfo(const TArguments& args, SInputOutput& io);
60  void ExecJobCounters(const TArguments& args, SInputOutput& io);
61  void ExecGetServers(const TArguments& args, SInputOutput& io);
62 
63  static CCommand CallCommand();
64  static TCommands CallCommands();
65  static CCommand NewCommand();
66  static CAutomationObject* Create(const TArguments& args, CAutomationProc* automation_proc);
67 
68  static const string kName;
69 
70 protected:
72 
73  SNetScheduleService(CAutomationProc* automation_proc,
74  CNetScheduleAPI ns_api);
75 };
76 
78 {
80 
81  SNetScheduleServer(CAutomationProc* automation_proc,
83 
84  virtual const string& GetType() const { return kName; }
85 
86  void ExecServerStatus(const TArguments& args, SInputOutput& io);
87  void ExecJobGroupInfo(const TArguments& args, SInputOutput& io);
88  void ExecClientInfo(const TArguments& args, SInputOutput& io);
89  void ExecNotificationInfo(const TArguments& args, SInputOutput& io);
90  void ExecAffinityInfo(const TArguments& args, SInputOutput& io);
92 
93  static CCommand CallCommand();
94  static TCommands CallCommands();
95  static CCommand NewCommand();
96  static CAutomationObject* Create(const TArguments& args, CAutomationProc* automation_proc);
97 
98  static const string kName;
99 };
100 
101 }
102 
104 
105 #endif // NS_AUTOMATION__HPP
Client API for NCBI NetSchedule server.
CNetService GetService()
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
vector< CCommand > TCommands
Definition: automation.hpp:134
void ExecServerStatus(const TArguments &args, SInputOutput &io)
void ExecNotificationInfo(const TArguments &args, SInputOutput &io)
SNetScheduleServer(CAutomationProc *automation_proc, CNetScheduleAPIExt ns_api, CNetServer::TInstance server)
virtual const string & GetType() const
void ExecAffinityInfo(const TArguments &args, SInputOutput &io)
void ExecJobGroupInfo(const TArguments &args, SInputOutput &io)
void ExecChangePreferredAffinities(const TArguments &args, SInputOutput &io)
void ExecClientInfo(const TArguments &args, SInputOutput &io)
static CAutomationObject * Create(const TArguments &args, CAutomationProc *automation_proc)
void ExecJobInfo(const TArguments &args, SInputOutput &io)
virtual const string & GetType() const
void ExecQueueClassInfo(const TArguments &args, SInputOutput &io)
SNetScheduleService(CAutomationProc *automation_proc, CNetScheduleAPI ns_api)
void ExecQueueInfo(const TArguments &args, SInputOutput &io)
CNetScheduleAPIExt m_NetScheduleAPI
void ExecJobCounters(const TArguments &args, SInputOutput &io)
void ExecParseKey(const TArguments &args, SInputOutput &io)
void ExecReconf(const TArguments &args, SInputOutput &io)
void ExecShutdown(const TArguments &args, SInputOutput &io)
void ExecGetServers(const TArguments &args, SInputOutput &io)
void ExecSetNodeSession(const TArguments &args, SInputOutput &io)
void ExecSuspend(const TArguments &args, SInputOutput &io)
void ExecSetClientType(const TArguments &args, SInputOutput &io)
static CAutomationObject * Create(const TArguments &args, CAutomationProc *automation_proc)
void ExecResume(const TArguments &args, SInputOutput &io)
Modified on Fri Sep 20 14:58:01 2024 by modify_doxy.py rev. 669887