0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | Private Member Functions | Related Functions | List of all members
Hypertable::BalancePlan Class Reference

Balance plan. More...

#include <BalancePlan.h>

Inheritance diagram for Hypertable::BalancePlan:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::BalancePlan:
Collaboration graph
[legend]

Public Member Functions

 BalancePlan (const std::string &algorithm_=std::string())
 
 BalancePlan (const BalancePlan &other)
 
bool empty ()
 
void clear ()
 
- 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...
 

Public Attributes

std::vector< RangeMoveSpecPtrmoves
 
std::string algorithm
 
int32_t duration_millis {}
 

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...
 

Related Functions

(Note that these are not member functions.)

ostream & operator<< (ostream &os, const BalancePlan &plan)
 

Additional Inherited Members

Detailed Description

Balance plan.

Definition at line 38 of file BalancePlan.h.

Constructor & Destructor Documentation

Hypertable::BalancePlan::BalancePlan ( const std::string &  algorithm_ = std::string())
inline

Definition at line 40 of file BalancePlan.h.

BalancePlan::BalancePlan ( const BalancePlan other)

Definition at line 33 of file BalancePlan.cc.

Member Function Documentation

void Hypertable::BalancePlan::clear ( )
inline

Definition at line 46 of file BalancePlan.h.

void BalancePlan::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 87 of file BalancePlan.cc.

bool Hypertable::BalancePlan::empty ( )
inline

Definition at line 44 of file BalancePlan.h.

void BalancePlan::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 Algorithm
i32 Duration in milliseconds
i32 Move count
For each move ...
RangeMoveSpec Range move specification

Implements Hypertable::Serializable.

Definition at line 79 of file BalancePlan.cc.

size_t BalancePlan::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 BalancePlan.cc.

uint8_t BalancePlan::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 40 of file BalancePlan.cc.

Friends And Related Function Documentation

ostream & operator<< ( ostream &  os,
const BalancePlan plan 
)
related

Definition at line 103 of file BalancePlan.cc.

Member Data Documentation

std::string Hypertable::BalancePlan::algorithm

Definition at line 52 of file BalancePlan.h.

int32_t Hypertable::BalancePlan::duration_millis {}

Definition at line 53 of file BalancePlan.h.

std::vector<RangeMoveSpecPtr> Hypertable::BalancePlan::moves

Definition at line 51 of file BalancePlan.h.


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