Definition at line 43 of file LedgerCleaner.cpp.
◆ State
◆ LedgerCleanerImp()
◆ ~LedgerCleanerImp()
ripple::LedgerCleanerImp::~LedgerCleanerImp |
( |
| ) |
|
|
override |
◆ start()
void ripple::LedgerCleanerImp::start |
( |
| ) |
|
|
overridevirtual |
◆ stop()
void ripple::LedgerCleanerImp::stop |
( |
| ) |
|
|
overridevirtual |
◆ onWrite()
◆ clean()
void ripple::LedgerCleanerImp::clean |
( |
Json::Value const & |
parameters | ) |
|
|
overridevirtual |
Start a long running task to clean the ledger.
The ledger is cleaned asynchronously, on an implementation defined thread. This function call does not block. The long running task will be stopped by a call to stop().
Thread safety: Safe to call from any thread at any time.
- Parameters
-
parameters | A Json object with configurable parameters. |
Implements ripple::LedgerCleaner.
Definition at line 135 of file LedgerCleaner.cpp.
◆ run()
void ripple::LedgerCleanerImp::run |
( |
| ) |
|
|
private |
◆ getLedgerHash()
◆ doLedger()
bool ripple::LedgerCleanerImp::doLedger |
( |
LedgerIndex const & |
ledgerIndex, |
|
|
LedgerHash const & |
ledgerHash, |
|
|
bool |
doNodes, |
|
|
bool |
doTxns |
|
) |
| |
|
private |
Process a single ledger.
- Parameters
-
ledgerIndex | The index of the ledger to process. |
ledgerHash | The known correct hash of the ledger. |
doNodes | Ensure all ledger nodes are in the node db. |
doTxns | Reprocess (account) transactions to SQL databases. |
- Returns
true
if the ledger was cleaned.
Definition at line 269 of file LedgerCleaner.cpp.
◆ getHash()
Returns the hash of the specified ledger.
- Parameters
-
ledgerIndex | The index of the desired ledger. |
referenceLedger | [out] An optional known good subsequent ledger. |
- Returns
- The hash of the ledger. This will be all-bits-zero if not found.
Definition at line 327 of file LedgerCleaner.cpp.
◆ doLedgerCleaner()
void ripple::LedgerCleanerImp::doLedgerCleaner |
( |
| ) |
|
|
private |
◆ name()
std::string const & beast::PropertyStream::Source::name |
( |
| ) |
const |
|
inherited |
◆ add() [1/2]
void beast::PropertyStream::Source::add |
( |
Source & |
source | ) |
|
|
inherited |
◆ add() [2/2]
template<class Derived >
Derived* beast::PropertyStream::Source::add |
( |
Derived * |
child | ) |
|
|
inherited |
Add a child source by pointer.
The source pointer is returned so it can be used in ctor-initializers.
Definition at line 360 of file PropertyStream.h.
◆ remove()
void beast::PropertyStream::Source::remove |
( |
Source & |
child | ) |
|
|
inherited |
◆ removeAll()
void beast::PropertyStream::Source::removeAll |
( |
| ) |
|
|
inherited |
◆ write_one()
void beast::PropertyStream::Source::write_one |
( |
PropertyStream & |
stream | ) |
|
|
inherited |
◆ write() [1/2]
◆ write() [2/2]
Parse the path and write the corresponding Source and optional children.
If the source is found, it is written. If the wildcard character '*' exists as the last character in the path, then all the children are written recursively.
Definition at line 252 of file beast_PropertyStream.cpp.
◆ find()
Parse the dot-delimited Source path and return the result.
The first value will be a pointer to the Source object corresponding to the given path. If no Source object exists, then the first value will be nullptr and the second value will be undefined. The second value is a boolean indicating whether or not the path string specifies the wildcard character '*' as the last character.
print statement examples "parent.child" prints child and all of its children "parent.child." start at the parent and print down to child "parent.grandchild" prints nothing- grandchild not direct discendent "parent.grandchild." starts at the parent and prints down to grandchild "parent.grandchild.*" starts at parent, print through grandchild children
Definition at line 266 of file beast_PropertyStream.cpp.
◆ find_one_deep()
PropertyStream::Source * beast::PropertyStream::Source::find_one_deep |
( |
std::string const & |
name | ) |
|
|
inherited |
◆ find_path()
PropertyStream::Source * beast::PropertyStream::Source::find_path |
( |
std::string |
path | ) |
|
|
inherited |
◆ find_one()
PropertyStream::Source * beast::PropertyStream::Source::find_one |
( |
std::string const & |
name | ) |
|
|
inherited |
◆ peel_leading_slash()
bool beast::PropertyStream::Source::peel_leading_slash |
( |
std::string * |
path | ) |
|
|
staticinherited |
◆ peel_trailing_slashstar()
bool beast::PropertyStream::Source::peel_trailing_slashstar |
( |
std::string * |
path | ) |
|
|
staticinherited |
◆ peel_name()
◆ app_
◆ j_
◆ mutex_
◆ wakeup_
◆ thread_
◆ state_
◆ shouldExit_
bool ripple::LedgerCleanerImp::shouldExit_ = false |
|
private |
◆ minRange_
◆ maxRange_
◆ checkNodes_
bool ripple::LedgerCleanerImp::checkNodes_ = false |
|
private |
◆ fixTxns_
bool ripple::LedgerCleanerImp::fixTxns_ = false |
|
private |
◆ failures_
int ripple::LedgerCleanerImp::failures_ = 0 |
|
private |
◆ m_name
const std::string beast::PropertyStream::Source::m_name |
|
privateinherited |
◆ lock_
◆ item_
Item beast::PropertyStream::Source::item_ |
|
privateinherited |
◆ parent_
Source* beast::PropertyStream::Source::parent_ |
|
privateinherited |
◆ children_
List<Item> beast::PropertyStream::Source::children_ |
|
privateinherited |