LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Namespaces | Classes | Typedefs | Functions | Variables
LogCabin::Server::RaftConsensusInternal Namespace Reference

Namespaces

namespace  anonymous_namespace{RaftConsensus.cc}

Classes

class  Invariants
class  Server
 A base class for known servers in the cluster, including this process (see LocalServer) and others (see Peer). More...
class  LocalServer
 A type of Server for the local process. More...
class  Peer
 Represents another server in the cluster. More...
class  Configuration
 A configuration defines the servers that are part of the cluster. More...
class  ConfigurationManager
 Ensures the current configuration reflects the latest state of the log and snapshot. More...
class  ClusterClock
 This is the rough equivalent of a SteadyClock that can be shared across the network with other Raft servers. More...

Typedefs

typedef
LogCabin::Core::Time::SteadyClock 
Clock
 Reads the current time.
typedef Clock::time_point TimePoint
 Some point in time relative to the Clock's epoch.
typedef Core::Mutex Mutex

Functions

std::ostream & operator<< (std::ostream &os, const Server &server)
std::ostream & operator<< (std::ostream &os, Configuration::State state)
std::ostream & operator<< (std::ostream &os, const Configuration &configuration)

Variables

bool startThreads
 True if this should actually spawn threads, false otherwise.

Typedef Documentation

Reads the current time.

This will refer to the best clock available on our system, which may or may not be monotonic.

Definition at line 90 of file RaftConsensus.h.

Some point in time relative to the Clock's epoch.

Definition at line 95 of file RaftConsensus.h.

Definition at line 97 of file RaftConsensus.h.


Function Documentation

std::ostream& LogCabin::Server::RaftConsensusInternal::operator<< ( std::ostream &  os,
const Server &  server 
)

Definition at line 70 of file RaftConsensus.cc.

std::ostream& LogCabin::Server::RaftConsensusInternal::operator<< ( std::ostream &  os,
Configuration::State  state 
)

Definition at line 686 of file RaftConsensus.cc.

std::ostream& LogCabin::Server::RaftConsensusInternal::operator<< ( std::ostream &  os,
const Configuration &  configuration 
)

Definition at line 707 of file RaftConsensus.cc.


Variable Documentation

True if this should actually spawn threads, false otherwise.

Normally set to true, but many unit tests set this to false.

Definition at line 51 of file RaftConsensus.cc.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines