38 : m_app_queue(app_queue), m_mutator(mutator),
39 m_scatter_buffer(scatter_buffer), m_send_buffer(send_buffer),
40 m_auto_refresh(auto_refresh) {
57 const uint8_t *decode_ptr = event_ptr->payload + 4;
58 size_t decode_remain = event_ptr->payload_len - 4;
59 uint32_t count, offset, len;
61 if (decode_remain == 0) {
65 while (decode_remain) {
67 error =
decode_i32(&decode_ptr, &decode_remain);
68 count =
decode_i32(&decode_ptr, &decode_remain);
69 offset =
decode_i32(&decode_ptr, &decode_remain);
89 HT_WARNF(
"%s, will retry ...", event_ptr->to_str().c_str());
93 HT_ERRORF(
"%s", event_ptr->to_str().c_str());
void add_errors_all(uint32_t error)
#define HT_WARNF(msg,...)
static int32_t response_code(const Event *event)
Returns the response code from an event event generated in response to a request message.
TableMutatorAsyncSendBuffer * m_send_buffer
void add_retries_all(bool with_error=false, uint32_t error=0)
void add_retries(uint32_t count, uint32_t offset, uint32_t len)
std::shared_ptr< Event > EventPtr
Smart pointer to Event.
uint32_t decode_i32(const uint8_t **bufp, size_t *remainp)
Decode a 32-bit integer in little-endian order.
Provides the ability to mutate a table in the form of adding and deleting rows and cells...
ApplicationQueueInterfacePtr m_app_queue
TableMutatorAsync * m_mutator
virtual void handle(EventPtr &event_ptr)
Dispatch method.
TableMutatorAsyncCompletionCounter * counterp
Logging routines and macros.
Compatibility Macros for C/C++.
std::shared_ptr< ApplicationQueueInterface > ApplicationQueueInterfacePtr
Smart pointer to ApplicationQueueInterface.
uint32_t m_scatter_buffer
TableMutatorAsyncDispatchHandler(ApplicationQueueInterfacePtr &app_queue, TableMutatorAsync *mutator, uint32_t scatter_buffer, TableMutatorAsyncSendBuffer *send_buffer, bool auto_refresh)
Constructor.
Declarations for Protocol.
Request/response message event.
This is a generic exception class for Hypertable.
#define HT_ERRORF(msg,...)
void add_errors(int error, uint32_t count, uint32_t offset, uint32_t len)
Error codes, Exception handling, error logging.
This class is a DispatchHandler.