LogCabin
|
This is LogCabin's application-facing RPC service. More...
#include <ClientService.h>
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 &) | |
ClientService & | operator= (const ClientService &) |
Private Attributes | |
Globals & | globals |
The LogCabin daemon's top-level objects. |
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.
LogCabin::Server::ClientService::ClientService | ( | Globals & | globals | ) | [explicit] |
Constructor.
Definition at line 34 of file ClientService.cc.
Destructor.
Definition at line 39 of file ClientService.cc.
LogCabin::Server::ClientService::ClientService | ( | const ClientService & | ) | [private] |
void LogCabin::Server::ClientService::handleRPC | ( | RPC::ServerRPC | serverRPC | ) | [virtual] |
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.
void LogCabin::Server::ClientService::getServerInfo | ( | RPC::ServerRPC | rpc | ) | [private] |
Definition at line 98 of file ClientService.cc.
void LogCabin::Server::ClientService::getConfiguration | ( | RPC::ServerRPC | rpc | ) | [private] |
Definition at line 108 of file ClientService.cc.
void LogCabin::Server::ClientService::setConfiguration | ( | RPC::ServerRPC | rpc | ) | [private] |
Definition at line 135 of file ClientService.cc.
void LogCabin::Server::ClientService::stateMachineCommand | ( | RPC::ServerRPC | rpc | ) | [private] |
Definition at line 152 of file ClientService.cc.
void LogCabin::Server::ClientService::stateMachineQuery | ( | RPC::ServerRPC | rpc | ) | [private] |
Definition at line 177 of file ClientService.cc.
void LogCabin::Server::ClientService::verifyRecipient | ( | RPC::ServerRPC | rpc | ) | [private] |
Definition at line 199 of file ClientService.cc.
ClientService& LogCabin::Server::ClientService::operator= | ( | const ClientService & | ) | [private] |
Globals& LogCabin::Server::ClientService::globals [private] |
The LogCabin daemon's top-level objects.
Definition at line 65 of file ClientService.h.