internal::state::Entry 是什么,它在 mesos 中定义在哪里

what is internal::state::Entry and where is it defined in mesos

我尝试了项目apache mesos ZooKeeper部分,我想了解更多关于internal::state:Entry的用法 我看不到它在哪里定义或者它是否是 class?有人可以提供有关这部分的更多信息吗

条目是由 include/mesos/state/state.proto. It's compiled with other protobuf messages by Make (make calls protoc). Make generate protobuf compiled C++ files. After build you can find Entry in build/include/mesos/state/state.pb.h assuming you are following the official build guide 定义的消息。

条目用作 Data Access Object and could be wrrapped by Variable "to force immutability".

可以在 src/state/leveldb.cpp or src/state/in_memory.cpp 中找到条目的示例用法。正如您所看到的,它只是将 butes 包装起来,以允许找到它的某个名称进行保存。