ACTION Class Reference

#include <action.h>

Inheritance diagram for ACTION:

Inheritance graph
[legend]
Collaboration diagram for ACTION:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACTION (SERVER *server, m_host_t host, HOSTMONITOR *hostmonitor)
virtual ~ACTION ()
void execute ()
 Execute the action.

Protected Member Functions

virtual REQUEST_TYPEcreate_request_type ()=0
virtual bool is_action_pending (string hostname)=0
virtual void set_action_pending (string hostname, bool is_pending)=0
virtual bool is_channel_pending (string hostname)=0
virtual void set_channel_pending (string hostname, bool is_pending)=0
virtual void set_channel (string hostname, int channel)=0
virtual int get_channel (string hostname)=0
virtual int perform_action (int channel)=0
int setup_channel (REQUEST_TYPE *request_type)
int request_channel (m_host_t src_host, m_host_t dest_host, REQUEST_TYPE *request_type)
int handle_channel_reply (REQUEST_TYPE *request_type)

Protected Attributes

HOSTMONITORhostmonitor
SERVERserver
m_host_t host

Constructor & Destructor Documentation

ACTION::ACTION SERVER server,
m_host_t  host,
HOSTMONITOR hostmonitor
 

Parameters:
host host from which action is sent

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


Member Function Documentation

virtual REQUEST_TYPE* ACTION::create_request_type  )  [protected, pure virtual]
 

Implemented in ACTION_DOWNLOAD.

void ACTION::execute  ) 
 

Execute the action.

Either completes or doesn't because the host fails, in which case we try again depending on what stage we are in.

virtual int ACTION::get_channel string  hostname  )  [protected, pure virtual]
 

Implemented in ACTION_DOWNLOAD.

int ACTION::handle_channel_reply REQUEST_TYPE request_type  )  [protected]
 

waits for channel reply from server

virtual bool ACTION::is_action_pending string  hostname  )  [protected, pure virtual]
 

Implemented in ACTION_DOWNLOAD.

virtual bool ACTION::is_channel_pending string  hostname  )  [protected, pure virtual]
 

Implemented in ACTION_DOWNLOAD.

virtual int ACTION::perform_action int  channel  )  [protected, pure virtual]
 

Implemented in ACTION_DOWNLOAD.

int ACTION::request_channel m_host_t  src_host,
m_host_t  dest_host,
REQUEST_TYPE request_type
[protected]
 

virtual void ACTION::set_action_pending string  hostname,
bool  is_pending
[protected, pure virtual]
 

Implemented in ACTION_DOWNLOAD.

virtual void ACTION::set_channel string  hostname,
int  channel
[protected, pure virtual]
 

Implemented in ACTION_DOWNLOAD.

virtual void ACTION::set_channel_pending string  hostname,
bool  is_pending
[protected, pure virtual]
 

Implemented in ACTION_DOWNLOAD.

int ACTION::setup_channel REQUEST_TYPE request_type  )  [protected]
 

Returns:
channel number or if host failed either during the action_channel and handle_channel_reply, UNINIT.


Member Data Documentation

m_host_t ACTION::host [protected]
 

HOSTMONITOR* ACTION::hostmonitor [protected]
 

SERVER* ACTION::server [protected]
 


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