27 #ifndef Hypertable_Lib_Master_Request_Parameters_RegisterServer_h
28 #define Hypertable_Lib_Master_Request_Parameters_RegisterServer_h
41 namespace Parameters {
60 RegisterServer(
const std::string &location, uint16_t listen_port,
bool lock_held,
62 : m_location(location), m_listen_port(listen_port),
63 m_lock_held(lock_held), m_system_stats(system_stats) { }
67 const string&
location()
const {
return m_location; }
83 int64_t
now() {
return m_now; }
89 uint8_t encoding_version()
const override;
94 size_t encoded_length_internal()
const override;
98 void encode_internal(uint8_t **bufp)
const override;
106 void decode_internal(uint8_t version,
const uint8_t **bufp,
107 size_t *remainp)
override;
130 #endif // Hypertable_Lib_Master_Request_Parameters_RegisterServer_h
int64_t now()
Gets server current time.
string m_location
Location (proxy name)
Request parameters for register server operation.
int64_t m_now
Current time of registering server.
Collecting and (de)serializing system-wide statistics.
uint16_t listen_port()
Gets listen port.
const StatsSystem & system_stats() const
Gets system stats.
bool m_lock_held
Lock held flag.
Collects, serializes and deserializes system-wide statistics.
Declarations for Serializable.
uint16_t m_listen_port
Listen port.
Mixin class that provides a standard serialization interface.
RegisterServer(const std::string &location, uint16_t listen_port, bool lock_held, StatsSystem &system_stats)
Constructor.
const string & location() const
Gets location (proxy name)
bool lock_held()
Gets lock held flag.
RegisterServer()
Constructor.
StatsSystem m_system_stats
System stats