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::DispatchHandlerOperationToggleTableMaintenance Class Reference

Dispatch handler for either enabling or disabling table maintenance by issuing requests to range servers and aggregating the responses. More...

#include <DispatchHandlerOperationToggleTableMaintenance.h>

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

Public Member Functions

 DispatchHandlerOperationToggleTableMaintenance (ContextPtr &context, const TableIdentifier &table, bool toggle_on)
 Constructor. More...
 
virtual void start (const String &location)
 Asynchronously issues table maintenance enable or disable request. 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

TableIdentifierManaged m_table
 Table identifier of table for which maintenance is to be toggled More...
 
bool m_toggle_on
 Flag indicating if maintenance is to be toggled on or off. 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

Dispatch handler for either enabling or disabling table maintenance by issuing requests to range servers and aggregating the responses.

Definition at line 43 of file DispatchHandlerOperationToggleTableMaintenance.h.

Constructor & Destructor Documentation

Hypertable::DispatchHandlerOperationToggleTableMaintenance::DispatchHandlerOperationToggleTableMaintenance ( ContextPtr context,
const TableIdentifier table,
bool  toggle_on 
)
inline

Constructor.

Parameters
contextMaster context
tableTable identifier of table to be compacted
toggle_onControls if maintenance is to be toggled on or off

Definition at line 50 of file DispatchHandlerOperationToggleTableMaintenance.h.

Member Function Documentation

virtual void Hypertable::DispatchHandlerOperationToggleTableMaintenance::start ( const String location)
inlinevirtual

Asynchronously issues table maintenance enable or disable request.

This method asynchronously issues either a RangeServer::table_maintenance_enable() or RangeServer::table_maintenance_disable() request, depending on the value of m_toggle_on, to the server specified by location. It supplies self as the dispatch handler.

Parameters
locationProxy name of range server at which to issue request

Implements Hypertable::DispatchHandlerOperation.

Definition at line 62 of file DispatchHandlerOperationToggleTableMaintenance.h.

Member Data Documentation

TableIdentifierManaged Hypertable::DispatchHandlerOperationToggleTableMaintenance::m_table
private

Table identifier of table for which maintenance is to be toggled

Definition at line 74 of file DispatchHandlerOperationToggleTableMaintenance.h.

bool Hypertable::DispatchHandlerOperationToggleTableMaintenance::m_toggle_on
private

Flag indicating if maintenance is to be toggled on or off.

Definition at line 77 of file DispatchHandlerOperationToggleTableMaintenance.h.


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