Go to the source code of this file.
Go to the SVN repository for this file.
static void s_StoreStartupParams (int argc, const char *argv[]) static int s_CompareStrings (const string &left, const string &right) static void s_ReadSpecificParams (const IRegistry ®, const string §ion, SNCSpecificParams *params, vector< string > &keys) static void s_PutNewParams (SSpecParamsSet *params_set, unsigned int best_index, const SSpecParamsEntry &entry) static SSpecParamsSet * s_FindNextParamsSet (const SSpecParamsSet *cur_set, const string &key, unsigned int &best_index) static void s_CheckDefClientConfig (SSpecParamsSet *cur_set, SSpecParamsSet *prev_set, Uint1 depth, SSpecParamsSet *deflt) static void s_ReadPerClientConfig (const CNcbiRegistry ®) static bool s_ReadServerParams (void) static bool s_Initialize (bool do_reinit) static void s_Finalize (void) static void s_CollectClientConfigKeys (SSpecParamsSet *cur_set, SSpecParamsSet *prev_set, Uint1 depth, SSpecParamsSet *deflt, vector< string > &keys) bool s_ReportPid (const string &pid_file) int main (int argc, const char *argv[]) ◆ MAKE_TEST_BUILD ◆ TPortsList ◆ TSpecKeysList ◆ main()Definition at line 1036 of file netcached.cpp.
References Critical(), CProcess::Daemonize(), CNCAlerts::ePidFileFailed, ERR_POST, CProcess::fDontChroot, CTaskServer::Finalize(), CProcess::fKeepStdin, CProcess::fKeepStdout, GetConfName(), CNCServer::GetHostLocation(), CNCServer::GetHostRole(), GetLogFileName(), i, INFO, CTaskServer::Initialize(), kEmptyCStr, NETCACHED_FULL_VERSION, NETCACHED_VERSION, ok, CNCAlerts::Register(), CTaskServer::Run(), s_Finalize(), s_Initialize(), s_ReadServerParams(), s_ReportPid(), s_StoreStartupParams(), and SRV_LOG.
◆ s_CheckDefClientConfig() ◆ s_CollectClientConfigKeys() ◆ s_CompareStrings() ◆ s_Finalize() static void s_Finalize ( void ) static ◆ s_FindNextParamsSet() ◆ s_Initialize()Definition at line 607 of file netcached.cpp.
References CTaskServer::AddListeningPort(), Critical(), set< Key, Compare >::end(), set< Key, Compare >::find(), CNCBlobStorage::GetMaxBlobSizeStore(), CNCDistributionConf::GetMaxBlobSizeSync(), CNCBlobStorage::GetMaxSyncLogRecNo(), CNCBlobStorage::GetPurgeData(), INFO, InitClientMessages(), CNCBlobStorage::Initialize(), CNCSyncLog::Initialize(), CNCDistributionConf::Initialize(), CSQLITE_Global::Initialize(), CNCActiveHandler::Initialize(), CNCStat::Initialize(), CWriteBackControl::Initialize(), CNCPeerControl::Initialize(), NStr::IntToString(), CNCBlobStorage::IsCleanStart(), ITERATE, s_CtrlPort, s_DebugMode, s_HeartBeat, s_MsgHandlerFactory, s_Ports, SRV_LOG, and CNCBlobAccessor::UpdatePurgeData().
Referenced by main().
◆ s_PutNewParams() ◆ s_ReadPerClientConfig()Definition at line 477 of file netcached.cpp.
References SNCSpecificParams::blob_ttl, SNCSpecificParams::disable, NStr::eMergeDelims, eNCBlobPassAny, NStr::eNocase, SSpecParamsSet::entries, IRegistry::EnumerateSections(), Error(), SNCSpecificParams::fast_on_main, IRegistry::fCountCleared, NStr::FindNoCase(), IRegistry::Get(), IRegistry::GetString(), IRegistry::HasEntry(), i, ITERATE, kEmptyStr, kNCReg_AppSetupPrefix, kNCReg_AppSetupValue, kNCReg_DefSpecPriority, kNCReg_ServerSection, kNCReg_SpecPriority, SNCSpecificParams::lifespan_ttl, SNCSpecificParams::max_ttl, NPOS, SNCSpecificParams::pass_policy, SNCSpecificParams::prolong_on_read, SNCSpecificParams::quorum, s_DefBlobTTL, s_FindNextParamsSet(), s_PutNewParams(), s_ReadSpecificParams(), s_SpecParams, s_SpecPriority, SNCSpecificParams::srch_on_read, SRV_LOG, NStr::StartsWith(), SNCSpecificParams::ttl_unit, and SNCSpecificParams::ver_ttl.
Referenced by s_ReadServerParams().
◆ s_ReadServerParams()Definition at line 568 of file netcached.cpp.
References Critical(), IRegistry::Get(), IRegistry::GetBool(), CTaskServer::GetConfRegistry(), IRegistry::GetInt(), IRegistry::GetString(), set< Key, Compare >::insert(), ITERATE, kNCReg_AdminClient, kNCReg_CtrlPort, kNCReg_DefAdminClient, kNCReg_Ports, kNCReg_ServerSection, s_AdminClient, s_CtrlPort, s_DebugMode, s_Ports, s_ReadPerClientConfig(), set< Key, Compare >::size(), SRV_LOG, and NStr::StringToInt().
Referenced by main().
◆ s_ReadSpecificParams()Definition at line 343 of file netcached.cpp.
References SNCSpecificParams::blob_ttl, SNCSpecificParams::disable, eNCBlobPassAny, eNCOnlyWithoutPass, eNCOnlyWithPass, Error(), SNCSpecificParams::fast_on_main, IRegistry::fCountCleared, IRegistry::GetBool(), IRegistry::GetInt(), IRegistry::GetString(), IRegistry::HasEntry(), NStr::Join(), ncbi::grid::netcache::search::fields::key, SNCSpecificParams::keys, kNCReg_BlobTTL, kNCReg_DisableClient, kNCReg_FastOnMain, kNCReg_LifespanTTL, kNCReg_MaxTTL, kNCReg_PassPolicy, kNCReg_ProlongOnRead, kNCReg_Quorum, kNCReg_SearchOnRead, kNCReg_TTLUnit, kNCReg_VerTTL, SNCSpecificParams::lifespan_ttl, max(), SNCSpecificParams::max_ttl, SNCSpecificParams::pass_policy, SNCSpecificParams::prolong_on_read, SNCSpecificParams::quorum, SNCSpecificParams::source, SNCSpecificParams::srch_on_read, SRV_LOG, SNCSpecificParams::ttl_unit, and SNCSpecificParams::ver_ttl.
Referenced by s_ReadPerClientConfig().
◆ s_ReportPid() ◆ s_StoreStartupParams() ◆ kNCReg_AdminClient const char* kNCReg_AdminClient = "admin_client_name" static ◆ kNCReg_AppSetupPrefix const char* kNCReg_AppSetupPrefix = "app_setup_" static ◆ kNCReg_AppSetupValue const char* kNCReg_AppSetupValue = "setup" static ◆ kNCReg_BlobTTL const char* kNCReg_BlobTTL = "blob_ttl" static ◆ kNCReg_CtrlPort const char* kNCReg_CtrlPort = "control_port" static ◆ kNCReg_DefAdminClient const char* kNCReg_DefAdminClient = "netcache_control" static ◆ kNCReg_DefSpecPriority const char* kNCReg_DefSpecPriority = "cache,port" static ◆ kNCReg_DisableClient const char* kNCReg_DisableClient = "disable_client" static ◆ kNCReg_FastOnMain const char* kNCReg_FastOnMain = "fast_quorum_on_main" static ◆ kNCReg_LifespanTTL const char* kNCReg_LifespanTTL = "lifespan_ttl" static ◆ kNCReg_MaxTTL const char* kNCReg_MaxTTL = "max_ttl" static ◆ kNCReg_PassPolicy const char* kNCReg_PassPolicy = "blob_password_policy" static ◆ kNCReg_Ports const char* kNCReg_Ports = "ports" static ◆ kNCReg_ProlongOnRead const char* kNCReg_ProlongOnRead = "prolong_on_read" static ◆ kNCReg_Quorum const char* kNCReg_Quorum = "quorum" static ◆ kNCReg_SearchOnRead const char* kNCReg_SearchOnRead = "search_on_read" static ◆ kNCReg_ServerSection const char* kNCReg_ServerSection = "netcache" static ◆ kNCReg_SpecPriority const char* kNCReg_SpecPriority = "app_setup_priority" static ◆ kNCReg_TTLUnit const char* kNCReg_TTLUnit = "ttl_unit" static ◆ kNCReg_VerTTL const char* kNCReg_VerTTL = "ver_ttl" static ◆ s_AdminClient ◆ s_AppPath ◆ s_CachingComplete ◆ s_CmdLineArgs ◆ s_CtrlPort ◆ s_DebugMode ◆ s_DefBlobTTL ◆ s_HeartBeat ◆ s_HostLocation ◆ s_HostRole ◆ s_InitiallySynced ◆ s_MsgHandlerFactory ◆ s_PidFile ◆ s_Ports ◆ s_SpecParams ◆ s_SpecPriority ◆ USING_NCBI_SCOPERetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4