REQUEST_HANDLER Class Reference

#include <request_handler.h>

Inheritance diagram for REQUEST_HANDLER:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 REQUEST_HANDLER (std::map< string, JOB * > jobs)
virtual ~REQUEST_HANDLER ()
int request_handler_code (int argc, char *argv[])
 Process the request. Then reply with tasks.
virtual void process_request (m_task_t request)=0
void print_workload_status ()

Static Public Member Functions

static int find_free_channel ()
static void lock_channel (int channel)
static void release_channel (int channel)

Static Public Attributes

static std::map< int, bool > channel_table
 Value is true if channel is free; false otherwise.

Protected Attributes

std::map< string, JOB * > jobs

Static Private Member Functions

static void init_channel_table ()

Constructor & Destructor Documentation

REQUEST_HANDLER::REQUEST_HANDLER std::map< string, JOB * >  jobs  ) 
 

virtual REQUEST_HANDLER::~REQUEST_HANDLER  )  [inline, virtual]
 


Member Function Documentation

int REQUEST_HANDLER::find_free_channel  )  [static]
 

static void REQUEST_HANDLER::init_channel_table  )  [static, private]
 

void REQUEST_HANDLER::lock_channel int  channel  )  [static]
 

void REQUEST_HANDLER::print_workload_status  ) 
 

virtual void REQUEST_HANDLER::process_request m_task_t  request  )  [pure virtual]
 

Implemented in REQUEST_HANDLER_BOINC.

void REQUEST_HANDLER::release_channel int  channel  )  [static]
 

int REQUEST_HANDLER::request_handler_code int  argc,
char *  argv[]
 

Process the request. Then reply with tasks.


Member Data Documentation

std::map< int, bool > REQUEST_HANDLER::channel_table [static]
 

Value is true if channel is free; false otherwise.

ASSUMES INITIALIZATION DONE IN MAIN

std::map<string, JOB *> REQUEST_HANDLER::jobs [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Mar 12 16:22:04 2007 for SimBOINC by  doxygen 1.4.6