0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
Hypertable::DispatchHandlerOperationSetState Class Reference

DispatchHandler class for gathering responses to a set of RangeServer::set_state() requests. More...

#include <DispatchHandlerOperationSetState.h>

Inheritance diagram for Hypertable::DispatchHandlerOperationSetState:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::DispatchHandlerOperationSetState:
Collaboration graph
[legend]

Public Member Functions

 DispatchHandlerOperationSetState (ContextPtr &context)
 Constructor. More...
 
void initialize ()
 Pre-request initialization. More...
 
virtual void start (const String &location)
 Issues a RangeServer::set_state() request to a range server. More...
 
- Public Member Functions inherited from Hypertable::DispatchHandlerOperation
 DispatchHandlerOperation (ContextPtr &context)
 Constructor. More...
 
void start (StringSet &locations)
 Starts asynchronous request. More...
 
virtual void result_callback (const EventPtr &event)
 Post-request hook method. More...
 
virtual void handle (EventPtr &event)
 Process response event. More...
 
bool wait_for_completion ()
 Waits for requests to complete. More...
 
void process_events ()
 Processes m_events set. More...
 
void get_results (std::set< Result > &results)
 Returns the Result set. More...
 
- Public Member Functions inherited from Hypertable::DispatchHandler
virtual ~DispatchHandler ()
 Destructor. More...
 

Private Attributes

Timer m_timer
 Request deadline timer More...
 
std::vector< SystemVariable::Specm_specs
 Vector of system state variable specifications. More...
 
uint64_t m_generation
 Generation of system state variables. More...
 

Additional Inherited Members

- Protected Attributes inherited from Hypertable::DispatchHandlerOperation
ContextPtr m_context
 Master context More...
 
RangeServer::Client m_rsclient
 Range server client object More...
 

Detailed Description

DispatchHandler class for gathering responses to a set of RangeServer::set_state() requests.

Definition at line 49 of file DispatchHandlerOperationSetState.h.

Constructor & Destructor Documentation

DispatchHandlerOperationSetState::DispatchHandlerOperationSetState ( ContextPtr context)

Constructor.

Initializes m_timer with Hypertable.Monitoring.Interval property.

Parameters
contextMaster context

Definition at line 40 of file DispatchHandlerOperationSetState.cc.

Member Function Documentation

void DispatchHandlerOperationSetState::initialize ( )

Pre-request initialization.

This method calls SystemState::get() to populate m_specs and m_generation, and starts m_timer.

Definition at line 44 of file DispatchHandlerOperationSetState.cc.

void DispatchHandlerOperationSetState::start ( const String location)
virtual

Issues a RangeServer::set_state() request to a range server.

This method makes an asynchronous call to RangeServer::set_state()

Parameters
locationProxy name of server

Implements Hypertable::DispatchHandlerOperation.

Definition at line 50 of file DispatchHandlerOperationSetState.cc.

Member Data Documentation

uint64_t Hypertable::DispatchHandlerOperationSetState::m_generation
private

Generation of system state variables.

Definition at line 80 of file DispatchHandlerOperationSetState.h.

std::vector<SystemVariable::Spec> Hypertable::DispatchHandlerOperationSetState::m_specs
private

Vector of system state variable specifications.

Definition at line 77 of file DispatchHandlerOperationSetState.h.

Timer Hypertable::DispatchHandlerOperationSetState::m_timer
private

Request deadline timer

Definition at line 74 of file DispatchHandlerOperationSetState.h.


The documentation for this class was generated from the following files: