45 const uint8_t *ptr =
m_event->payload;
46 size_t remain =
m_event->payload_len;
50 params.
decode(&ptr, &remain);
55 cb.
error(e.
code(),
"Error handling rename request");
Declarations for Rename request parameters.
Request parameters for rename requests.
virtual void run()
Invokes the rename function.
Logging routines and macros.
Compatibility Macros for C/C++.
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.
Comm * m_comm
Pointer to comm layer.
This class is used to generate and deliver standard responses back to a client.
Declarations for Rename request handler.
virtual int error(int error, const String &msg)
Sends a standard error response back to the client.
virtual void rename(ResponseCallback *cb, const char *src, const char *dst)=0
Rename a file from src to dst.
const char * get_from()
Gets original file name.
This is a generic exception class for Hypertable.
EventPtr m_event
MESSAGE Event from which handler was initialized.
const char * get_to()
Gets new file name.
File system broker framework and client library.
Declarations for ResponseCallback.
Error codes, Exception handling, error logging.
Broker * m_broker
Pointer to file system broker object.
int code() const
Returns the error code.