SERVER Class Reference

Starts the REQUEST_HANDLER_BOINC process and prints the performance metrics at the end of the simulation. More...

#include <server.h>

Collaboration diagram for SERVER:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SERVER (std::map< string, JOB * > jobs, m_host_t host, SIM *sim, HOSTMONITOR *hostmonitorobj)
int servercode (int argc, char *argv[])
void finalize_processes (m_host_t *hosts, int numhosts)
 DEPRECATED kills all processes to end the simulation.
void set_host_monitor_process (m_process_t process)
void set_request_handler_process (m_process_t process)
void cancel_all_chkpt_tasks ()
 cancel all running tasks
void compute_metrics ()
 Compute the performance metrics.
void print_client_metrics (std::map< string, class PROJECT_METRICS * > project_metrics_map, ofstream &output)

Public Attributes

m_host_t host

Private Attributes

m_process_t hostmonitorprocess
m_process_t request_handler_process
HOSTMONITORhostmonitorobj
std::map< string, JOB * > jobs
SIMsim

Detailed Description

Starts the REQUEST_HANDLER_BOINC process and prints the performance metrics at the end of the simulation.


Constructor & Destructor Documentation

SERVER::SERVER std::map< string, JOB * >  jobs,
m_host_t  host,
SIM sim,
HOSTMONITOR hostmonitorobj
 


Member Function Documentation

void SERVER::cancel_all_chkpt_tasks  ) 
 

cancel all running tasks

void SERVER::compute_metrics  ) 
 

Compute the performance metrics.

For each project of each client, report how well the cpu scheduler met the resource shares, and the task deadlines.

void SERVER::finalize_processes m_host_t *  hosts,
int  numhosts
 

DEPRECATED kills all processes to end the simulation.

Kills all the processes (except server process which will exit on its own). This is better than sending finalized message, since hosts can be unavailabile and so transmission of message may be delayed.

PRECONDITION: hostmonitorprocess, request_handler all exist on host that doesn't fail.

void SERVER::print_client_metrics std::map< string, class PROJECT_METRICS * >  project_metrics_map,
ofstream &  output
 

int SERVER::servercode int  argc,
char *  argv[]
 

void SERVER::set_host_monitor_process m_process_t  process  ) 
 

void SERVER::set_request_handler_process m_process_t  process  ) 
 


Member Data Documentation

m_host_t SERVER::host
 

host on which server is running on

HOSTMONITOR* SERVER::hostmonitorobj [private]
 

m_process_t SERVER::hostmonitorprocess [private]
 

std::map<string, JOB *> SERVER::jobs [private]
 

m_process_t SERVER::request_handler_process [private]
 

SIM* SERVER::sim [private]
 


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