42 : m_client(comm, timeout), m_table_identifier(table_id) {
48 lock_guard<mutex> lock(
m_mutex);
51 pair<CommAddressSet::iterator, bool> res =
m_pending.insert(addr);
60 result.
msg =
"Send error";
67 lock_guard<mutex> lock(
m_mutex);
83 <<
"Received 'commit log sync ack' from unexpected address '"
89 result.
error = event_ptr->error;
101 lock_guard<mutex> lock(
m_mutex);
112 result.
msg =
"Send error";
122 unique_lock<mutex> lock(
m_mutex);
vector< ErrorResult > m_errors
void add(const CommAddress &addr)
Adds.
bool wait_for_completion()
static int32_t response_code(const Event *event)
Returns the response code from an event event generated in response to a request message.
static String string_format_message(const Event *event)
Returns error message decoded standard error MESSAGE generated in response to a request message...
RangeServer::Client m_client
void commit_log_sync(const CommAddress &addr, uint64_t cluster_id, const TableIdentifier &table, DispatchHandler *handler)
Issues a "commit_log_sync" request asynchronously.
std::vector< String > errors
std::shared_ptr< Event > EventPtr
Smart pointer to Event.
~TableMutatorSyncDispatchHandler()
Destructor.
virtual void handle(EventPtr &event_ptr)
Dispatch method.
std::condition_variable m_cond
Wrapper for TableIdentifier providing member storage.
Declarations for TableMutatorSyncDispatchHandler.
Logging routines and macros.
void set_proxy(const String &str)
Sets address type to CommAddress::PROXY and proxy name to p.
static uint64_t get()
Gets the cluster ID.
Compatibility Macros for C/C++.
TableIdentifierManaged & m_table_identifier
String to_str() const
Returns string representation of address.
void get_errors(vector< ErrorResult > &errors)
Entry point to AsyncComm service.
Declarations for Protocol.
Request/response message event.
This is a generic exception class for Hypertable.
TableMutatorSyncDispatchHandler(Comm *comm, TableIdentifierManaged &table_id, time_t timeout)
Constructor.
Error codes, Exception handling, error logging.
Declarations for ClusterId.
Address abstraction to hold either proxy name or IPv4:port address.
int code() const
Returns the error code.