NCBI C++ ToolKit
Variables
cass_factory.cpp File Reference
#include <ncbi_pch.hpp>
#include <string>
#include <sstream>
#include <vector>
#include <corelib/ncbireg.hpp>
#include <corelib/ncbiargs.hpp>
#include <connect/ncbi_service.hpp>
#include <objtools/pubseq_gateway/impl/cassandra/cass_factory.hpp>
#include <objtools/pubseq_gateway/impl/cassandra/lbsm_resolver.hpp>
#include <objtools/pubseq_gateway/impl/cassandra/IdCassScope.hpp>
+ Include dependency graph for cass_factory.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Variables

BEGIN_IDBLOB_SCOPE USING_NCBI_SCOPE
 
const string kCassConfigSection = "CASSANDRA_DB"
 
const unsigned int kCassConnTimeoutDefault = 30000
 
const unsigned int kCassConnTimeoutMax = UINT_MAX
 
const unsigned int kCassQueryTimeoutDefault = 5000
 
const unsigned int kCassQueryTimeoutMax = UINT_MAX
 
const loadbalancing_policy_t kLoadBalancingDefaultPolicy = LB_DCAWARE
 
const unsigned int kNumThreadsIoMin = 1
 
const unsigned int kNumThreadsIoMax = 32
 
const unsigned int kNumThreadsIoDefault = 4
 
const unsigned int kNumConnPerHostMin = 1
 
const unsigned int kNumConnPerHostMax = 8
 
const unsigned int kNumConnPerHostDefault = 2
 
const unsigned int kKeepaliveMax = UINT_MAX
 
const unsigned int kKeepaliveDefault = 0
 
const unsigned int kCassFallbackWrConsistencyMax = UINT_MAX
 
const unsigned int kCassFallbackWrConsistencyDefault = 0
 
const int kMaxRetriesDefault = 1
 < 0 means not configured. More...
 
const map< string, loadbalancing_policy_tkPolicyArgMap
 

Variable Documentation

◆ kCassConfigSection

const string kCassConfigSection = "CASSANDRA_DB"

Definition at line 52 of file cass_factory.cpp.

Referenced by CCassConnectionFactory::ReloadConfig().

◆ kCassConnTimeoutDefault

const unsigned int kCassConnTimeoutDefault = 30000

◆ kCassConnTimeoutMax

const unsigned int kCassConnTimeoutMax = UINT_MAX

Definition at line 55 of file cass_factory.cpp.

Referenced by CCassConnectionFactory::x_ValidateArgs().

◆ kCassFallbackWrConsistencyDefault

const unsigned int kCassFallbackWrConsistencyDefault = 0

◆ kCassFallbackWrConsistencyMax

const unsigned int kCassFallbackWrConsistencyMax = UINT_MAX

Definition at line 67 of file cass_factory.cpp.

Referenced by CCassConnectionFactory::x_ValidateArgs().

◆ kCassQueryTimeoutDefault

const unsigned int kCassQueryTimeoutDefault = 5000

◆ kCassQueryTimeoutMax

const unsigned int kCassQueryTimeoutMax = UINT_MAX

Definition at line 57 of file cass_factory.cpp.

Referenced by CCassConnectionFactory::x_ValidateArgs().

◆ kKeepaliveDefault

const unsigned int kKeepaliveDefault = 0

◆ kKeepaliveMax

const unsigned int kKeepaliveMax = UINT_MAX

Definition at line 65 of file cass_factory.cpp.

Referenced by CCassConnectionFactory::x_ValidateArgs().

◆ kLoadBalancingDefaultPolicy

const loadbalancing_policy_t kLoadBalancingDefaultPolicy = LB_DCAWARE

Definition at line 58 of file cass_factory.cpp.

Referenced by CCassConnectionFactory::x_ValidateArgs().

◆ kMaxRetriesDefault

const int kMaxRetriesDefault = 1

< 0 means not configured.

Should not be used here 0 means no limit in auto-restart count, 1 means no 2nd start -> no re-starts at all n > 1 means n-1 restart allowed

Definition at line 74 of file cass_factory.cpp.

Referenced by CCassConnectionFactory::ReloadConfig(), and CCassConnectionFactory::x_ValidateArgs().

◆ kNumConnPerHostDefault

const unsigned int kNumConnPerHostDefault = 2

◆ kNumConnPerHostMax

const unsigned int kNumConnPerHostMax = 8

Definition at line 63 of file cass_factory.cpp.

Referenced by CCassConnectionFactory::x_ValidateArgs().

◆ kNumConnPerHostMin

const unsigned int kNumConnPerHostMin = 1

Definition at line 62 of file cass_factory.cpp.

Referenced by CCassConnectionFactory::x_ValidateArgs().

◆ kNumThreadsIoDefault

const unsigned int kNumThreadsIoDefault = 4

◆ kNumThreadsIoMax

const unsigned int kNumThreadsIoMax = 32

Definition at line 60 of file cass_factory.cpp.

Referenced by CCassConnectionFactory::x_ValidateArgs().

◆ kNumThreadsIoMin

const unsigned int kNumThreadsIoMin = 1

Definition at line 59 of file cass_factory.cpp.

Referenced by CCassConnectionFactory::x_ValidateArgs().

◆ kPolicyArgMap

Initial value:
= {
{"dcaware", LB_DCAWARE},
{"roundrobin", LB_ROUNDROBIN}
}
@ LB_ROUNDROBIN
Definition: cass_driver.hpp:78
@ LB_DCAWARE
Definition: cass_driver.hpp:76
const loadbalancing_policy_t kLoadBalancingDefaultPolicy

Definition at line 76 of file cass_factory.cpp.

Referenced by CCassConnectionFactory::x_ValidateArgs().

◆ USING_NCBI_SCOPE

BEGIN_IDBLOB_SCOPE USING_NCBI_SCOPE

Definition at line 50 of file cass_factory.cpp.

Modified on Fri Sep 20 14:57:23 2024 by modify_doxy.py rev. 669887