LogCabin
|
Functions | |
template<typename Message > | |
Result | treeError (const Message &response) |
Parse an error response out of a ProtoBuf and into a Result object. | |
template<typename Message > | |
void | setCondition (Message &request, const Condition &condition) |
If the client has specified a condition for the operation, serialize it into the request message. | |
void | split (const std::string &path, std::vector< std::string > &components) |
Split a path into its components. | |
void | treeCall (LeaderRPCBase &leaderRPC, const Protocol::Client::ReadOnlyTree::Request &request, Protocol::Client::ReadOnlyTree::Response &response, ClientImpl::TimePoint timeout) |
Wrapper around LeaderRPC::call() that repackages a timeout as a ReadOnlyTree status and error message. | |
void | treeCall (LeaderRPCBase &leaderRPC, const Protocol::Client::ReadWriteTree::Request &request, Protocol::Client::ReadWriteTree::Response &response, ClientImpl::TimePoint timeout) |
Wrapper around LeaderRPC::call() that repackages a timeout as a ReadWriteTree status and error message. |
Result LogCabin::Client::anonymous_namespace{ClientImpl.cc}::treeError | ( | const Message & | response | ) |
Parse an error response out of a ProtoBuf and into a Result object.
Definition at line 37 of file ClientImpl.cc.
void LogCabin::Client::anonymous_namespace{ClientImpl.cc}::setCondition | ( | Message & | request, |
const Condition & | condition | ||
) |
If the client has specified a condition for the operation, serialize it into the request message.
Definition at line 83 of file ClientImpl.cc.
void LogCabin::Client::anonymous_namespace{ClientImpl.cc}::split | ( | const std::string & | path, |
std::vector< std::string > & | components | ||
) |
Split a path into its components.
Helper for ClientImpl::canonicalize.
[in] | path | Forward slash-delimited path (relative or absolute). |
[out] | components | The components of path are appended to this vector. |
Definition at line 99 of file ClientImpl.cc.
void LogCabin::Client::anonymous_namespace{ClientImpl.cc}::treeCall | ( | LeaderRPCBase & | leaderRPC, |
const Protocol::Client::ReadOnlyTree::Request & | request, | ||
Protocol::Client::ReadOnlyTree::Response & | response, | ||
ClientImpl::TimePoint | timeout | ||
) |
Wrapper around LeaderRPC::call() that repackages a timeout as a ReadOnlyTree status and error message.
Definition at line 121 of file ClientImpl.cc.
void LogCabin::Client::anonymous_namespace{ClientImpl.cc}::treeCall | ( | LeaderRPCBase & | leaderRPC, |
const Protocol::Client::ReadWriteTree::Request & | request, | ||
Protocol::Client::ReadWriteTree::Response & | response, | ||
ClientImpl::TimePoint | timeout | ||
) |
Wrapper around LeaderRPC::call() that repackages a timeout as a ReadWriteTree status and error message.
Also checks whether getRPCInfo timed out.
Definition at line 165 of file ClientImpl.cc.