rippled
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
6namespace ripple {
7
8namespace RPC {
9struct JsonContext;
10}
11
14{
15 context.app.signalStop("RPC");
16 return RPC::makeObjectValue(systemName() + " server stopping");
17}
18
19} // namespace ripple
Represents a JSON value.
Definition json_value.h:131
virtual void signalStop(std::string msg)=0
Json::Value makeObjectValue(Value const &value, Json::StaticString const &field=jss::message)
Return a Json::objectValue with a single entry.
Definition Handler.h:47
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
static std::string const & systemName()
Json::Value doStop(RPC::JsonContext &)
Definition Stop.cpp:13
Application & app
Definition Context.h:22