NCBI C++ ToolKit
|
#include "nc_pch.hpp"
#include <corelib/ncbireg.hpp>
#include <util/checksum.hpp>
#include <util/random_gen.hpp>
#include "task_server.hpp"
#include "netcached.hpp"
#include "distribution_conf.hpp"
#include "peer_control.hpp"
#include <random>
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
struct | SSrvGroupInfo |
struct | SSrvMirrorInfo |
Typedefs | |
typedef vector< SSrvGroupInfo > | TSrvGroupsList |
typedef map< Uint2, TSrvGroupsList > | TSrvGroupsMap |
typedef map< Uint2, TServersList > | TSlot2SrvMap |
typedef map< Uint8, vector< Uint2 > > | TSrv2SlotMap |
typedef map<Uint2, TServersList> TSlot2SrvMap |
Definition at line 62 of file distribution_conf.cpp.
typedef map<Uint8, vector<Uint2> > TSrv2SlotMap |
Definition at line 63 of file distribution_conf.cpp.
typedef vector<SSrvGroupInfo> TSrvGroupsList |
Definition at line 59 of file distribution_conf.cpp.
typedef map<Uint2, TSrvGroupsList> TSrvGroupsMap |
Definition at line 60 of file distribution_conf.cpp.
|
static |
Definition at line 138 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::Initialize(), CNCDistributionConf::InitMirrorConfig(), and CNCDistributionConf::ReConfig().
|
static |
Definition at line 139 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::InitMirrorConfig(), CNCDistributionConf::ReConfig(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 140 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::InitMirrorConfig(), CNCDistributionConf::ReConfig(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 141 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::InitMirrorConfig(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 103 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GenerateBlobKey(), and CNCDistributionConf::Initialize().
|
static |
Definition at line 118 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetBlobListTimeout(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
Definition at line 135 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetBlobUpdateHotline(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 126 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetCleanAttemptInterval(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 123 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetCleanLogReserve(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 109 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetCntActiveSyncs(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 114 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetCntErrorsToThrottle(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 91 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GenerateBlobKey(), CNCDistributionConf::GetCntSlotBuckets(), CNCDistributionConf::GetSlotByRnd(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 115 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetCntThrottlesToIpchange(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 92 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetCntTimeBuckets(), and CNCDistributionConf::Initialize().
|
static |
Definition at line 108 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::Finalize(), CNCDistributionConf::Initialize(), and CNCDistributionConf::PrintBlobCopyStat().
|
static |
Definition at line 107 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::Initialize(), CNCDistributionConf::WriteEnvInfo(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 131 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetFailedSyncRetryDelay(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Referenced by CNCDistributionConf::GenerateBlobKey().
|
static |
Definition at line 100 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GenerateBlobKey().
|
static |
Definition at line 133 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetMaxBlobSizeSync(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 124 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetMaxCleanLogBatch(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 120 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetMaxMirrorQueueSize(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 113 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetMaxPeerBGConns(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 112 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetMaxPeerTotalConns(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 122 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetMaxSlotLogEvents(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 88 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetMaxSlotNumber(), CNCDistributionConf::Initialize(), and CNCDistributionConf::InitMirrorConfig().
|
static |
Definition at line 110 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetMaxSyncsOneServer(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 125 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetMinForcedCleanPeriod(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 80 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::AddServerSlots(), CNCDistributionConf::CountServersForSlot(), CNCDistributionConf::GetCommonSlots(), CNCDistributionConf::GetPeers(), CNCDistributionConf::GetRawServersForSlot(), CNCDistributionConf::GetServersForSlot(), CNCDistributionConf::GetSlotsForServer(), CNCDistributionConf::GetSrvIdByIP(), CNCDistributionConf::HasCommonSlots(), CNCDistributionConf::HasPeers(), CNCDistributionConf::InitMirrorConfig(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 105 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetMirroringSizeFile(), CNCDistributionConf::Initialize(), CNCDistributionConf::WriteEnvInfo(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 132 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetNetworkErrorTimeout(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 116 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetPeerThrottlePeriod(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 117 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetPeerTimeout(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 106 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetPeriodicLogFile(), CNCDistributionConf::Initialize(), CNCDistributionConf::WriteEnvInfo(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 127 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetPeriodicSyncInterval(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 130 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetPeriodicSyncTimeout(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 104 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetMainSrvIP(), CNCDistributionConf::Initialize(), and CNCDistributionConf::IsThisServerKey().
|
static |
Definition at line 98 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetServersForSlot(), and CNCDistributionConf::InitMirrorConfig().
|
static |
Definition at line 102 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GenerateBlobKey(), CNCDistributionConf::GetMainSrvIP(), CNCDistributionConf::Initialize(), and CNCDistributionConf::IsThisServerKey().
|
static |
|
static |
Definition at line 97 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetMainSrvIP(), CNCDistributionConf::Initialize(), and CNCDistributionConf::InitMirrorConfig().
|
static |
Definition at line 99 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetPeerNameOrEmpty(), CNCDistributionConf::InitMirrorConfig(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 90 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::AddServerSlots(), CNCDistributionConf::GenerateBlobKey(), CNCDistributionConf::GetSelfSlots(), CNCDistributionConf::InitMirrorConfig(), CNCDistributionConf::IsServedLocally(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 96 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetSelfTrustLevel(), CNCDistributionConf::InitMirrorConfig(), and CNCDistributionConf::WriteSetup().
Definition at line 136 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetSlotByICacheKey(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 93 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GenerateBlobKey(), CNCDistributionConf::GetSlotByRnd(), and CNCDistributionConf::Initialize().
|
static |
Definition at line 119 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetSmallBlobBoundary(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 121 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetSyncLogFileName(), CNCDistributionConf::Initialize(), CNCDistributionConf::WriteEnvInfo(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 111 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetSyncPriority(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().
|
static |
Definition at line 94 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GenerateBlobKey(), CNCDistributionConf::GetSlotByRnd(), and CNCDistributionConf::Initialize().
Definition at line 134 of file distribution_conf.cpp.
Referenced by CNCDistributionConf::GetWarnBlobSizeSync(), CNCDistributionConf::Initialize(), and CNCDistributionConf::WriteSetup().