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

Holds dynamic server state. More...

#include <ServerState.h>

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

Public Member Functions

 ServerState ()
 Constructor. More...
 
virtual ~ServerState ()
 Destructor. More...
 
bool readonly ()
 Returns value of READONLY variable. More...
 
void set (int64_t generation, const std::vector< SystemVariable::Spec > &specs)
 Sets state variables. More...
 

Private Attributes

std::mutex m_mutex
 Mutex for serializing concurrent access More...
 
int64_t m_generation {}
 System state generation. More...
 
std::vector< SystemVariable::Specm_specs
 System state variable specifications. More...
 

Detailed Description

Holds dynamic server state.

Definition at line 40 of file ServerState.h.

Constructor & Destructor Documentation

ServerState::ServerState ( )

Constructor.

This constructor initializes the m_specs array to the set of know variables and their default values.

Definition at line 37 of file ServerState.cc.

virtual Hypertable::ServerState::~ServerState ( )
inlinevirtual

Destructor.

Definition at line 50 of file ServerState.h.

Member Function Documentation

bool ServerState::readonly ( )

Returns value of READONLY variable.

Returns
Value of READONLY variable

Definition at line 46 of file ServerState.cc.

void ServerState::set ( int64_t  generation,
const std::vector< SystemVariable::Spec > &  specs 
)

Sets state variables.

Parameters
generationGeneration number of state variables
specsVector of state variables

Definition at line 50 of file ServerState.cc.

Member Data Documentation

int64_t Hypertable::ServerState::m_generation {}
private

System state generation.

Definition at line 67 of file ServerState.h.

std::mutex Hypertable::ServerState::m_mutex
private

Mutex for serializing concurrent access

Definition at line 64 of file ServerState.h.

std::vector<SystemVariable::Spec> Hypertable::ServerState::m_specs
private

System state variable specifications.

Definition at line 70 of file ServerState.h.


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