RangeServer recovery receiver plan.
More...
#include <ReceiverPlan.h>
|
| 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 |
|
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...
|
|
RangeServer recovery receiver plan.
Definition at line 48 of file ReceiverPlan.h.
Hypertable::Lib::RangeServerRecovery::ReceiverPlan::ReceiverPlan |
( |
| ) |
|
|
inline |
void Hypertable::Lib::RangeServerRecovery::ReceiverPlan::clear |
( |
| ) |
|
|
inline |
void ReceiverPlan::decode_internal |
( |
uint8_t |
version, |
|
|
const uint8_t ** |
bufp, |
|
|
size_t * |
remainp |
|
) |
| |
|
overrideprivatevirtual |
Reads serialized representation of object from a buffer.
- Parameters
-
version | Encoding version |
bufp | Address of destination buffer pointer (advanced by call) |
remainp | Address 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 |
void ReceiverPlan::encode_internal |
( |
uint8_t ** |
bufp | ) |
const |
|
overrideprivatevirtual |
Writes serialized representation of object to a buffer.
- Parameters
-
bufp | Address 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 |
uint8_t ReceiverPlan::encoding_version |
( |
| ) |
const |
|
overrideprivatevirtual |
void ReceiverPlan::get_locations |
( |
StringSet & |
locations | ) |
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.
size_t Hypertable::Lib::RangeServerRecovery::ReceiverPlan::size |
( |
| ) |
const |
|
inline |
ostream& operator<< |
( |
ostream & |
os, |
|
|
const ReceiverPlan & |
plan |
|
) |
| |
|
friend |
CharArena Hypertable::Lib::RangeServerRecovery::ReceiverPlan::arena |
The documentation for this class was generated from the following files:
- /home/doug/src/hypertable/src/cc/Hypertable/Lib/RangeServerRecovery/ReceiverPlan.h
- /home/doug/src/hypertable/src/cc/Hypertable/Lib/RangeServerRecovery/ReceiverPlan.cc