DispatchHandler class for gathering responses to a set of RangeServer::set_state() requests. More...
#include <DispatchHandlerOperationSetState.h>


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::Spec > | m_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... | |
DispatchHandler class for gathering responses to a set of RangeServer::set_state() requests.
Definition at line 49 of file DispatchHandlerOperationSetState.h.
| DispatchHandlerOperationSetState::DispatchHandlerOperationSetState | ( | ContextPtr & | context | ) |
Constructor.
Initializes m_timer with Hypertable.Monitoring.Interval property.
| context | Master context |
Definition at line 40 of file DispatchHandlerOperationSetState.cc.
| 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.
|
virtual |
Issues a RangeServer::set_state() request to a range server.
This method makes an asynchronous call to RangeServer::set_state()
| location | Proxy name of server |
Implements Hypertable::DispatchHandlerOperation.
Definition at line 50 of file DispatchHandlerOperationSetState.cc.
|
private |
Generation of system state variables.
Definition at line 80 of file DispatchHandlerOperationSetState.h.
|
private |
Vector of system state variable specifications.
Definition at line 77 of file DispatchHandlerOperationSetState.h.
|
private |
Request deadline timer
Definition at line 74 of file DispatchHandlerOperationSetState.h.
1.8.8