LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Functions
LogCabin::Client::anonymous_namespace{ClientImpl.cc} Namespace Reference

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.

Function Documentation

template<typename 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.

template<typename Message >
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.

Parameters:
[in]pathForward slash-delimited path (relative or absolute).
[out]componentsThe 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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines