58 using namespace Error;
62 : m_app_queue(app_queue), m_master(master), m_session_id(0) {
84 (
Llu)event->header.command);
92 switch (event->header.command) {
93 case Protocol::COMMAND_HANDSHAKE:
95 const uint8_t *decode =
event->payload;
96 size_t decode_remain =
event->payload_len;
179 (
Llu)event->header.command);
191 HT_INFOF(
"%s", event->to_str().c_str());
212 HT_INFOF(
"%s", event->to_str().c_str());
static Comm * instance()
Creates/returns singleton instance of the Comm class.
virtual void handle(EventPtr &event)
Callback method.
PropertiesPtr properties
This singleton map stores all options.
std::string String
A String is simply a typedef to std::string.
String format(const char *fmt,...)
Returns a String using printf like format facilities Vanilla snprintf is about 1.5x faster than this...
Declarations for RequestHandlerAttrDel.
Declarations for Protocol.
uint32_t m_maintenance_interval
long long unsigned int Llu
Shortcut for printf formats.
std::shared_ptr< Master > MasterPtr
std::shared_ptr< Event > EventPtr
Smart pointer to Event.
Unmarshalls request parameters and calls Master::attr_del().
Connection established event.
Declarations for RequestHandlerAttrExists.
uint64_t decode_i64(const uint8_t **bufp, size_t *remainp)
Decode a 64-bit integer in little-endian order.
const char * get_text(int error)
Returns a descriptive error message.
Compatibility Macros for C/C++.
Connection disconnected event.
This class is used to generate and deliver standard responses back to a client.
#define HT_FATALF(msg,...)
virtual int error(int error, const String &msg)
Sends a standard error response back to the client.
#define HT_INFOF(msg,...)
#define HT_THROWF(_code_, _fmt_,...)
Request/response message event.
This is a generic exception class for Hypertable.
Base clase for application handlers.
int set_timer(uint32_t duration_millis, const DispatchHandlerPtr &handler)
Sets a timer for duration_millis milliseconds in the future.
Declarations for ApplicationQueue.
Unmarshalls request parameters and calls Master::attr_exists().
std::shared_ptr< ApplicationQueue > ApplicationQueuePtr
Shared smart pointer to ApplicationQueue object.
String extensions and helpers: sets, maps, append operators etc.
Error codes, Exception handling, error logging.
#define HT_THROW(_code_, _msg_)
ApplicationQueuePtr m_app_queue
int code() const
Returns the error code.