LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
LogCabin::Server::ClientService Class Reference

This is LogCabin's application-facing RPC service. More...

#include <ClientService.h>

Inheritance diagram for LogCabin::Server::ClientService:
LogCabin::RPC::Service

List of all members.

Public Member Functions

 ClientService (Globals &globals)
 Constructor.
 ~ClientService ()
 Destructor.
void handleRPC (RPC::ServerRPC rpc)
 This method is overridden by a subclass and invoked by the Server class when a new RPC arrives.
std::string getName () const
 Return a short name for this service which can be used in things like log messages.

Private Member Functions

void getServerInfo (RPC::ServerRPC rpc)
void getConfiguration (RPC::ServerRPC rpc)
void setConfiguration (RPC::ServerRPC rpc)
void stateMachineCommand (RPC::ServerRPC rpc)
void stateMachineQuery (RPC::ServerRPC rpc)
void verifyRecipient (RPC::ServerRPC rpc)
 ClientService (const ClientService &)
ClientServiceoperator= (const ClientService &)

Private Attributes

Globalsglobals
 The LogCabin daemon's top-level objects.

Detailed Description

This is LogCabin's application-facing RPC service.

As some of these RPCs may be long-running, this is intended to run under a RPC::ThreadDispatchService.

Definition at line 41 of file ClientService.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 34 of file ClientService.cc.

Destructor.

Definition at line 39 of file ClientService.cc.


Member Function Documentation

This method is overridden by a subclass and invoked by the Server class when a new RPC arrives.

It should call ServerRPC::reply() or another method on the RPC to handle the request. The Server class calls this on a thread pool.

Implements LogCabin::RPC::Service.

Definition at line 44 of file ClientService.cc.

std::string LogCabin::Server::ClientService::getName ( ) const [virtual]

Return a short name for this service which can be used in things like log messages.

Implements LogCabin::RPC::Service.

Definition at line 77 of file ClientService.cc.

Definition at line 98 of file ClientService.cc.

Definition at line 108 of file ClientService.cc.

Definition at line 135 of file ClientService.cc.

Definition at line 152 of file ClientService.cc.

Definition at line 177 of file ClientService.cc.

Definition at line 199 of file ClientService.cc.

ClientService& LogCabin::Server::ClientService::operator= ( const ClientService ) [private]

Member Data Documentation

The LogCabin daemon's top-level objects.

Definition at line 65 of file ClientService.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines