22 #ifndef Hypertable_Lib_StatsRangeServer_h
23 #define Hypertable_Lib_StatsRangeServer_h
33 #include <boost/algorithm/string.hpp>
62 return !(*
this == other);
97 virtual void encode_group(
int group, uint8_t **bufp)
const;
98 virtual void decode_group(
int group, uint16_t len,
const uint8_t **bufp,
size_t *remainp);
107 #endif // Hypertable_Lib_StatsRangeServer_h
Abstract base class for managing serialized statistics.
Base class managing serialized statistics.
std::shared_ptr< StatsRangeServer > StatsRangeServerPtr
Smart pointer to StatsRangeServer.
virtual void decode_group(int group, uint16_t len, const uint8_t **bufp, size_t *remainp)
Abstruct function to deserialize a group from a memory buffer.
uint64_t query_cache_max_memory
uint64_t block_cache_hits
Program options handling.
uint64_t query_cache_hits
Collecting and (de)serializing system-wide statistics.
void set_location(const std::string &loc)
std::vector< StatsTable > tables
void set_version(const std::string &ver)
std::shared_ptr< Properties > PropertiesPtr
virtual void encode_group(int group, uint8_t **bufp) const
Abstruct function to serialize a group into a memory buffer.
uint64_t block_cache_max_memory
uint64_t query_cache_accesses
Collects, serializes and deserializes system-wide statistics.
virtual size_t encoded_length_group(int group) const
Abstruct function returning the serialized length of a group.
std::map< const char *, StatsTable *, LtCstr > StatsTableMap
uint64_t block_cache_available_memory
uint64_t query_cache_available_memory
bool operator==(const StatsRangeServer &other) const
System information and statistics based on libsigar.
String extensions and helpers: sets, maps, append operators etc.
bool operator!=(const StatsRangeServer &other) const
uint64_t block_cache_accesses