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

Go to the SVN repository for this file.

1 #ifndef NETSTORAGE_CONSTANTS__HPP
2 #define NETSTORAGE_CONSTANTS__HPP
3 
4 /* $Id: nst_constants.hpp 72347 2016-05-03 13:19:07Z satskyse $
5  * ===========================================================================
6  *
7  * PUBLIC DOMAIN NOTICE
8  * National Center for Biotechnology Information
9  *
10  * This software/database is a "United States Government Work" under the
11  * terms of the United States Copyright Act. It was written as part of
12  * the author's official duties as a United States Government employee and
13  * thus cannot be copyrighted. This software/database is freely available
14  * to the public for use. The National Library of Medicine and the U.S.
15  * Government have not placed any restriction on its use or reproduction.
16  *
17  * Although all reasonable efforts have been taken to ensure the accuracy
18  * and reliability of the software and data, the NLM and the U.S.
19  * Government do not and cannot warrant the performance or results that
20  * may be obtained by using this software or data. The NLM and the U.S.
21  * Government disclaim all warranties, express or implied, including
22  * warranties of performance, merchantability or fitness for any particular
23  * purpose.
24  *
25  * Please cite the author in any work or product based on this material.
26  *
27  * ===========================================================================
28  *
29  * Authors: Sergey Satskiy
30  *
31  * File Description: NetStorage constants used in the server code
32  *
33  */
34 
36 
37 
38 // Configuration file default values
39 const unsigned short port_low_limit = 1;
40 const unsigned short port_high_limit = 65535;
41 
42 const unsigned int default_network_timeout = 10;
43 
44 const unsigned int default_max_connections = 500;
45 const unsigned int max_connections_low_limit = 1;
46 const unsigned int max_connections_high_limit = 1000;
47 
48 const unsigned int default_init_threads = 10;
49 const unsigned int init_threads_low_limit = 1;
50 const unsigned int init_threads_high_limit = 1000;
51 
52 const unsigned int default_max_threads = 50;
53 const unsigned int max_threads_low_limit = 1;
54 const unsigned int max_threads_high_limit = 1000;
55 
56 const bool default_log = true;
57 const bool default_log_timing_nst_api = false;
59 
60 const double default_execute_sp_timeout = 20.0;
61 
62 
63 // Limitations
64 const size_t max_attr_value = 900;
65 
66 
68 
69 #endif /* NETSTORAGE_CONSTANTS__HPP */
70 
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
const unsigned short port_high_limit
const bool default_log_timing_nst_api
const size_t max_attr_value
const unsigned int default_max_threads
const bool default_log_timing_client_socket
const unsigned int default_init_threads
const unsigned short port_low_limit
const bool default_log
const unsigned int max_threads_high_limit
const double default_execute_sp_timeout
const unsigned int max_connections_low_limit
const unsigned int default_max_connections
const unsigned int max_threads_low_limit
const unsigned int init_threads_high_limit
const unsigned int init_threads_low_limit
const unsigned int max_connections_high_limit
const unsigned int default_network_timeout
Modified on Sun Apr 21 03:44:51 2024 by modify_doxy.py rev. 669887