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::Request::Parameters::RegisterServer Class Reference

Request parameters for register server operation. More...

#include <RegisterServer.h>

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

Public Member Functions

 RegisterServer ()
 Constructor. More...
 
 RegisterServer (const std::string &location, uint16_t listen_port, bool lock_held, StatsSystem &system_stats)
 Constructor. More...
 
const string & location () const
 Gets location (proxy name) More...
 
uint16_t listen_port ()
 Gets listen port. More...
 
bool lock_held ()
 Gets lock held flag. More...
 
const StatsSystemsystem_stats () const
 Gets system stats. More...
 
int64_t now ()
 Gets server current time. 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...
 
uint16_t m_listen_port
 Listen port. More...
 
bool m_lock_held
 Lock held flag. More...
 
StatsSystem m_system_stats
 System stats More...
 
int64_t m_now
 Current time of registering server. More...
 

Additional Inherited Members

Detailed Description

Request parameters for register server operation.

Definition at line 47 of file RegisterServer.h.

Constructor & Destructor Documentation

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

Constructor.

Empty initialization for decoding.

Definition at line 52 of file RegisterServer.h.

Hypertable::Lib::Master::Request::Parameters::RegisterServer::RegisterServer ( const std::string &  location,
uint16_t  listen_port,
bool  lock_held,
StatsSystem system_stats 
)
inline

Constructor.

Initializes with parameters for encoding.

Parameters
locationLocation (proxy name)
listen_portListen port
lock_heldLock held flag
system_statsSystem stats

Definition at line 60 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 85 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)
i16 Listen port
bool Lock held flag
StatsSystem System statistics
i64 Current time (nanoseconds since Epoch)

Implements Hypertable::Serializable.

Definition at line 77 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.

uint16_t Hypertable::Lib::Master::Request::Parameters::RegisterServer::listen_port ( )
inline

Gets listen port.

Returns
Listen port

Definition at line 71 of file RegisterServer.h.

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

Gets location (proxy name)

Returns
Location (proxy name)

Definition at line 67 of file RegisterServer.h.

bool Hypertable::Lib::Master::Request::Parameters::RegisterServer::lock_held ( )
inline

Gets lock held flag.

Returns
Lock held flag

Definition at line 75 of file RegisterServer.h.

int64_t Hypertable::Lib::Master::Request::Parameters::RegisterServer::now ( )
inline

Gets server current time.

Returns
Server current time

Definition at line 83 of file RegisterServer.h.

const StatsSystem& Hypertable::Lib::Master::Request::Parameters::RegisterServer::system_stats ( ) const
inline

Gets system stats.

Returns
System stats

Definition at line 79 of file RegisterServer.h.

Member Data Documentation

uint16_t Hypertable::Lib::Master::Request::Parameters::RegisterServer::m_listen_port
private

Listen port.

Definition at line 113 of file RegisterServer.h.

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

Location (proxy name)

Definition at line 110 of file RegisterServer.h.

bool Hypertable::Lib::Master::Request::Parameters::RegisterServer::m_lock_held
private

Lock held flag.

Definition at line 116 of file RegisterServer.h.

int64_t Hypertable::Lib::Master::Request::Parameters::RegisterServer::m_now
private

Current time of registering server.

Definition at line 122 of file RegisterServer.h.

StatsSystem Hypertable::Lib::Master::Request::Parameters::RegisterServer::m_system_stats
private

System stats

Definition at line 119 of file RegisterServer.h.


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