#include <StatsRangeServer.h>
Public Member Functions | |
StatsRangeServer () | |
StatsRangeServer (PropertiesPtr &props) | |
StatsRangeServer (const StatsRangeServer &other) | |
void | set_location (const std::string &loc) |
void | set_version (const std::string &ver) |
bool | operator== (const StatsRangeServer &other) const |
bool | operator!= (const StatsRangeServer &other) const |
Public Member Functions inherited from Hypertable::StatsSerializable | |
StatsSerializable (uint16_t _id, uint8_t _group_count) | |
Constructor; creates a new object with an ID and a number of groups. More... | |
StatsSerializable (const StatsSerializable &other) | |
Copy constructor. More... | |
StatsSerializable & | operator= (const StatsSerializable &other) |
Assignment operator. More... | |
size_t | encoded_length () const |
Returns the encoded length of this object. More... | |
void | encode (uint8_t **bufp) const |
Encodes the statistics to a serialized buffer. More... | |
void | decode (const uint8_t **bufp, size_t *remainp) |
Deserializes this object from a buffer. More... | |
bool | operator== (const StatsSerializable &other) const |
Equal operator. More... | |
bool | operator!= (const StatsSerializable &other) const |
Not Equal operator. More... | |
Public Attributes | |
std::string | location |
std::string | version |
int64_t | timestamp {} |
int32_t | range_count {} |
int32_t | scanner_count {} |
uint64_t | file_count {} |
uint64_t | scan_count {} |
uint64_t | scanned_cells {} |
uint64_t | scanned_bytes {} |
uint64_t | update_count {} |
uint64_t | updated_cells {} |
uint64_t | updated_bytes {} |
uint64_t | sync_count {} |
uint64_t | query_cache_max_memory {} |
uint64_t | query_cache_available_memory {} |
uint64_t | query_cache_accesses {} |
uint64_t | query_cache_hits {} |
uint64_t | block_cache_max_memory {} |
uint64_t | block_cache_available_memory {} |
uint64_t | block_cache_accesses {} |
uint64_t | block_cache_hits {} |
uint64_t | tracked_memory {} |
double | cpu_user {} |
double | cpu_sys {} |
bool | live {} |
StatsSystem | system |
std::vector< StatsTable > | tables |
StatsTableMap | table_map |
Protected Member Functions | |
virtual size_t | encoded_length_group (int group) const |
Abstruct function returning the serialized length of a group. More... | |
virtual void | encode_group (int group, uint8_t **bufp) const |
Abstruct function to serialize a group into a memory buffer. More... | |
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. More... | |
Additional Inherited Members | |
Protected Types inherited from Hypertable::StatsSerializable | |
enum | Identifier { SYSTEM = 1, RANGE = 2, TABLE = 3, RANGE_SERVER = 4 } |
Statistics identifer; assigned in constructor. More... | |
Protected Attributes inherited from Hypertable::StatsSerializable | |
uint16_t | id |
The statistics ID. More... | |
uint8_t | group_count |
Number of groups in group_ids. More... | |
uint8_t | group_ids [32] |
The actual group IDs. More... | |
Definition at line 42 of file StatsRangeServer.h.
StatsRangeServer::StatsRangeServer | ( | ) |
Definition at line 41 of file StatsRangeServer.cc.
StatsRangeServer::StatsRangeServer | ( | PropertiesPtr & | props | ) |
Definition at line 46 of file StatsRangeServer.cc.
StatsRangeServer::StatsRangeServer | ( | const StatsRangeServer & | other | ) |
Definition at line 71 of file StatsRangeServer.cc.
|
protectedvirtual |
Abstruct function to deserialize a group from a memory buffer.
group | The group id |
len | The size of the serialized group data |
bufp | Pointer to pointer to the serialized data |
remainp | Pointer to the remaining size |
Implements Hypertable::StatsSerializable.
Definition at line 193 of file StatsRangeServer.cc.
|
protectedvirtual |
Abstruct function to serialize a group into a memory buffer.
group | The group id |
bufp | Pointer to a pointer to the memory buffer |
Implements Hypertable::StatsSerializable.
Definition at line 157 of file StatsRangeServer.cc.
|
protectedvirtual |
Abstruct function returning the serialized length of a group.
group | The group id |
Implements Hypertable::StatsSerializable.
Definition at line 141 of file StatsRangeServer.cc.
|
inline |
Definition at line 61 of file StatsRangeServer.h.
bool StatsRangeServer::operator== | ( | const StatsRangeServer & | other | ) | const |
Definition at line 102 of file StatsRangeServer.cc.
|
inline |
Definition at line 52 of file StatsRangeServer.h.
|
inline |
Definition at line 56 of file StatsRangeServer.h.
uint64_t Hypertable::StatsRangeServer::block_cache_accesses {} |
Definition at line 84 of file StatsRangeServer.h.
uint64_t Hypertable::StatsRangeServer::block_cache_available_memory {} |
Definition at line 83 of file StatsRangeServer.h.
uint64_t Hypertable::StatsRangeServer::block_cache_hits {} |
Definition at line 85 of file StatsRangeServer.h.
uint64_t Hypertable::StatsRangeServer::block_cache_max_memory {} |
Definition at line 82 of file StatsRangeServer.h.
double Hypertable::StatsRangeServer::cpu_sys {} |
Definition at line 88 of file StatsRangeServer.h.
double Hypertable::StatsRangeServer::cpu_user {} |
Definition at line 87 of file StatsRangeServer.h.
uint64_t Hypertable::StatsRangeServer::file_count {} |
Definition at line 70 of file StatsRangeServer.h.
bool Hypertable::StatsRangeServer::live {} |
Definition at line 89 of file StatsRangeServer.h.
std::string Hypertable::StatsRangeServer::location |
Definition at line 65 of file StatsRangeServer.h.
uint64_t Hypertable::StatsRangeServer::query_cache_accesses {} |
Definition at line 80 of file StatsRangeServer.h.
uint64_t Hypertable::StatsRangeServer::query_cache_available_memory {} |
Definition at line 79 of file StatsRangeServer.h.
uint64_t Hypertable::StatsRangeServer::query_cache_hits {} |
Definition at line 81 of file StatsRangeServer.h.
uint64_t Hypertable::StatsRangeServer::query_cache_max_memory {} |
Definition at line 78 of file StatsRangeServer.h.
int32_t Hypertable::StatsRangeServer::range_count {} |
Definition at line 68 of file StatsRangeServer.h.
uint64_t Hypertable::StatsRangeServer::scan_count {} |
Definition at line 71 of file StatsRangeServer.h.
uint64_t Hypertable::StatsRangeServer::scanned_bytes {} |
Definition at line 73 of file StatsRangeServer.h.
uint64_t Hypertable::StatsRangeServer::scanned_cells {} |
Definition at line 72 of file StatsRangeServer.h.
int32_t Hypertable::StatsRangeServer::scanner_count {} |
Definition at line 69 of file StatsRangeServer.h.
uint64_t Hypertable::StatsRangeServer::sync_count {} |
Definition at line 77 of file StatsRangeServer.h.
StatsSystem Hypertable::StatsRangeServer::system |
Definition at line 91 of file StatsRangeServer.h.
StatsTableMap Hypertable::StatsRangeServer::table_map |
Definition at line 93 of file StatsRangeServer.h.
std::vector<StatsTable> Hypertable::StatsRangeServer::tables |
Definition at line 92 of file StatsRangeServer.h.
int64_t Hypertable::StatsRangeServer::timestamp {} |
Definition at line 67 of file StatsRangeServer.h.
uint64_t Hypertable::StatsRangeServer::tracked_memory {} |
Definition at line 86 of file StatsRangeServer.h.
uint64_t Hypertable::StatsRangeServer::update_count {} |
Definition at line 74 of file StatsRangeServer.h.
uint64_t Hypertable::StatsRangeServer::updated_bytes {} |
Definition at line 76 of file StatsRangeServer.h.
uint64_t Hypertable::StatsRangeServer::updated_cells {} |
Definition at line 75 of file StatsRangeServer.h.
std::string Hypertable::StatsRangeServer::version |
Definition at line 66 of file StatsRangeServer.h.