LogCabin
|
Invoked by logcabinctl client to inspect and manipulate internal server state. More...
#include <ControlService.h>
Public Member Functions | |
ControlService (Globals &globals) | |
Constructor. | |
~ControlService () | |
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. | |
ControlService (const ControlService &) | |
ControlService & | operator= (const ControlService &) |
Private Member Functions | |
void | debugFilenameGet (RPC::ServerRPC rpc) |
void | debugFilenameSet (RPC::ServerRPC rpc) |
void | debugPolicyGet (RPC::ServerRPC rpc) |
void | debugPolicySet (RPC::ServerRPC rpc) |
void | debugRotate (RPC::ServerRPC rpc) |
void | serverInfoGet (RPC::ServerRPC rpc) |
void | serverStatsDump (RPC::ServerRPC rpc) |
void | serverStatsGet (RPC::ServerRPC rpc) |
void | snapshotControl (RPC::ServerRPC rpc) |
void | snapshotInhibitGet (RPC::ServerRPC rpc) |
void | snapshotInhibitSet (RPC::ServerRPC rpc) |
Private Attributes | |
Globals & | globals |
The LogCabin daemon's top-level objects. |
Invoked by logcabinctl client to inspect and manipulate internal server state.
Definition at line 40 of file ControlService.h.
LogCabin::Server::ControlService::ControlService | ( | Globals & | globals | ) | [explicit] |
Constructor.
Definition at line 29 of file ControlService.cc.
Destructor.
Definition at line 34 of file ControlService.cc.
void LogCabin::Server::ControlService::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 39 of file ControlService.cc.
std::string LogCabin::Server::ControlService::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 86 of file ControlService.cc.
void LogCabin::Server::ControlService::debugFilenameGet | ( | RPC::ServerRPC | rpc | ) | [private] |
Definition at line 105 of file ControlService.cc.
void LogCabin::Server::ControlService::debugFilenameSet | ( | RPC::ServerRPC | rpc | ) | [private] |
Definition at line 113 of file ControlService.cc.
void LogCabin::Server::ControlService::debugPolicyGet | ( | RPC::ServerRPC | rpc | ) | [private] |
Definition at line 133 of file ControlService.cc.
void LogCabin::Server::ControlService::debugPolicySet | ( | RPC::ServerRPC | rpc | ) | [private] |
Definition at line 143 of file ControlService.cc.
void LogCabin::Server::ControlService::debugRotate | ( | RPC::ServerRPC | rpc | ) | [private] |
Definition at line 155 of file ControlService.cc.
void LogCabin::Server::ControlService::serverInfoGet | ( | RPC::ServerRPC | rpc | ) | [private] |
Definition at line 171 of file ControlService.cc.
void LogCabin::Server::ControlService::serverStatsDump | ( | RPC::ServerRPC | rpc | ) | [private] |
Definition at line 181 of file ControlService.cc.
void LogCabin::Server::ControlService::serverStatsGet | ( | RPC::ServerRPC | rpc | ) | [private] |
Definition at line 190 of file ControlService.cc.
void LogCabin::Server::ControlService::snapshotControl | ( | RPC::ServerRPC | rpc | ) | [private] |
Definition at line 198 of file ControlService.cc.
void LogCabin::Server::ControlService::snapshotInhibitGet | ( | RPC::ServerRPC | rpc | ) | [private] |
Definition at line 221 of file ControlService.cc.
void LogCabin::Server::ControlService::snapshotInhibitSet | ( | RPC::ServerRPC | rpc | ) | [private] |
Definition at line 231 of file ControlService.cc.
ControlService& LogCabin::Server::ControlService::operator= | ( | const ControlService & | ) |
Globals& LogCabin::Server::ControlService::globals [private] |
The LogCabin daemon's top-level objects.
Definition at line 70 of file ControlService.h.