46 const uint8_t *ptr =
m_event->payload;
47 size_t remain =
m_event->payload_len;
51 params.
decode(&ptr, &remain);
56 cb.
error(e.
code(),
"Error handling LENGTH message");
Broker * m_broker
Pointer to file system broker object.
virtual void run()
Invokes the length function.
Application handler for length function.
Logging routines and macros.
Compatibility Macros for C/C++.
bool get_accurate()
Gets accureate flag.
Functions to serialize/deserialize primitives to/from a memory buffer.
const char * get_fname()
Gets file name.
Comm * m_comm
Pointer to comm layer.
virtual void decode(const uint8_t **bufp, size_t *remainp)
Reads serialized representation of object from a buffer.
Declarations for Length request parameters.
virtual int error(int error, const String &msg)
Sends a standard error response back to the client.
This is a generic exception class for Hypertable.
EventPtr m_event
MESSAGE Event from which handler was initialized.
Declarations for Length request handler.
File system broker framework and client library.
Declarations for ResponseCallback.
Request parameters for length requests.
Error codes, Exception handling, error logging.
virtual void length(Response::Callback::Length *cb, const char *fname, bool accurate=true)=0
Get length of file.
int code() const
Returns the error code.