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

#include <FailureInducer.h>

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

Classes

struct  failure_inducer_state
 Internal structure to store a single failure setting. More...
 

Public Member Functions

void parse_option (String spec)
 Parses a spec string (as explained above) and stores it in an internal structure. More...
 
void maybe_fail (const String &label)
 Tests and executes the induced failures. More...
 
bool failure_signalled (const String &label)
 Returns true if a failure was signalled. More...
 
void clear ()
 Clears the failure inducer. More...
 

Static Public Member Functions

static bool enabled ()
 Returns true if the FailureInducer is enabled (= if an instance was allocated) More...
 

Static Public Attributes

static FailureInducerinstance = 0
 This is a singleton class. More...
 

Private Types

typedef std::unordered_map
< String,
failure_inducer_state * > 
StateMap
 

Private Member Functions

void parse_option_single (String option)
 Helper function to parse a single option. More...
 

Private Attributes

std::mutex m_mutex
 A mutex to serialize access. More...
 
StateMap m_state_map
 A list of all failure settings. More...
 

Detailed Description

Definition at line 65 of file FailureInducer.h.


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