Dispatch handler for either enabling or disabling table maintenance by issuing requests to range servers and aggregating the responses. More...
#include <DispatchHandlerOperationToggleTableMaintenance.h>
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... | |
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.
|
inline |
Constructor.
context | Master context |
table | Table identifier of table to be compacted |
toggle_on | Controls if maintenance is to be toggled on or off |
Definition at line 50 of file DispatchHandlerOperationToggleTableMaintenance.h.
|
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.
location | Proxy name of range server at which to issue request |
Implements Hypertable::DispatchHandlerOperation.
Definition at line 62 of file DispatchHandlerOperationToggleTableMaintenance.h.
|
private |
Table identifier of table for which maintenance is to be toggled
Definition at line 74 of file DispatchHandlerOperationToggleTableMaintenance.h.
|
private |
Flag indicating if maintenance is to be toggled on or off.
Definition at line 77 of file DispatchHandlerOperationToggleTableMaintenance.h.