xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
xrpld
app
ledger
LedgerCleaner.h
1
#pragma once
2
3
#include <xrpld/app/main/Application.h>
4
5
#include <xrpl/beast/utility/Journal.h>
6
#include <xrpl/beast/utility/PropertyStream.h>
7
#include <xrpl/json/json_value.h>
8
9
#include <
memory
>
10
11
namespace
xrpl
{
12
16
class
LedgerCleaner
:
public
beast::PropertyStream::Source
17
{
18
protected
:
19
LedgerCleaner
() :
beast
::PropertyStream::
Source
(
"ledgercleaner"
)
20
{
21
}
22
23
public
:
24
~LedgerCleaner
()
override
=
default
;
25
26
virtual
void
27
start
() = 0;
28
29
virtual
void
30
stop
() = 0;
31
43
virtual
void
44
clean
(
json::Value
const
& parameters) = 0;
45
};
46
47
std::unique_ptr<LedgerCleaner>
48
makeLedgerCleaner
(
Application
& app,
beast::Journal
journal);
49
50
}
// namespace xrpl
beast::Journal
A generic endpoint for log messages.
Definition
Journal.h:44
beast::PropertyStream::Source
Subclasses can be called to write to a stream and have children.
Definition
PropertyStream.h:315
beast::PropertyStream::Source::Source
Source(std::string name)
Definition
beast_PropertyStream.cpp:155
json::Value
Represents a JSON value.
Definition
json_value.h:117
xrpl::Application
Definition
Application.h:94
xrpl::LedgerCleaner::~LedgerCleaner
~LedgerCleaner() override=default
xrpl::LedgerCleaner::stop
virtual void stop()=0
xrpl::LedgerCleaner::start
virtual void start()=0
xrpl::LedgerCleaner::LedgerCleaner
LedgerCleaner()
Definition
LedgerCleaner.h:19
xrpl::LedgerCleaner::clean
virtual void clean(json::Value const ¶meters)=0
Start a long running task to clean the ledger.
memory
beast
Definition
base_uint.h:697
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::makeLedgerCleaner
std::unique_ptr< LedgerCleaner > makeLedgerCleaner(Application &app, beast::Journal journal)
Definition
app/ledger/detail/LedgerCleaner.cpp:458
std::unique_ptr
Generated by
1.17.0