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

Tracks outstanding RangeServer recover requests. More...

#include <RecoveryStepFuture.h>

Collaboration diagram for Hypertable::RecoveryStepFuture:
Collaboration graph
[legend]

Public Types

typedef std::map< String,
std::pair< int32_t, String > > 
ErrorMapT
 

Public Member Functions

 RecoveryStepFuture (const String &label, int plan_generation)
 
void register_locations (StringSet &locations)
 
void status (const String &location, int plan_generation)
 
void success (const String &location, int plan_generation)
 
void failure (const String &location, int plan_generation, int32_t error, const String &message)
 
bool wait_for_completion (uint32_t initial_timeout)
 
void get_error_map (ErrorMapT &error_map)
 

Protected Attributes

std::mutex m_mutex
 
std::condition_variable m_cond
 
String m_label
 
StringSet m_outstanding
 
StringSet m_success
 
ErrorMapT m_error_map
 
int m_plan_generation
 
bool m_extend_timeout
 

Detailed Description

Tracks outstanding RangeServer recover requests.

Definition at line 42 of file RecoveryStepFuture.h.

Member Typedef Documentation

typedef std::map<String, std::pair<int32_t, String> > Hypertable::RecoveryStepFuture::ErrorMapT

Definition at line 45 of file RecoveryStepFuture.h.

Constructor & Destructor Documentation

Hypertable::RecoveryStepFuture::RecoveryStepFuture ( const String label,
int  plan_generation 
)
inline

Definition at line 47 of file RecoveryStepFuture.h.

Member Function Documentation

void Hypertable::RecoveryStepFuture::failure ( const String location,
int  plan_generation,
int32_t  error,
const String message 
)
inline

Definition at line 87 of file RecoveryStepFuture.h.

void Hypertable::RecoveryStepFuture::get_error_map ( ErrorMapT error_map)
inline

Definition at line 137 of file RecoveryStepFuture.h.

void Hypertable::RecoveryStepFuture::register_locations ( StringSet locations)
inline

Definition at line 51 of file RecoveryStepFuture.h.

void Hypertable::RecoveryStepFuture::status ( const String location,
int  plan_generation 
)
inline

Definition at line 60 of file RecoveryStepFuture.h.

void Hypertable::RecoveryStepFuture::success ( const String location,
int  plan_generation 
)
inline

Definition at line 66 of file RecoveryStepFuture.h.

bool Hypertable::RecoveryStepFuture::wait_for_completion ( uint32_t  initial_timeout)
inline

Definition at line 109 of file RecoveryStepFuture.h.

Member Data Documentation

std::condition_variable Hypertable::RecoveryStepFuture::m_cond
protected

Definition at line 144 of file RecoveryStepFuture.h.

ErrorMapT Hypertable::RecoveryStepFuture::m_error_map
protected

Definition at line 148 of file RecoveryStepFuture.h.

bool Hypertable::RecoveryStepFuture::m_extend_timeout
protected

Definition at line 150 of file RecoveryStepFuture.h.

String Hypertable::RecoveryStepFuture::m_label
protected

Definition at line 145 of file RecoveryStepFuture.h.

std::mutex Hypertable::RecoveryStepFuture::m_mutex
protected

Definition at line 143 of file RecoveryStepFuture.h.

StringSet Hypertable::RecoveryStepFuture::m_outstanding
protected

Definition at line 146 of file RecoveryStepFuture.h.

int Hypertable::RecoveryStepFuture::m_plan_generation
protected

Definition at line 149 of file RecoveryStepFuture.h.

StringSet Hypertable::RecoveryStepFuture::m_success
protected

Definition at line 147 of file RecoveryStepFuture.h.


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