42 const uint8_t *ptr =
m_event->payload;
43 size_t remain =
m_event->payload_len;
45 params.
decode(&ptr, &remain);
51 cb.
error(e.
code(),
"Error handling LoadRange message");
const TableIdentifier & table()
Gets table identifier.
Declarations for LoadRange request parameters.
const RangeSpec & range_spec()
Gets range specification.
Declarations for RangeServer.
virtual void run()
Carries out the request.
Logging routines and macros.
Compatibility Macros for C/C++.
Functions to serialize/deserialize primitives to/from a memory buffer.
void load_range(ResponseCallback *, const TableIdentifier &, const RangeSpec &, const RangeState &, bool needs_compaction)
Apps::RangeServer * m_range_server
virtual void decode(const uint8_t **bufp, size_t *remainp)
Reads serialized representation of object from a buffer.
This class is used to generate and deliver standard responses back to a client.
bool needs_compaction()
Gets needs compaction flag.
virtual int error(int error, const String &msg)
Sends a standard error response back to the client.
Request parameters for load range function.
This is a generic exception class for Hypertable.
EventPtr m_event
MESSAGE Event from which handler was initialized.
Declarations for ResponseCallback.
Error codes, Exception handling, error logging.
int code() const
Returns the error code.
const RangeState & range_state()
Gets range state.