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

RangeServer recovery receiver plan. More...

#include <ReceiverPlan.h>

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

Public Member Functions

 ReceiverPlan ()
 
 ReceiverPlan (const ReceiverPlan &other)
 
void insert (const String &location, const TableIdentifier &table, const RangeSpec &range, const RangeState &state)
 
void insert (const String &location, const QualifiedRangeSpec &qrs, const RangeState &state)
 
void remove (const QualifiedRangeSpec &qrs)
 
void get_locations (StringSet &locations) const
 
bool get_location (const QualifiedRangeSpec &spec, String &location) const
 
void get_range_specs (vector< QualifiedRangeSpec > &specs) const
 
void get_range_specs (const String &location, vector< QualifiedRangeSpec > &specs) const
 
void get_range_specs_and_states (vector< QualifiedRangeSpec > &specs, vector< RangeState > &states) const
 
void get_range_specs_and_states (const String &location, vector< QualifiedRangeSpec > &specs, vector< RangeState > &states) const
 
bool get_range_spec (const TableIdentifier &table, const char *row, QualifiedRangeSpec &spec) const
 
void clear ()
 
size_t size () const
 
bool empty () const
 
void copy (ReceiverPlan &other) const
 
- 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

ServerReceiverPlanContainer container
 
CharArena arena
 

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

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

Additional Inherited Members

Detailed Description

RangeServer recovery receiver plan.

Definition at line 48 of file ReceiverPlan.h.

Constructor & Destructor Documentation

Hypertable::Lib::RangeServerRecovery::ReceiverPlan::ReceiverPlan ( )
inline

Definition at line 50 of file ReceiverPlan.h.

ReceiverPlan::ReceiverPlan ( const ReceiverPlan other)

Definition at line 30 of file ReceiverPlan.cc.

Member Function Documentation

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

Definition at line 82 of file ReceiverPlan.h.

void ReceiverPlan::copy ( ReceiverPlan other) const

Definition at line 152 of file ReceiverPlan.cc.

void ReceiverPlan::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 199 of file ReceiverPlan.cc.

bool Hypertable::Lib::RangeServerRecovery::ReceiverPlan::empty ( ) const
inline

Definition at line 84 of file ReceiverPlan.h.

void ReceiverPlan::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 Server receiver plan count
For each server receiver plan
ServerReceiverPlan Server receiver plan

Implements Hypertable::Serializable.

Definition at line 192 of file ReceiverPlan.cc.

size_t ReceiverPlan::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 165 of file ReceiverPlan.cc.

uint8_t ReceiverPlan::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 161 of file ReceiverPlan.cc.

bool ReceiverPlan::get_location ( const QualifiedRangeSpec spec,
String location 
) const

Definition at line 69 of file ReceiverPlan.cc.

void ReceiverPlan::get_locations ( StringSet locations) const

Definition at line 58 of file ReceiverPlan.cc.

bool ReceiverPlan::get_range_spec ( const TableIdentifier table,
const char *  row,
QualifiedRangeSpec spec 
) const

if (!found) { range_it = range_index.begin(); HT_DEBUG_OUT << " Range not found " << table.id << " " << row << " existing ranges are..." << HT_END; while(range_it != range_index.end()) { HT_DEBUG_OUT << range_it->spec << HT_END; ++range_it; } }

Definition at line 116 of file ReceiverPlan.cc.

void ReceiverPlan::get_range_specs ( vector< QualifiedRangeSpec > &  specs) const

Definition at line 80 of file ReceiverPlan.cc.

void ReceiverPlan::get_range_specs ( const String location,
vector< QualifiedRangeSpec > &  specs 
) const

Definition at line 86 of file ReceiverPlan.cc.

void ReceiverPlan::get_range_specs_and_states ( vector< QualifiedRangeSpec > &  specs,
vector< RangeState > &  states 
) const

Definition at line 94 of file ReceiverPlan.cc.

void ReceiverPlan::get_range_specs_and_states ( const String location,
vector< QualifiedRangeSpec > &  specs,
vector< RangeState > &  states 
) const

Definition at line 104 of file ReceiverPlan.cc.

void ReceiverPlan::insert ( const String location,
const TableIdentifier table,
const RangeSpec range,
const RangeState state 
)

Definition at line 39 of file ReceiverPlan.cc.

void Hypertable::Lib::RangeServerRecovery::ReceiverPlan::insert ( const String location,
const QualifiedRangeSpec qrs,
const RangeState state 
)
inline

Definition at line 57 of file ReceiverPlan.h.

void ReceiverPlan::remove ( const QualifiedRangeSpec qrs)

Definition at line 50 of file ReceiverPlan.cc.

size_t Hypertable::Lib::RangeServerRecovery::ReceiverPlan::size ( ) const
inline

Definition at line 83 of file ReceiverPlan.h.

Friends And Related Function Documentation

ostream& operator<< ( ostream &  os,
const ReceiverPlan plan 
)
friend

Definition at line 116 of file ReceiverPlan.h.

Member Data Documentation

CharArena Hypertable::Lib::RangeServerRecovery::ReceiverPlan::arena

Definition at line 88 of file ReceiverPlan.h.

ServerReceiverPlanContainer Hypertable::Lib::RangeServerRecovery::ReceiverPlan::container

Definition at line 87 of file ReceiverPlan.h.


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