MetriVis Overview | Download | User Manual | Development
Reference Overview | Design Documentation | Reference Backend | Reference Frontend

metrivis::SQL2JsonDispatcher Class Reference

Recieves and forwards http requests from clients. More...

#include <SQL2JsonDispatcher.h>

Inheritance diagram for metrivis::SQL2JsonDispatcher:

metrivis::RequestDispatcher metrivis::Thread

Public Member Functions

 SQL2JsonDispatcher (int clone_id=-1)
virtual ~SQL2JsonDispatcher ()
virtual int Init ()
 Initializes the SQL2JsonDispatcher class.
virtual int Uninit ()
 Uninitializes the SQL2JsonDispatcher class.

Protected Member Functions

void Run ()
 Processes the HTTP request.

Detailed Description

Recieves and forwards http requests from clients.

Incoming connections are handled within this class. To handle and parse http requests a slightly changed version of the easyHTTPD framework is used ( http://sourceforge.net/projects/ehttpd/).


Constructor & Destructor Documentation

metrivis::SQL2JsonDispatcher::SQL2JsonDispatcher ( int  clone_id = -1  ) 

Constructor for SQL2JsonDispatcher class

Default constructor. See header file for overview.

metrivis::SQL2JsonDispatcher::~SQL2JsonDispatcher (  )  [virtual]

Deconstructor for SQL2JsonDispatcher class

Grounds all variables to initial values to minimize lucky post-mortem usage. See header file for overview.


Member Function Documentation

int metrivis::SQL2JsonDispatcher::Init (  )  [virtual]

Initializes the SQL2JsonDispatcher class.

Makes the SQL2JsonDispatcher ready to handle requests. Must be called before listen() is called.

Initialization of the SQL2JsonDispatcher. See header file for overview.

Reimplemented from metrivis::Thread.

int metrivis::SQL2JsonDispatcher::Uninit (  )  [virtual]

Uninitializes the SQL2JsonDispatcher class.

After stopping the listening thread the driver may be uninitialized. This frees the socket again.

Uninitialization of the SQL2JsonDispatcher. See header file for overview.

Reimplemented from metrivis::Thread.

void metrivis::SQL2JsonDispatcher::Run (  )  [protected, virtual]

Processes the HTTP request.

Will be called by the RequestHandler::ThreadPool::ProcessRequest function. This is the virtu

See header file for overview.

Reimplemented from metrivis::RequestDispatcher.


The documentation for this class was generated from the following files:
Generated on Fri Feb 29 16:47:20 2008 for MetriVis by  doxygen 1.5.3