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

Tracks outstanding RangeServer update requests. More...

#include <TableMutatorAsyncCompletionCounter.h>

Public Member Functions

 TableMutatorAsyncCompletionCounter ()
 
void set (size_t count)
 
bool decrement ()
 
void set_retries ()
 
void set_errors ()
 
bool has_retries ()
 
bool has_errors ()
 
void clear_errors ()
 

Private Attributes

std::mutex m_mutex
 
size_t m_outstanding {}
 
bool m_done {}
 
bool m_retries {}
 
bool m_errors {}
 

Detailed Description

Tracks outstanding RangeServer update requests.

This class is used to track the state of outstanding RangeServer update requests for a scatter send. It is initialized with the number of updates issued. When each update returns or times out the counter is decremented and when all updates have completed or timed out, an object of this class will signal completion.

Definition at line 39 of file TableMutatorAsyncCompletionCounter.h.

Constructor & Destructor Documentation

Hypertable::TableMutatorAsyncCompletionCounter::TableMutatorAsyncCompletionCounter ( )
inline

Definition at line 41 of file TableMutatorAsyncCompletionCounter.h.

Member Function Documentation

void Hypertable::TableMutatorAsyncCompletionCounter::clear_errors ( )
inline

Definition at line 67 of file TableMutatorAsyncCompletionCounter.h.

bool Hypertable::TableMutatorAsyncCompletionCounter::decrement ( )
inline

Definition at line 50 of file TableMutatorAsyncCompletionCounter.h.

bool Hypertable::TableMutatorAsyncCompletionCounter::has_errors ( )
inline

Definition at line 65 of file TableMutatorAsyncCompletionCounter.h.

bool Hypertable::TableMutatorAsyncCompletionCounter::has_retries ( )
inline

Definition at line 63 of file TableMutatorAsyncCompletionCounter.h.

void Hypertable::TableMutatorAsyncCompletionCounter::set ( size_t  count)
inline

Definition at line 43 of file TableMutatorAsyncCompletionCounter.h.

void Hypertable::TableMutatorAsyncCompletionCounter::set_errors ( )
inline

Definition at line 61 of file TableMutatorAsyncCompletionCounter.h.

void Hypertable::TableMutatorAsyncCompletionCounter::set_retries ( )
inline

Definition at line 59 of file TableMutatorAsyncCompletionCounter.h.

Member Data Documentation

bool Hypertable::TableMutatorAsyncCompletionCounter::m_done {}
private

Definition at line 72 of file TableMutatorAsyncCompletionCounter.h.

bool Hypertable::TableMutatorAsyncCompletionCounter::m_errors {}
private

Definition at line 74 of file TableMutatorAsyncCompletionCounter.h.

std::mutex Hypertable::TableMutatorAsyncCompletionCounter::m_mutex
private

Definition at line 70 of file TableMutatorAsyncCompletionCounter.h.

size_t Hypertable::TableMutatorAsyncCompletionCounter::m_outstanding {}
private

Definition at line 71 of file TableMutatorAsyncCompletionCounter.h.

bool Hypertable::TableMutatorAsyncCompletionCounter::m_retries {}
private

Definition at line 73 of file TableMutatorAsyncCompletionCounter.h.


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