46 const uint8_t *ptr =
m_event->payload;
47 size_t remain =
m_event->payload_len;
51 params.
decode(&ptr, &remain);
57 cb.
error(e.
code(),
"Error handling PREAD message");
int32_t get_fd()
Gets file descriptor.
Broker * m_broker
Pointer to file system broker object.
Declarations for Read response callback.
uint64_t get_offset()
Gets file offset.
uint32_t get_amount()
Gets amount of data to read.
Declarations for Pread request handler.
Logging routines and macros.
Compatibility Macros for C/C++.
Declarations for Pread request parameters.
Functions to serialize/deserialize primitives to/from a memory buffer.
virtual void decode(const uint8_t **bufp, size_t *remainp)
Reads serialized representation of object from a buffer.
virtual void pread(Response::Callback::Read *cb, uint32_t fd, uint64_t offset, uint32_t amount, bool verify_checksum)=0
Read from file at position.
bool get_verify_checksum()
Gets verify checksum flag.
Application handler for read function.
virtual int error(int error, const String &msg)
Sends a standard error response back to the client.
Comm * m_comm
Pointer to comm layer.
This is a generic exception class for Hypertable.
EventPtr m_event
MESSAGE Event from which handler was initialized.
File system broker framework and client library.
Declarations for ResponseCallback.
Request parameters for pread requests.
virtual void run()
Invokes the pread function.
Error codes, Exception handling, error logging.
int code() const
Returns the error code.