41 unique_lock<mutex>
lock(m_mutex);
43 m_hyperspace->close_nowait(m_handle);
55 uint16_t port = m_props->get_i16(
"Hypertable.Master.Port");
58 m_hyperspace->attr_set(m_handle,
"address", addr_s.c_str(), addr_s.length());
59 HT_INFO(
"Successfully wrote master address to Hyperspace.");
67 return m_hyperspace->attr_incr(m_handle,
"next_server_id");
72 unique_lock<mutex>
lock(m_mutex);
std::string String
A String is simply a typedef to std::string.
Encapsulate an internet address.
Logging routines and macros.
Compatibility Macros for C/C++.
Declarations for HyperspaceMasterFile.
String format(int sep= ':') const
Returns a string with a dotted notation ("127.0.0.1:8080") including the port.
uint64_t next_server_id()
Obtains next server ID.
void write_master_address()
Writes Master's listen address to Hyperspace.
void lock(ResponseCallbackLock *cb, uint64_t session_id, uint64_t handle, uint32_t mode, bool try_lock)
~HyperspaceMasterFile()
Destructor.
System information and statistics based on libsigar.
static const NetInfo & net_info()
Retrieves updated Network information (see SystemInfo.h)