zookeeper-cpp
ZooKeeper Client for C++
|
Statistics about a ZooKeeper entry, similar to the UNIX stat
structure.
More...
#include <zk/types.hpp>
Public Types | |
using | time_point = std::chrono::system_clock::time_point |
Public Member Functions | |
bool | is_ephemeral () const |
Is the entry an ephemeral entry? More... | |
Public Attributes | |
transaction_id | create_transaction |
The transaction ID that created the entry. More... | |
transaction_id | modified_transaction |
The last transaction that modified the entry. More... | |
transaction_id | child_modified_transaction |
The transaction ID that last modified the children of the entry. More... | |
time_point | create_time |
Time the entry was created. More... | |
time_point | modified_time |
Last time the entry was last modified. Like create_time, this is not a reliable source. More... | |
zk::version | data_version |
The number of changes to the data of the entry. More... | |
zk::child_version | child_version |
The number of changes to the children of the entry. More... | |
zk::acl_version | acl_version |
The number of changes to the ACL of the entry. More... | |
std::uint64_t | ephemeral_owner |
The session ID of the owner of this entry, if it is an ephemeral entry. More... | |
std::size_t | data_size |
The size of the data field of the entry. More... | |
std::size_t | children_count |
The number of children this entry has. More... | |
Statistics about a ZooKeeper entry, similar to the UNIX stat
structure.
stat
structure.
|
inline |
zk::acl_version zk::stat::acl_version |
transaction_id zk::stat::child_modified_transaction |
zk::child_version zk::stat::child_version |
std::size_t zk::stat::children_count |
time_point zk::stat::create_time |
Time the entry was created.
create_transaction
(created after) will have a lower create_time
(appear to have been created before). transaction_id zk::stat::create_transaction |
std::size_t zk::stat::data_size |
zk::version zk::stat::data_version |
The number of changes to the data of the entry.
This value is used in operations like client::set
that take a version check before modifying data.
std::uint64_t zk::stat::ephemeral_owner |
The session ID of the owner of this entry, if it is an ephemeral entry.
In general, this is not useful beyond a check for being 0
.
time_point zk::stat::modified_time |
Last time the entry was last modified. Like create_time, this is not a reliable source.
transaction_id zk::stat::modified_transaction |