LogCabin
Namespaces | Functions
Client/ClientImpl.cc File Reference
#include <algorithm>
#include "Core/Debug.h"
#include "Client/ClientImpl.h"
#include "Core/ProtoBuf.h"
#include "Core/StringUtil.h"
#include "Protocol/Common.h"
#include "RPC/Address.h"
#include "RPC/ClientRPC.h"
#include "RPC/ClientSession.h"

Go to the source code of this file.

Namespaces

namespace  LogCabin
namespace  LogCabin::Client
namespace  LogCabin::Client::anonymous_namespace{ClientImpl.cc}

Functions

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.
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.
void LogCabin::Client::anonymous_namespace{ClientImpl.cc}::split (const std::string &path, std::vector< std::string > &components)
 Split a path into its components.
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.
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.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines