45 const uint8_t *ptr =
m_event->payload;
46 size_t remain =
m_event->payload_len;
50 params.
decode(&ptr, &remain);
57 cb.
error(e.
code(),
"Error handling CREATE message");
Declarations for Create request handler.
File system broker definitions.
int32_t get_buffer_size()
Gets buffer size.
Logging routines and macros.
Compatibility Macros for C/C++.
Declarations for Create request parameters.
int64_t get_block_size()
Gets block size.
virtual void create(Response::Callback::Open *cb, const char *fname, uint32_t flags, int32_t bufsz, int16_t replication, int64_t blksz)=0
Open a file, and create it if it doesn't exist, optionally overwriting the contents.
Functions to serialize/deserialize primitives to/from a memory buffer.
Comm * m_comm
Pointer to comm layer.
Broker * m_broker
Pointer to file system broker object.
virtual void decode(const uint8_t **bufp, size_t *remainp)
Reads serialized representation of object from a buffer.
int32_t get_replication()
Gets replication factor.
Application handler for open function.
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.
const char * get_name()
Gets file name.
virtual void run()
Invokes the create function.
File system broker framework and client library.
Declarations for ResponseCallback.
Error codes, Exception handling, error logging.
uint32_t get_flags()
Gets create flags.
Request parameters for create requests.
int code() const
Returns the error code.