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

Go to the SVN repository for this file.

1 /* $Id: ns_application.hpp 84210 2018-10-25 15:29:28Z satskyse $
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: Anatoliy Kuznetsov, Victor Joukov
27  *
28  * File Description: Network scheduler daemon
29  *
30  */
31 
32 #include <corelib/ncbiapp.hpp>
33 #include <connect/ncbi_types.h>
34 
36 
37 
38 // NetSchedule daemon application
40 {
41 public:
43  void Init(void);
44  int Run(void);
45  bool GetReinit(void) const { return m_Reinit; }
47  GetOrigLogSection(void) const { return m_OrigLogSection; }
49  GetOrigDiagSection(void) const { return m_OrigDiagSection; }
50 
51 private:
53  bool m_Reinit;
54 
55  void x_SaveSection(const CNcbiRegistry & reg,
56  const string & section,
57  map<string, string> & storage);
58  void x_WritePid(CNetScheduleServer * server) const;
59 
62 };
63 
CNcbiRegistry –.
Definition: ncbireg.hpp:913
bool GetReinit(void) const
map< string, string > GetOrigDiagSection(void) const
STimeout m_ServerAcceptTimeout
map< string, string > m_OrigLogSection
int Run(void)
Run the application.
void x_SaveSection(const CNcbiRegistry &reg, const string &section, map< string, string > &storage)
void Init(void)
Initialize the application.
void x_WritePid(CNetScheduleServer *server) const
map< string, string > GetOrigLogSection(void) const
map< string, string > m_OrigDiagSection
NetScheduler threaded server.
Definition: ns_server.hpp:57
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.
USING_NCBI_SCOPE
Timeout structure.
Definition: ncbi_types.h:76
Modified on Mon May 20 04:58:40 2024 by modify_doxy.py rev. 669887