src/connect/services/grid_control_thread.cpp File Reference

#include <ncbi_pch.hpp>
#include <connect/services/grid_globals.hpp>
#include <connect/services/grid_control_thread.hpp>
#include <connect/services/grid_worker.hpp>
#include <connect/services/error_codes.hpp>
#include <corelib/ncbistre.hpp>
#include <corelib/ncbiapp.hpp>
#include <corelib/ncbi_process.hpp>
#include <math.h>

Include dependency graph for grid_control_thread.cpp:

Go to the source code of this file.

Classes

class  CGetVersionProcessor
class  CShutdownProcessor
class  CGetStatisticsProcessor
class  CGetLoadProcessor
class  CUnknownProcessor
class  CWNCTConnectionFactory

Defines

#define NCBI_USE_ERRCODE_X   ConnServ_WorkerNode

Functions

static string s_ReadStrFromBUF (BUF buf)
static void s_HandleError (CSocket &socket, const string &msg)

Variables

const string SHUTDOWN_CMD = "SHUTDOWN"
const string VERSION_CMD = "VERSION"
const string STAT_CMD = "STAT"
const string GETLOAD_CMD = "GETLOAD"
static STimeout kAcceptTimeout = {1,0}


Define Documentation

#define NCBI_USE_ERRCODE_X   ConnServ_WorkerNode
 

Definition at line 46 of file grid_control_thread.cpp.


Function Documentation

static void s_HandleError CSocket socket,
const string &  msg
[static]
 

Definition at line 309 of file grid_control_thread.cpp.

References CSocket::Close(), ERR_POST_X, NStr::PrintableString(), and CSocket::Write().

Referenced by CWNCTConnectionHandler::OnMessage().

static string s_ReadStrFromBUF BUF  buf  )  [static]
 

Definition at line 286 of file grid_control_thread.cpp.

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


Variable Documentation

const string GETLOAD_CMD = "GETLOAD"
 

Definition at line 207 of file grid_control_thread.cpp.

Referenced by CWorkerNodeControlServer::MakeProcessor().

STimeout kAcceptTimeout = {1,0} [static]
 

Definition at line 252 of file grid_control_thread.cpp.

const string SHUTDOWN_CMD = "SHUTDOWN"
 

Definition at line 204 of file grid_control_thread.cpp.

Referenced by CWorkerNodeControlServer::MakeProcessor().

const string STAT_CMD = "STAT"
 

Definition at line 206 of file grid_control_thread.cpp.

Referenced by CWorkerNodeControlServer::MakeProcessor().

const string VERSION_CMD = "VERSION"
 

Definition at line 205 of file grid_control_thread.cpp.

Referenced by CWorkerNodeControlServer::MakeProcessor().


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