src/app/netcache/netcached.cpp File Reference

#include <ncbi_pch.hpp>
#include <stdio.h>
#include <corelib/ncbiapp.hpp>
#include <corelib/ncbienv.hpp>
#include <corelib/ncbireg.hpp>
#include <corelib/ncbiargs.hpp>
#include <corelib/ncbistr.hpp>
#include <corelib/ncbimisc.hpp>
#include <corelib/plugin_manager.hpp>
#include <corelib/ncbi_system.hpp>
#include <corelib/ncbi_config.hpp>
#include <corelib/ncbimtx.hpp>
#include <util/thread_nonstop.hpp>
#include "message_handler.hpp"
#include "netcached.hpp"
#include "netcache_version.hpp"
#include "nc_memory.hpp"
#include "error_codes.hpp"

Include dependency graph for netcached.cpp:

Go to the source code of this file.

Defines

#define NETCACHED_HUMAN_VERSION
#define NETCACHED_FULL_VERSION
#define NCBI_USE_ERRCODE_X   NetCache_Main

Functions

void NCSignalHandler (int sig)
int main (int argc, const char *argv[])

Variables

static const char * kNCReg_ServerSection = "server"
static const char * kNCReg_DefCacheSection = "bdb"
static const char * kNCReg_CacheSectionPrefix = "icache"
static const char * kNCReg_Daemon = "daemon"
static const char * kNCReg_Port = "port"
static const char * kNCReg_NetworkTimeout = "network_timeout"
static const char * kNCReg_CommandTimeout = "request_timeout"
static const char * kNCReg_UseHostname = "use_hostname"
static const char * kNCReg_MaxConnections = "max_connections"
static const char * kNCReg_MaxThreads = "max_threads"
static const char * kNCReg_InitThreads = "init_threads"
static const char * kNCReg_DropBadDB = "drop_db"
static const char * kNCReg_MemLimit = "memory_limit"
static const char * kNCReg_MemAlert = "memory_alert"
static CNetCacheServers_NetcacheServer = NULL
END_NCBI_SCOPE USING_NCBI_SCOPE


Define Documentation

#define NCBI_USE_ERRCODE_X   NetCache_Main
 

Definition at line 70 of file netcached.cpp.

#define NETCACHED_FULL_VERSION
 

Value:

"NCBI NetCache Server version " NETCACHED_VERSION \
    " Storage version " NETCACHED_STORAGE_VERSION \
    " Protocol version " NETCACHED_PROTOCOL_VERSION \
    " build " __DATE__ " " __TIME__

Definition at line 60 of file netcached.cpp.

Referenced by CNetCacheDApp::Run().

#define NETCACHED_HUMAN_VERSION
 

Value:

"NCBI NetCache server Version " NETCACHED_VERSION \
    " build " __DATE__ " " __TIME__

Definition at line 56 of file netcached.cpp.


Function Documentation

int main int  argc,
const char *  argv[]
 

Definition at line 447 of file netcached.cpp.

References eDS_ToStdlog, CDiagContext::GetRequestContext(), CRequestContext::SetAutoIncRequestIDOnPost(), CRequestContext::SetDefaultAutoIncRequestIDOnPost(), and CDiagContext::SetOldPostFormat().

void NCSignalHandler int  sig  ) 
 

Definition at line 97 of file netcached.cpp.

References CNetCacheServer::RequestShutdown(), and s_NetcacheServer.

Referenced by CNetCacheServer::CNetCacheServer().


Variable Documentation

const char* kNCReg_CacheSectionPrefix = "icache" [static]
 

Definition at line 75 of file netcached.cpp.

Referenced by CNetCacheServer::x_CreateStorages().

const char* kNCReg_CommandTimeout = "request_timeout" [static]
 

Definition at line 79 of file netcached.cpp.

Referenced by CNetCacheServer::CNetCacheServer().

const char* kNCReg_Daemon = "daemon" [static]
 

Definition at line 76 of file netcached.cpp.

Referenced by CNetCacheServer::CNetCacheServer().

const char* kNCReg_DefCacheSection = "bdb" [static]
 

Definition at line 74 of file netcached.cpp.

Referenced by CNetCacheServer::x_CreateStorages().

const char* kNCReg_DropBadDB = "drop_db" [static]
 

Definition at line 84 of file netcached.cpp.

Referenced by CNetCacheServer::x_CreateStorages().

const char* kNCReg_InitThreads = "init_threads" [static]
 

Definition at line 83 of file netcached.cpp.

Referenced by CNetCacheServer::CNetCacheServer().

const char* kNCReg_MaxConnections = "max_connections" [static]
 

Definition at line 81 of file netcached.cpp.

Referenced by CNetCacheServer::CNetCacheServer().

const char* kNCReg_MaxThreads = "max_threads" [static]
 

Definition at line 82 of file netcached.cpp.

Referenced by CNetCacheServer::CNetCacheServer().

const char* kNCReg_MemAlert = "memory_alert" [static]
 

Definition at line 86 of file netcached.cpp.

Referenced by CNetCacheServer::CNetCacheServer().

const char* kNCReg_MemLimit = "memory_limit" [static]
 

Definition at line 85 of file netcached.cpp.

Referenced by CNetCacheServer::CNetCacheServer().

const char* kNCReg_NetworkTimeout = "network_timeout" [static]
 

Definition at line 78 of file netcached.cpp.

Referenced by CNetCacheServer::CNetCacheServer().

const char* kNCReg_Port = "port" [static]
 

Definition at line 77 of file netcached.cpp.

Referenced by CNetCacheServer::CNetCacheServer().

const char* kNCReg_ServerSection = "server" [static]
 

Definition at line 73 of file netcached.cpp.

Referenced by CNetCacheServer::x_RegReadBool(), CNetCacheServer::x_RegReadInt(), and CNetCacheServer::x_RegReadString().

const char* kNCReg_UseHostname = "use_hostname" [static]
 

Definition at line 80 of file netcached.cpp.

Referenced by CNetCacheServer::CNetCacheServer().

CNetCacheServer* s_NetcacheServer = NULL [static]
 

Definition at line 93 of file netcached.cpp.

Referenced by CNetCacheServer::CNetCacheServer(), and NCSignalHandler().

END_NCBI_SCOPE USING_NCBI_SCOPE
 

Definition at line 444 of file netcached.cpp.


Generated on Mon Dec 7 07:23:45 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:21:42 2009 by modify_doxy.py rev. 173732