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

Request parameters for replay status operation. More...

#include <ReplayStatus.h>

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

Public Member Functions

 ReplayStatus ()
 Constructor. More...
 
 ReplayStatus (int64_t op_id, const std::string &location, int32_t plan_generation)
 Constructor. More...
 
int64_t op_id ()
 Gets recovery operation ID. More...
 
const string & location () const
 Gets proxy name of RangeServer whose log is being replayed. More...
 
int32_t plan_generation ()
 Gets recovery plan generation. 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

int64_t m_op_id {}
 Recovery operation ID. More...
 
string m_location
 Proxy name of RangeServer whose log is being replayed. More...
 
int32_t m_plan_generation {}
 Recovery plan generation. More...
 

Additional Inherited Members

Detailed Description

Request parameters for replay status operation.

Definition at line 46 of file ReplayStatus.h.

Constructor & Destructor Documentation

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

Constructor.

Empty initialization for decoding.

Definition at line 51 of file ReplayStatus.h.

Hypertable::Lib::Master::Request::Parameters::ReplayStatus::ReplayStatus ( int64_t  op_id,
const std::string &  location,
int32_t  plan_generation 
)
inline

Constructor.

Initializes with parameters for encoding. Sets m_op_id to op_id, m_location to location, and m_plan_generation to plan_generation.

Parameters
op_idRecovery operation ID
locationProxy name of RangeServer whose log is being replayed
plan_generationRecovery plan generation

Definition at line 60 of file ReplayStatus.h.

Member Function Documentation

void ReplayStatus::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 70 of file ReplayStatus.cc.

void ReplayStatus::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
i64 Recovery operation ID
vstr Proxy name of RangeServer whose log is being replayed
i32 Recovery plan generation

Implements Hypertable::Serializable.

Definition at line 64 of file ReplayStatus.cc.

size_t ReplayStatus::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 40 of file ReplayStatus.cc.

uint8_t ReplayStatus::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 36 of file ReplayStatus.cc.

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

Gets proxy name of RangeServer whose log is being replayed.

Returns
Proxy name of RangeServer whose log is being replayed

Definition at line 70 of file ReplayStatus.h.

int64_t Hypertable::Lib::Master::Request::Parameters::ReplayStatus::op_id ( )
inline

Gets recovery operation ID.

Returns
Recovery operation ID

Definition at line 66 of file ReplayStatus.h.

int32_t Hypertable::Lib::Master::Request::Parameters::ReplayStatus::plan_generation ( )
inline

Gets recovery plan generation.

Returns
Recovery plan generation

Definition at line 74 of file ReplayStatus.h.

Member Data Documentation

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

Proxy name of RangeServer whose log is being replayed.

Definition at line 104 of file ReplayStatus.h.

int64_t Hypertable::Lib::Master::Request::Parameters::ReplayStatus::m_op_id {}
private

Recovery operation ID.

Definition at line 101 of file ReplayStatus.h.

int32_t Hypertable::Lib::Master::Request::Parameters::ReplayStatus::m_plan_generation {}
private

Recovery plan generation.

Definition at line 107 of file ReplayStatus.h.


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