src/app/bdb_env_keeper/bdb_env_keeper.cpp File Reference

#include <ncbi_pch.hpp>
#include <corelib/ncbiapp.hpp>
#include <corelib/ncbiargs.hpp>
#include <corelib/ncbienv.hpp>
#include <corelib/ncbi_system.hpp>
#include <connect/ncbi_conn_stream.hpp>
#include <connect/ncbi_core_cxx.hpp>
#include <connect/ncbi_socket.hpp>
#include <connect/ncbi_util.h>
#include <connect/server.hpp>
#include <db/bdb/bdb_util.hpp>
#include <db/bdb/bdb_env.hpp>

Include dependency graph for bdb_env_keeper.cpp:

Go to the source code of this file.

Classes

class  CBDBEnvKeeperServer
 Main server class. More...
class  CBDBEnvKeeperConnectionHandler
 Actual event (command) responder (session state machine). More...
class  CBDBEnvKeeperConnectionFactory
class  CBDBEnvKeeperApp

Defines

#define BDB_ENV_KEEPER_VERSION   "0.1.1"
#define BDB_ENV_KEEPER_FULL_VERSION

Functions

static string s_ReadStrFromBUF (BUF buf)
void Server_SignalHandler (int signum)
int main (int argc, const char *argv[])

Variables

static CBDBEnvKeeperServers_server = 0
static STimeout kAcceptTimeout = { 1, 0 }
END_NCBI_SCOPE USING_NCBI_SCOPE


Define Documentation

#define BDB_ENV_KEEPER_FULL_VERSION
 

Value:

"NCBI BDB Env keeper server version " BDB_ENV_KEEPER_VERSION \
    " build " __DATE__ " " __TIME__

Definition at line 57 of file bdb_env_keeper.cpp.

Referenced by CBDBEnvKeeperConnectionHandler::OnMessage(), and CBDBEnvKeeperApp::Run().

#define BDB_ENV_KEEPER_VERSION   "0.1.1"
 

Definition at line 55 of file bdb_env_keeper.cpp.


Function Documentation

int main int  argc,
const char *  argv[]
 

Definition at line 261 of file bdb_env_keeper.cpp.

static string s_ReadStrFromBUF BUF  buf  )  [static]
 

Definition at line 108 of file bdb_env_keeper.cpp.

References buf, BUF_Read(), BUF_Size(), and size.

Referenced by CBDBEnvKeeperConnectionHandler::OnMessage(), CWNCTConnectionHandler::x_ProcessAuth(), CWNCTConnectionHandler::x_ProcessQueue(), and CWNCTConnectionHandler::x_ProcessRequest().

void Server_SignalHandler int  signum  ) 
 

Definition at line 179 of file bdb_env_keeper.cpp.

References CBDBEnvKeeperServer::RequestShutdown(), s_server, and CBDBEnvKeeperServer::ShutdownRequested().

Referenced by CBDBEnvKeeperApp::Run().


Variable Documentation

STimeout kAcceptTimeout = { 1, 0 } [static]
 

Definition at line 176 of file bdb_env_keeper.cpp.

Referenced by CWorkerNodeControlServer::CWorkerNodeControlServer(), and CBDBEnvKeeperApp::Run().

CBDBEnvKeeperServer* s_server = 0 [static]
 

Definition at line 79 of file bdb_env_keeper.cpp.

Referenced by CBDBEnvKeeperConnectionHandler::OnMessage(), CBDBEnvKeeperApp::Run(), and Server_SignalHandler().

END_NCBI_SCOPE USING_NCBI_SCOPE
 

Definition at line 259 of file bdb_env_keeper.cpp.


Generated on Wed Dec 9 07:41:55 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Wed Dec 09 08:18:32 2009 by modify_doxy.py rev. 173732