NCBI C++ ToolKit
Variables
settings.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbi_config.hpp>
#include <corelib/plugin_manager.hpp>
#include "settings.hpp"
#include "pubseq_gateway_exception.hpp"
#include "pubseq_gateway_logging.hpp"
#include "alerts.hpp"
#include "timing.hpp"
+ Include dependency graph for settings.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Variables

const string kServerSection = "SERVER"
 
const string kLmdbCacheSection = "LMDB_CACHE"
 
const string kStatisticsSection = "STATISTICS"
 
const string kAutoExcludeSection = "AUTO_EXCLUDE"
 
const string kDebugSection = "DEBUG"
 
const string kIPGSection = "IPG"
 
const string kSSLSection = "SSL"
 
const string kHealthSection = "HEALTH"
 
const string kCDDProcessorSection = "CDD_PROCESSOR"
 
const string kWGSProcessorSection = "WGS_PROCESSOR"
 
const string kSNPProcessorSection = "SNP_PROCESSOR"
 
const string kCassandraProcessorSection = "CASSANDRA_PROCESSOR"
 
const string kAdminSection = "ADMIN"
 
const string kMyNCBISection = "MY_NCBI"
 
const string kCountersSection = "COUNTERS"
 
const unsigned short kWorkersDefault = 64
 
const unsigned int kListenerBacklogDefault = 256
 
const unsigned short kTcpMaxConnDefault = 4096
 
const unsigned int kTimeoutDefault = 30000
 
const unsigned int kMaxRetriesDefault = 2
 
const string kDefaultRootKeyspace = "sat_info3"
 
const string kDefaultConfigurationDomain = "PSG"
 
const size_t kDefaultHttpMaxBacklog = 1024
 
const size_t kDefaultHttpMaxRunning = 64
 
const size_t kDefaultLogSamplingRatio = 0
 
const size_t kDefaultLogTimingThreshold = 1000
 
const unsigned long kDefaultSendBlobIfSmall = 10 * 1024
 
const unsigned long kDefaultSmallBlobSize = 16
 
const bool kDefaultLog = true
 
const unsigned int kDefaultExcludeCacheMaxSize = 1000
 
const unsigned int kDefaultExcludeCachePurgePercentage = 20
 
const unsigned int kDefaultExcludeCacheInactivityPurge = 60
 
const unsigned int kDefaultMaxHops = 2
 
const bool kDefaultAllowIOTest = false
 
const bool kDefaultAllowProcessorTiming = false
 
const string kDefaultOnlyForProcessor = ""
 
const double kDefaultResendTimeoutSec = 0.2
 
const double kDefaultRequestTimeoutSec = 30.0
 
const size_t kDefaultProcessorMaxConcurrency = 1200
 
const size_t kDefaultSplitInfoBlobCacheSize = 1000
 
const size_t kDefaultIPGPageSize = 1024
 
const bool kDefaultEnableHugeIPG = true
 
const string kDefaultAuthToken = ""
 
const string kDefaultAuthCommands = "config status shutdown get_alerts ack_alert statistics"
 
const bool kDefaultSSLEnable = false
 
const string kDefaultSSLCertFile = ""
 
const string kDefaultSSLKeyFile = ""
 
const string kDefaultSSLCiphers = "EECDH+aRSA+AESGCM EDH+aRSA+AESGCM EECDH+aRSA EDH+aRSA !SHA !SHA256 !SHA384"
 
const size_t kDefaultShutdownIfTooManyOpenFDforHTTP = 0
 
const size_t kDefaultShutdownIfTooManyOpenFDforHTTPS = 8000
 
const string kDefaultTestSeqId = "gi|2"
 
const bool kDefaultTestSeqIdIgnoreError = true
 
const bool kDefaultCassandraProcessorsEnabled = true
 
const bool kDefaultCDDProcessorsEnabled = true
 
const bool kDefaultWGSProcessorsEnabled = true
 
const bool kDefaultSNPProcessorsEnabled = true
 
const size_t kDefaultMyNCBIOKCacheSize = 10000
 
const size_t kDefaultMyNCBINotFoundCacheSize = 10000
 
const size_t kDefaultMyNCBINotFoundCacheExpirationSec = 3600
 
const size_t kDefaultMyNCBIErrorCacheSize = 10000
 
const size_t kDefaultMyNCBIErrorCacheBackOffMs = 1000
 
const string kDefaultMyNCBIURL = "http://txproxy.linkerd.ncbi.nlm.nih.gov/v1/service/MyNCBIAccount?txsvc=MyNCBIAccount"
 
