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::Balance Class Reference

Request parameters for balance operation. More...

#include <Balance.h>

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

Public Member Functions

 Balance ()
 Constructor. More...
 
 Balance (BalancePlan &plan)
 Constructor. More...
 
BalancePlanplan ()
 Gets balance plan. 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

BalancePlan m_plan
 Balance plan. More...
 

Additional Inherited Members

Detailed Description

Request parameters for balance operation.

Definition at line 48 of file Balance.h.

Constructor & Destructor Documentation

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

Constructor.

Empty initialization for decoding.

Definition at line 53 of file Balance.h.

Hypertable::Lib::Master::Request::Parameters::Balance::Balance ( BalancePlan plan)
inline

Constructor.

Initializes with parameters for encoding. Sets m_plan to plan.

Parameters
planBalance plan

Definition at line 59 of file Balance.h.

Member Function Documentation

void Balance::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 63 of file Balance.cc.

void Balance::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
BalancePlan Balance plan

Implements Hypertable::Serializable.

Definition at line 59 of file Balance.cc.

size_t Balance::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 43 of file Balance.cc.

uint8_t Balance::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 39 of file Balance.cc.

BalancePlan& Hypertable::Lib::Master::Request::Parameters::Balance::plan ( )
inline

Gets balance plan.

Returns
Balance plan

Definition at line 63 of file Balance.h.

Member Data Documentation

BalancePlan Hypertable::Lib::Master::Request::Parameters::Balance::m_plan
private

Balance plan.

Definition at line 90 of file Balance.h.


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