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 | Friends | List of all members
Hypertable::Lib::RangeServerRecovery::Plan Class Reference

RangeServer recovery plan. More...

#include <Plan.h>

Inheritance diagram for Hypertable::Lib::RangeServerRecovery::Plan:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::Lib::RangeServerRecovery::Plan:
Collaboration graph
[legend]

Public Member Functions

 Plan ()
 
 Plan (int type_)
 
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

int type
 Commit log type. More...
 
ReplayPlan replay_plan
 Replay plan. More...
 
ReceiverPlan receiver_plan
 Receiver plan. 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...
 

Friends

std::ostream & operator<< (std::ostream &os, const Plan &plan)
 

Additional Inherited Members

Detailed Description

RangeServer recovery plan.

Definition at line 49 of file Plan.h.

Constructor & Destructor Documentation

Hypertable::Lib::RangeServerRecovery::Plan::Plan ( )
inline

Definition at line 51 of file Plan.h.

Hypertable::Lib::RangeServerRecovery::Plan::Plan ( int  type_)
inline

Definition at line 52 of file Plan.h.

Member Function Documentation

void Hypertable::Lib::RangeServerRecovery::Plan::clear ( )
inline

Definition at line 54 of file Plan.h.

void Plan::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 68 of file Plan.cc.

void Plan::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
i32 Commit log type
ReplayPlan Replay plan
ReceiverPlan Receiver plan

Implements Hypertable::Serializable.

Definition at line 62 of file Plan.cc.

size_t Plan::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 38 of file Plan.cc.

uint8_t Plan::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 34 of file Plan.cc.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Plan plan 
)
friend

Definition at line 60 of file Plan.h.

Member Data Documentation

ReceiverPlan Hypertable::Lib::RangeServerRecovery::Plan::receiver_plan

Receiver plan.

Definition at line 73 of file Plan.h.

ReplayPlan Hypertable::Lib::RangeServerRecovery::Plan::replay_plan

Replay plan.

Definition at line 70 of file Plan.h.

int Hypertable::Lib::RangeServerRecovery::Plan::type

Commit log type.

Definition at line 67 of file Plan.h.


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