const string kDefaultMyNCBIHttpProxy = "linkerd:4140"
 
const size_t kDefaultMyNCBITimeoutMs = 100
 
const size_t kDefaultMyNCBIResolveTimeoutMs = 300
 

Variable Documentation

◆ kAdminSection

const string kAdminSection = "ADMIN"

Definition at line 55 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadAdminSection().

◆ kAutoExcludeSection

const string kAutoExcludeSection = "AUTO_EXCLUDE"

Definition at line 46 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadAutoExcludeSection().

◆ kCassandraProcessorSection

const string kCassandraProcessorSection = "CASSANDRA_PROCESSOR"

◆ kCDDProcessorSection

const string kCDDProcessorSection = "CDD_PROCESSOR"

Definition at line 51 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadCDDProcessorSection().

◆ kCountersSection

const string kCountersSection = "COUNTERS"

Definition at line 57 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadCountersSection().

◆ kDebugSection

const string kDebugSection = "DEBUG"

Definition at line 47 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadDebugSection().

◆ kDefaultAllowIOTest

const bool kDefaultAllowIOTest = false

Definition at line 78 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadDebugSection().

◆ kDefaultAllowProcessorTiming

const bool kDefaultAllowProcessorTiming = false

Definition at line 79 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadDebugSection().

◆ kDefaultAuthCommands

const string kDefaultAuthCommands = "config status shutdown get_alerts ack_alert statistics"

Definition at line 89 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadAdminSection().

◆ kDefaultAuthToken

const string kDefaultAuthToken = ""

Definition at line 87 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadAdminSection().

◆ kDefaultCassandraProcessorsEnabled

const bool kDefaultCassandraProcessorsEnabled = true

◆ kDefaultCDDProcessorsEnabled

const bool kDefaultCDDProcessorsEnabled = true

Definition at line 99 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadCDDProcessorSection().

◆ kDefaultConfigurationDomain

const string kDefaultConfigurationDomain = "PSG"

Definition at line 66 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadServerSection().

◆ kDefaultEnableHugeIPG

const bool kDefaultEnableHugeIPG = true

Definition at line 86 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadIPGSection().

◆ kDefaultExcludeCacheInactivityPurge

const unsigned int kDefaultExcludeCacheInactivityPurge = 60

◆ kDefaultExcludeCacheMaxSize

const unsigned int kDefaultExcludeCacheMaxSize = 1000

Definition at line 74 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadAutoExcludeSection().

◆ kDefaultExcludeCachePurgePercentage

const unsigned int kDefaultExcludeCachePurgePercentage = 20

◆ kDefaultHttpMaxBacklog

const size_t kDefaultHttpMaxBacklog = 1024

◆ kDefaultHttpMaxRunning

const size_t kDefaultHttpMaxRunning = 64

◆ kDefaultIPGPageSize

const size_t kDefaultIPGPageSize = 1024

◆ kDefaultLog

const bool kDefaultLog = true

Definition at line 73 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadServerSection().

◆ kDefaultLogSamplingRatio

const size_t kDefaultLogSamplingRatio = 0

◆ kDefaultLogTimingThreshold

const size_t kDefaultLogTimingThreshold = 1000

◆ kDefaultMaxHops

const unsigned int kDefaultMaxHops = 2

◆ kDefaultMyNCBIErrorCacheBackOffMs

const size_t kDefaultMyNCBIErrorCacheBackOffMs = 1000

Definition at line 106 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadMyNCBISection().

◆ kDefaultMyNCBIErrorCacheSize

const size_t kDefaultMyNCBIErrorCacheSize = 10000

Definition at line 105 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadMyNCBISection().

◆ kDefaultMyNCBIHttpProxy

const string kDefaultMyNCBIHttpProxy = "linkerd:4140"

Definition at line 108 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadMyNCBISection().

◆ kDefaultMyNCBINotFoundCacheExpirationSec

const size_t kDefaultMyNCBINotFoundCacheExpirationSec = 3600

Definition at line 104 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadMyNCBISection().

◆ kDefaultMyNCBINotFoundCacheSize

const size_t kDefaultMyNCBINotFoundCacheSize = 10000

Definition at line 103 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadMyNCBISection().

◆ kDefaultMyNCBIOKCacheSize

const size_t kDefaultMyNCBIOKCacheSize = 10000

Definition at line 102 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadMyNCBISection().

◆ kDefaultMyNCBIResolveTimeoutMs

const size_t kDefaultMyNCBIResolveTimeoutMs = 300

