38 for (
auto &result : results)
53 auto iter =
m_index.find(event->addr);
55 Result *result = iter->second;
58 result->
error = error;
64 size_t remaining =
event->payload_len - 4;
65 const uint8_t *ptr =
event->payload + 4;
67 params.
decode(&ptr, &remaining);
77 result->
error =
event->error;
81 HT_WARN_OUT <<
"Received 'status' response from unexpected connection "
82 <<
event->addr.format() <<
HT_END;
Response parameters for open requests.
void status(const CommAddress &addr, Status &status)
Issues a "status" request.
const Hypertable::Status & status() const
Gets status information.
static int32_t response_code(const Event *event)
Returns the response code from an event event generated in response to a request message.
std::string String
A String is simply a typedef to std::string.
Timer m_timer
Deadline timer.
static String string_format_message(const Event *event)
Returns error message decoded standard error MESSAGE generated in response to a request message...
DispatchHandlerOperationSystemStatus(ContextPtr &context, Timer &timer)
Constructor.
Declarations for DispatchHandlerOperationSystemStatus.
std::shared_ptr< Event > EventPtr
Smart pointer to Event.
std::shared_ptr< Context > ContextPtr
Smart pointer to Context.
DispatchHandler class for managing async RangeServer requests.
Logging routines and macros.
void set_proxy(const String &str)
Sets address type to CommAddress::PROXY and proxy name to p.
Compatibility Macros for C/C++.
void start(const String &location) override
Issues a status request for the range server at location.
RangeServer::Client m_rsclient
Range server client object
Time related declarations.
virtual void decode(const uint8_t **bufp, size_t *remainp)
Reads serialized representation of object from a buffer.
void initialize(std::vector< Result > &results)
Performs initialization.
Holds result of a RangeServer status request.
void result_callback(const EventPtr &event) override
Handles a status request event.
void start()
Starts the timer.
Request/response message event.
A timer class to keep timeout states across AsyncComm related calls.
This is a generic exception class for Hypertable.
SockAddrMap< Result * > m_index
Result map.
Error codes, Exception handling, error logging.
Declarations for Status response parameters.
Address abstraction to hold either proxy name or IPv4:port address.
int code() const
Returns the error code.