xrpld
Loading...
Searching...
No Matches
Stop.cpp
1#include <xrpld/app/main/Application.h>
2#include <xrpld/rpc/detail/Handler.h>
3
4#include <xrpl/json/json_value.h>
5#include <xrpl/protocol/SystemParameters.h>
6
7namespace xrpl {
8
9namespace RPC {
10struct JsonContext;
11} // namespace RPC
12
13json::Value
15{
16 context.app.signalStop("RPC");
17 return RPC::makeObjectValue(systemName() + " server stopping");
18}
19
20} // namespace xrpl
virtual void signalStop(std::string const &msg)=0
API version numbers used in later API versions.
Definition ApiVersion.h:35
json::Value makeObjectValue(Value const &value, json::StaticString const &field=jss::message)
Return a json::ValueType::Object with a single entry.
Definition Handler.h:45
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
json::Value doStop(RPC::JsonContext &context)
Definition Stop.cpp:14
static std::string const & systemName()
Application & app
Definition Context.h:21