◆ kDefaultMyNCBITimeoutMs

const size_t kDefaultMyNCBITimeoutMs = 100

◆ kDefaultMyNCBIURL

const string kDefaultMyNCBIURL = "http://txproxy.linkerd.ncbi.nlm.nih.gov/v1/service/MyNCBIAccount?txsvc=MyNCBIAccount"

◆ kDefaultOnlyForProcessor

const string kDefaultOnlyForProcessor = ""

Definition at line 80 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadStatisticsSection().

◆ kDefaultProcessorMaxConcurrency

const size_t kDefaultProcessorMaxConcurrency = 1200

◆ kDefaultRequestTimeoutSec

const double kDefaultRequestTimeoutSec = 30.0

◆ kDefaultResendTimeoutSec

const double kDefaultResendTimeoutSec = 0.2

◆ kDefaultRootKeyspace

const string kDefaultRootKeyspace = "sat_info3"

Definition at line 65 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadServerSection().

◆ kDefaultSendBlobIfSmall

const unsigned long kDefaultSendBlobIfSmall = 10 * 1024

Definition at line 71 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadServerSection().

◆ kDefaultShutdownIfTooManyOpenFDforHTTP

const size_t kDefaultShutdownIfTooManyOpenFDforHTTP = 0

Definition at line 94 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadServerSection().

◆ kDefaultShutdownIfTooManyOpenFDforHTTPS

const size_t kDefaultShutdownIfTooManyOpenFDforHTTPS = 8000

Definition at line 95 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadServerSection().

◆ kDefaultSmallBlobSize

const unsigned long kDefaultSmallBlobSize = 16

Definition at line 72 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadStatisticsSection().

◆ kDefaultSNPProcessorsEnabled

const bool kDefaultSNPProcessorsEnabled = true

Definition at line 101 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadSNPProcessorSection().

◆ kDefaultSplitInfoBlobCacheSize

const size_t kDefaultSplitInfoBlobCacheSize = 1000

Definition at line 84 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadServerSection().

◆ kDefaultSSLCertFile

const string kDefaultSSLCertFile = ""

Definition at line 91 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadSSLSection().

◆ kDefaultSSLCiphers

const string kDefaultSSLCiphers = "EECDH+aRSA+AESGCM EDH+aRSA+AESGCM EECDH+aRSA EDH+aRSA !SHA !SHA256 !SHA384"

◆ kDefaultSSLEnable

const bool kDefaultSSLEnable = false

Definition at line 90 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadSSLSection().

◆ kDefaultSSLKeyFile

const string kDefaultSSLKeyFile = ""

Definition at line 92 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadSSLSection().

◆ kDefaultTestSeqId

const string kDefaultTestSeqId = "gi|2"

Definition at line 96 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadHealthSection().

◆ kDefaultTestSeqIdIgnoreError

const bool kDefaultTestSeqIdIgnoreError = true

Definition at line 97 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadHealthSection().

◆ kDefaultWGSProcessorsEnabled

const bool kDefaultWGSProcessorsEnabled = true

Definition at line 100 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadWGSProcessorSection().

◆ kHealthSection

const string kHealthSection = "HEALTH"

Definition at line 50 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadHealthSection().

◆ kIPGSection

const string kIPGSection = "IPG"

◆ kListenerBacklogDefault

const unsigned int kListenerBacklogDefault = 256

◆ kLmdbCacheSection

const string kLmdbCacheSection = "LMDB_CACHE"

◆ kMaxRetriesDefault

const unsigned int kMaxRetriesDefault = 2

◆ kMyNCBISection

const string kMyNCBISection = "MY_NCBI"

◆ kServerSection

const string kServerSection = "SERVER"

◆ kSNPProcessorSection

const string kSNPProcessorSection = "SNP_PROCESSOR"

Definition at line 53 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadSNPProcessorSection().

◆ kSSLSection

const string kSSLSection = "SSL"

◆ kStatisticsSection

const string kStatisticsSection = "STATISTICS"

◆ kTcpMaxConnDefault

const unsigned short kTcpMaxConnDefault = 4096

◆ kTimeoutDefault

const unsigned int kTimeoutDefault = 30000

◆ kWGSProcessorSection

const string kWGSProcessorSection = "WGS_PROCESSOR"

Definition at line 52 of file settings.cpp.

Referenced by SPubseqGatewaySettings::x_ReadWGSProcessorSection().

◆ kWorkersDefault

const unsigned short kWorkersDefault = 64
Modified on Wed May 29 18:37:40 2024 by modify_doxy.py rev. 669887