27 #ifndef Hypertable_Lib_Master_Response_Parameters_RegisterServer_h
28 #define Hypertable_Lib_Master_Response_Parameters_RegisterServer_h
44 namespace Parameters {
63 vector<SystemVariable::Spec> &variables)
64 : m_location(location), m_generation(generation),
65 m_variables(variables) { }
69 const string&
location()
const {
return m_location; }
77 const vector<SystemVariable::Spec> &
variables() {
return m_variables; }
83 uint8_t encoding_version()
const override;
88 size_t encoded_length_internal()
const override;
92 void encode_internal(uint8_t **bufp)
const override;
100 void decode_internal(uint8_t version,
const uint8_t **bufp,
101 size_t *remainp)
override;
107 int64_t m_generation {};
118 #endif // Hypertable_Lib_Master_Response_Parameters_RegisterServer_h
Declarations for SystemVariable.
Collecting and (de)serializing system-wide statistics.
int64_t generation()
Gets system state generation.
string m_location
Location (proxy name)
RegisterServer()
Constructor.
Declarations for Serializable.
RegisterServer(const string &location, int64_t generation, vector< SystemVariable::Spec > &variables)
Constructor.
const string & location() const
Gets location (proxy name)
Mixin class that provides a standard serialization interface.
vector< SystemVariable::Spec > m_variables
System state variable specifications
Response parameters for register server operation.
const vector< SystemVariable::Spec > & variables()
Gets state variables.