LogCabin
Classes | Namespaces | Typedefs | Enumerations | Functions
include/LogCabin/Client.h File Reference

This file declares the interface for LogCabin's client library. More...

#include <cstddef>
#include <memory>
#include <map>
#include <mutex>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  LogCabin::Client::Server
 A member of the cluster Configuration. More...
struct  LogCabin::Client::ConfigurationResult
 Returned by Cluster::setConfiguration. More...
struct  LogCabin::Client::GetConfigurationResult
 Returned by Cluster::getConfiguration2(). More...
struct  LogCabin::Client::Result
 Returned by Tree operations; contain a status code and an error message. More...
class  LogCabin::Client::Exception
 Base class for LogCabin client exceptions. More...
class  LogCabin::Client::InvalidArgumentException
 See Status::INVALID_ARGUMENT. More...
class  LogCabin::Client::LookupException
 See Status::LOOKUP_ERROR. More...
class  LogCabin::Client::TypeException
 See Status::TYPE_ERROR. More...
class  LogCabin::Client::ConditionNotMetException
 See Status::CONDITION_NOT_MET. More...
class  LogCabin::Client::TimeoutException
 See Status::TIMEOUT. More...
class  LogCabin::Client::ConfigurationExceptionBad
 See ConfigurationResult::BAD. More...
class  LogCabin::Client::ConfigurationExceptionChanged
 See ConfigurationResult::CHANGED. More...
class  LogCabin::Client::Tree
 Provides access to the hierarchical key-value store. More...
class  LogCabin::Client::TestingCallbacks
 When running in testing mode, these callbacks serve as a way for the application to interpose on requests and responses to inject failures and model dynamic scenarios. More...
class  LogCabin::Client::Cluster
 A handle to the LogCabin cluster. More...

Namespaces

namespace  LogCabin
namespace  LogCabin::Core
namespace  LogCabin::Core::Debug
namespace  LogCabin::Protocol
namespace  LogCabin::Protocol::Client
namespace  LogCabin::Client

Typedefs

typedef std::vector< Server > LogCabin::Client::Configuration
 Defines the members of the cluster.

Enumerations

enum  LogCabin::Client::Status {
  LogCabin::Client::OK,
  LogCabin::Client::INVALID_ARGUMENT,
  LogCabin::Client::LOOKUP_ERROR,
  LogCabin::Client::TYPE_ERROR,
  LogCabin::Client::CONDITION_NOT_MET,
  LogCabin::Client::TIMEOUT
}
 Status codes returned by Tree operations. More...

Functions

std::ostream & LogCabin::Client::operator<< (std::ostream &os, Status status)
 Print a status code to a stream.

Detailed Description

This file declares the interface for LogCabin's client library.

Definition in file Client.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines