0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Hypertable::Lib::Master::Response::Parameters::RegisterServer Class Reference

Response parameters for register server operation. More...

#include <RegisterServer.h>

Inheritance diagram for Hypertable::Lib::Master::Response::Parameters::RegisterServer:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::Lib::Master::Response::Parameters::RegisterServer:
Collaboration graph
[legend]

Public Member Functions

 RegisterServer ()
 Constructor. More...
 
 RegisterServer (const string &location, int64_t generation, vector< SystemVariable::Spec > &variables)
 Constructor. More...
 
const string & location () const
 Gets location (proxy name) More...
 
int64_t generation ()
 Gets system state generation. More...
 
const vector
< SystemVariable::Spec > & 
variables ()
 Gets state variables. More...
 
- Public Member Functions inherited from Hypertable::Serializable
virtual size_t encoded_length () const
 Returns serialized object length. More...
 
virtual void encode (uint8_t **bufp) const
 Writes serialized representation of object to a buffer. More...
 
virtual void decode (const uint8_t **bufp, size_t *remainp)
 Reads serialized representation of object from a buffer. More...
 

Private Member Functions

uint8_t encoding_version () const override
 Returns encoding version. More...
 
size_t encoded_length_internal () const override
 Returns internal serialized length. More...
 
void encode_internal (uint8_t **bufp) const override
 Writes serialized representation of object to a buffer. More...
 
void decode_internal (uint8_t version, const uint8_t **bufp, size_t *remainp) override
 Reads serialized representation of object from a buffer. More...
 

Private Attributes

string m_location
 Location (proxy name) More...
 
int64_t m_generation {}
 Sytem state generation. More...
 
vector< SystemVariable::Specm_variables
 System state variable specifications More...
 

Additional Inherited Members

Detailed Description

Response parameters for register server operation.

Definition at line 50 of file RegisterServer.h.

Constructor & Destructor Documentation

Hypertable::Lib::Master::Response::Parameters::RegisterServer::RegisterServer ( )
inline

Constructor.

Empty initialization for decoding.

Definition at line 55 of file RegisterServer.h.

Hypertable::Lib::Master::Response::Parameters::RegisterServer::RegisterServer ( const string &  location,
int64_t  generation,
vector< SystemVariable::Spec > &  variables 
)
inline

Constructor.

Initializes with parameters for encoding.

Parameters
locationLocation (proxy name)
generationSystem state generation
variablesSystem state variable specifications

Definition at line 62 of file RegisterServer.h.

Member Function Documentation

void RegisterServer::decode_internal ( uint8_t  version,
const uint8_t **  bufp,
size_t *  remainp 
)
overrideprivatevirtual

Reads serialized representation of object from a buffer.

Parameters
versionEncoding version
bufpAddress of destination buffer pointer (advanced by call)
remainpAddress of integer holding amount of serialized object remaining
See also
encode_internal() for encoding format

Implements Hypertable::Serializable.

Definition at line 86 of file RegisterServer.cc.

void RegisterServer::encode_internal ( uint8_t **  bufp) const
overrideprivatevirtual

Writes serialized representation of object to a buffer.

Parameters
bufpAddress of destination buffer pointer (advanced by call)

Encoding is as follows:

Encoding Description
vstr Location (proxy name)
i64 System state generation
i32 Count of system state variable specifications
For each system state variable specification ...
SystemVariable::Spec System state variable specification

Implements Hypertable::Serializable.

Definition at line 78 of file RegisterServer.cc.

size_t RegisterServer::encoded_length_internal ( ) const
overrideprivatevirtual

Returns internal serialized length.

Returns
Internal serialized length
See also
encode_internal() for encoding format

Implements Hypertable::Serializable.

Definition at line 44 of file RegisterServer.cc.

uint8_t RegisterServer::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 40 of file RegisterServer.cc.

int64_t Hypertable::Lib::Master::Response::Parameters::RegisterServer::generation ( )
inline

Gets system state generation.

Returns
System state generation

Definition at line 73 of file RegisterServer.h.

const string& Hypertable::Lib::Master::Response::Parameters::RegisterServer::location ( ) const
inline

Gets location (proxy name)

Returns
Location (proxy name)

Definition at line 69 of file RegisterServer.h.

const vector<SystemVariable::Spec>& Hypertable::Lib::Master::Response::Parameters::RegisterServer::variables ( )
inline

Gets state variables.

Returns
State variables

Definition at line 77 of file RegisterServer.h.

Member Data Documentation

int64_t Hypertable::Lib::Master::Response::Parameters::RegisterServer::m_generation {}
private

Sytem state generation.

Definition at line 107 of file RegisterServer.h.

string Hypertable::Lib::Master::Response::Parameters::RegisterServer::m_location
private

Location (proxy name)

Definition at line 104 of file RegisterServer.h.

vector<SystemVariable::Spec> Hypertable::Lib::Master::Response::Parameters::RegisterServer::m_variables
private

System state variable specifications

Definition at line 110 of file RegisterServer.h.


The documentation for this class was generated from the following files: