rippled
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
ripple::ApplicationImp Class Reference
Inheritance diagram for ripple::ApplicationImp:
Inheritance graph
[legend]
Collaboration diagram for ripple::ApplicationImp:
Collaboration graph
[legend]

Classes

class  io_latency_sampler
 

Public Types

using MutexType = std::recursive_mutex
 

Public Member Functions

 ApplicationImp (std::unique_ptr< Config > config, std::unique_ptr< Logs > logs, std::unique_ptr< TimeKeeper > timeKeeper)
 
bool setup (boost::program_options::variables_map const &cmdline) override
 
void start (bool withTimers) override
 
void run () override
 
void signalStop (std::string msg="") override
 
bool checkSigs () const override
 
void checkSigs (bool) override
 
bool isStopping () const override
 
int fdRequired () const override
 
std::uint64_t instanceID () const override
 Returns a 64-bit instance identifier, generated at startup. More...
 
Logslogs () override
 
Configconfig () override
 
CollectorManagergetCollectorManager () override
 
FamilygetNodeFamily () override
 
FamilygetShardFamily () override
 
TimeKeepertimeKeeper () override
 
JobQueuegetJobQueue () override
 
std::pair< PublicKey, SecretKey > const & nodeIdentity () override
 
PublicKey const & getValidationPublicKey () const override
 
NetworkOPsgetOPs () override
 
boost::asio::io_service & getIOService () override
 
std::chrono::milliseconds getIOLatency () override
 
LedgerMastergetLedgerMaster () override
 
LedgerCleanergetLedgerCleaner () override
 
LedgerReplayergetLedgerReplayer () override
 
InboundLedgersgetInboundLedgers () override
 
InboundTransactionsgetInboundTransactions () override
 
TaggedCache< uint256, AcceptedLedger > & getAcceptedLedgerCache () override
 
void gotTXSet (std::shared_ptr< SHAMap > const &set, bool fromAcquire)
 
TransactionMastergetMasterTransaction () override
 
perf::PerfLoggetPerfLog () override
 
NodeCachegetTempNodeCache () override
 
NodeStore::DatabasegetNodeStore () override
 
NodeStore::DatabaseShardgetShardStore () override
 
RPC::ShardArchiveHandlergetShardArchiveHandler (bool tryRecovery) override
 
Application::MutexTypegetMasterMutex () override
 
LoadManagergetLoadManager () override
 
Resource::ManagergetResourceManager () override
 
OrderBookDBgetOrderBookDB () override
 
PathRequestsgetPathRequests () override
 
CachedSLEscachedSLEs () override
 
AmendmentTablegetAmendmentTable () override
 
LoadFeeTrackgetFeeTrack () override
 
HashRoutergetHashRouter () override
 
RCLValidationsgetValidations () override
 
ValidatorListvalidators () override
 
ValidatorSitevalidatorSites () override
 
ManifestCachevalidatorManifests () override
 
ManifestCachepublisherManifests () override
 
Clustercluster () override
 
PeerReservationTablepeerReservations () override
 
SHAMapStoregetSHAMapStore () override
 
PendingSavespendingSaves () override
 
OpenLedgeropenLedger () override
 
OpenLedger const & openLedger () const override
 
Overlayoverlay () override
 
TxQgetTxQ () override
 
RelationalDatabasegetRelationalDatabase () override
 
DatabaseCongetWalletDB () override
 Retrieve the "wallet database". More...
 
ReportingETLgetReportingETL () override
 
bool serverOkay (std::string &reason) override
 
beast::Journal journal (std::string const &name) override
 
bool initRelationalDatabase ()
 
bool initNodeStore ()
 
void onWrite (beast::PropertyStream::Map &stream) override
 Subclass override. More...
 
void setSweepTimer ()
 
void setEntropyTimer ()
 
void doSweep ()
 
LedgerIndex getMaxDisallowedLedger () override
 Ensure that a newly-started validator does not sign proposals older than the last ledger it persisted. More...
 
std::string const & name () const
 Returns the name of this source. More...
 
void add (Source &source)
 Add a child source. More...
 
template<class Derived >
Derived * add (Derived *child)
 Add a child source by pointer. More...
 
void remove (Source &child)
 Remove a child source from this Source. More...
 
void removeAll ()
 Remove all child sources from this Source. More...
 
void write_one (PropertyStream &stream)
 Write only this Source to the stream. More...
 
void write (PropertyStream &stream)
 write this source and all its children recursively to the stream. More...
 
void write (PropertyStream &stream, std::string const &path)
 Parse the path and write the corresponding Source and optional children. More...
 
std::pair< Source *, bool > find (std::string path)
 Parse the dot-delimited Source path and return the result. More...
 
Sourcefind_one_deep (std::string const &name)
 
PropertyStream::Source * find_path (std::string path)
 
PropertyStream::Source * find_one (std::string const &name)
 
boost::asio::io_service & get_io_service ()
 

Static Public Member Functions

static std::size_t numberOfThreads (Config const &config)
 
static bool peel_leading_slash (std::string *path)
 
static bool peel_trailing_slashstar (std::string *path)
 
static std::string peel_name (std::string *path)
 

Public Attributes

std::unique_ptr< Configconfig_
 
std::unique_ptr< Logslogs_
 
std::unique_ptr< TimeKeepertimeKeeper_
 
const std::uint64_t instanceCookie_
 
beast::Journal m_journal
 
std::unique_ptr< perf::PerfLogperfLog_
 
Application::MutexType m_masterMutex
 
TransactionMaster m_txMaster
 
std::unique_ptr< CollectorManagerm_collectorManager
 
std::unique_ptr< JobQueuem_jobQueue
 
NodeStoreScheduler m_nodeStoreScheduler
 
std::unique_ptr< SHAMapStorem_shaMapStore
 
PendingSaves pendingSaves_
 
std::optional< OpenLedgeropenLedger_
 
NodeCache m_tempNodeCache
 
CachedSLEs cachedSLEs_
 
std::pair< PublicKey, SecretKeynodeIdentity_
 
const ValidatorKeys validatorKeys_
 
std::unique_ptr< Resource::Managerm_resourceManager
 
std::unique_ptr< NodeStore::Databasem_nodeStore
 
NodeFamily nodeFamily_
 
std::unique_ptr< NodeStore::DatabaseShardshardStore_
 
std::unique_ptr< ShardFamilyshardFamily_
 
std::unique_ptr< RPC::ShardArchiveHandlershardArchiveHandler_
 
OrderBookDB m_orderBookDB
 
std::unique_ptr< PathRequestsm_pathRequests
 
std::unique_ptr< LedgerMasterm_ledgerMaster
 
std::unique_ptr< LedgerCleanerledgerCleaner_
 
std::unique_ptr< InboundLedgersm_inboundLedgers
 
std::unique_ptr< InboundTransactionsm_inboundTransactions
 
std::unique_ptr< LedgerReplayerm_ledgerReplayer
 
TaggedCache< uint256, AcceptedLedgerm_acceptedLedgerCache
 
std::unique_ptr< NetworkOPsm_networkOPs
 
std::unique_ptr< Clustercluster_
 
std::unique_ptr< PeerReservationTablepeerReservations_
 
std::unique_ptr< ManifestCachevalidatorManifests_
 
std::unique_ptr< ManifestCachepublisherManifests_
 
std::unique_ptr< ValidatorListvalidators_
 
std::unique_ptr< ValidatorSitevalidatorSites_
 
std::unique_ptr< ServerHandlerserverHandler_
 
std::unique_ptr< AmendmentTablem_amendmentTable
 
std::unique_ptr< LoadFeeTrackmFeeTrack
 
std::unique_ptr< HashRouterhashRouter_
 
RCLValidations mValidations
 
std::unique_ptr< LoadManagerm_loadManager
 
std::unique_ptr< TxQtxQ_
 
ClosureCounter< void, boost::system::error_code const & > waitHandlerCounter_
 
boost::asio::steady_timer sweepTimer_
 
boost::asio::steady_timer entropyTimer_
 
std::unique_ptr< RelationalDatabasemRelationalDatabase
 
std::unique_ptr< DatabaseConmWalletDB
 
std::unique_ptr< Overlayoverlay_
 
boost::asio::signal_set m_signals
 
std::condition_variable stoppingCondition_
 
std::mutex stoppingMutex_
 
std::atomic< bool > isTimeToStop = false
 
std::atomic< bool > checkSigs_
 
std::unique_ptr< ResolverAsiom_resolver
 
io_latency_sampler m_io_latency_sampler
 
std::unique_ptr< GRPCServergrpcServer_
 
std::unique_ptr< ReportingETLreportingETL_
 

Private Member Functions

bool nodeToShards ()
 
void startGenesisLedger ()
 
std::shared_ptr< LedgergetLastFullLedger ()
 
std::shared_ptr< LedgerloadLedgerFromFile (std::string const &ledgerID)
 
bool loadOldLedger (std::string const &ledgerID, bool replay, bool isFilename)
 
void setMaxDisallowedLedger ()
 

Private Attributes

std::atomic< LedgerIndexmaxDisallowedLedger_ {0}
 
const std::string m_name
 
std::recursive_mutex lock_
 
Item item_
 
Sourceparent_
 
List< Item > children_
 
std::optional< boost::asio::io_service::work > work_
 
std::vector< std::threadthreads_
 
boost::asio::io_service io_service_
 

Detailed Description

Definition at line 98 of file Application.cpp.

Member Typedef Documentation

◆ MutexType

Definition at line 129 of file Application.h.

Constructor & Destructor Documentation

◆ ApplicationImp()

ripple::ApplicationImp::ApplicationImp ( std::unique_ptr< Config config,
std::unique_ptr< Logs logs,
std::unique_ptr< TimeKeeper timeKeeper 
)

Definition at line 272 of file Application.cpp.

Member Function Documentation

◆ numberOfThreads()

static std::size_t ripple::ApplicationImp::numberOfThreads ( Config const &  config)
static

Definition at line 249 of file Application.cpp.

◆ setup()

bool ripple::ApplicationImp::setup ( boost::program_options::variables_map const &  cmdline)
overridevirtual

Implements ripple::Application.

Definition at line 1119 of file Application.cpp.

◆ start()

void ripple::ApplicationImp::start ( bool  withTimers)
overridevirtual

Implements ripple::Application.

Definition at line 1514 of file Application.cpp.

◆ run()

void ripple::ApplicationImp::run ( )
overridevirtual

Implements ripple::Application.

Definition at line 1537 of file Application.cpp.

◆ signalStop()

void ripple::ApplicationImp::signalStop ( std::string  msg = "")
overridevirtual

Implements ripple::Application.

Definition at line 1640 of file Application.cpp.

◆ checkSigs() [1/2]

bool ripple::ApplicationImp::checkSigs ( ) const
overridevirtual

Implements ripple::Application.

Definition at line 1654 of file Application.cpp.

◆ checkSigs() [2/2]

void ripple::ApplicationImp::checkSigs ( bool  check)
overridevirtual

Implements ripple::Application.

Definition at line 1660 of file Application.cpp.

◆ isStopping()

bool ripple::ApplicationImp::isStopping ( ) const
overridevirtual

Implements ripple::Application.

Definition at line 1666 of file Application.cpp.

◆ fdRequired()

int ripple::ApplicationImp::fdRequired ( ) const
overridevirtual

Implements ripple::Application.

Definition at line 1672 of file Application.cpp.

◆ instanceID()

std::uint64_t ripple::ApplicationImp::instanceID ( ) const
overridevirtual

Returns a 64-bit instance identifier, generated at startup.

Implements ripple::Application.

Definition at line 538 of file Application.cpp.

◆ logs()

Logs& ripple::ApplicationImp::logs ( )
overridevirtual

Implements ripple::Application.

Definition at line 544 of file Application.cpp.

◆ config()

Config& ripple::ApplicationImp::config ( )
overridevirtual

Implements ripple::Application.

Definition at line 550 of file Application.cpp.

◆ getCollectorManager()

CollectorManager& ripple::ApplicationImp::getCollectorManager ( )
overridevirtual

Implements ripple::Application.

Definition at line 556 of file Application.cpp.

◆ getNodeFamily()

Family& ripple::ApplicationImp::getNodeFamily ( )
overridevirtual

Implements ripple::Application.

Definition at line 562 of file Application.cpp.

◆ getShardFamily()

Family* ripple::ApplicationImp::getShardFamily ( )
overridevirtual

Implements ripple::Application.

Definition at line 570 of file Application.cpp.

◆ timeKeeper()

TimeKeeper& ripple::ApplicationImp::timeKeeper ( )
overridevirtual

Implements ripple::Application.

Definition at line 576 of file Application.cpp.

◆ getJobQueue()

JobQueue& ripple::ApplicationImp::getJobQueue ( )
overridevirtual

Implements ripple::Application.

Definition at line 582 of file Application.cpp.

◆ nodeIdentity()

std::pair<PublicKey, SecretKey> const& ripple::ApplicationImp::nodeIdentity ( )
overridevirtual

Implements ripple::Application.

Definition at line 588 of file Application.cpp.

◆ getValidationPublicKey()

PublicKey const& ripple::ApplicationImp::getValidationPublicKey ( ) const
overridevirtual

Implements ripple::Application.

Definition at line 594 of file Application.cpp.

◆ getOPs()

NetworkOPs& ripple::ApplicationImp::getOPs ( )
overridevirtual

Implements ripple::Application.

Definition at line 600 of file Application.cpp.

◆ getIOService()

boost::asio::io_service& ripple::ApplicationImp::getIOService ( )
overridevirtual

Implements ripple::Application.

Definition at line 606 of file Application.cpp.

◆ getIOLatency()

std::chrono::milliseconds ripple::ApplicationImp::getIOLatency ( )
overridevirtual

Implements ripple::Application.

Definition at line 612 of file Application.cpp.

◆ getLedgerMaster()

LedgerMaster& ripple::ApplicationImp::getLedgerMaster ( )
overridevirtual

Implements ripple::Application.

Definition at line 618 of file Application.cpp.

◆ getLedgerCleaner()

LedgerCleaner& ripple::ApplicationImp::getLedgerCleaner ( )
overridevirtual

Implements ripple::Application.

Definition at line 624 of file Application.cpp.

◆ getLedgerReplayer()

LedgerReplayer& ripple::ApplicationImp::getLedgerReplayer ( )
overridevirtual

Implements ripple::Application.

Definition at line 630 of file Application.cpp.

◆ getInboundLedgers()

InboundLedgers& ripple::ApplicationImp::getInboundLedgers ( )
overridevirtual

Implements ripple::Application.

Definition at line 636 of file Application.cpp.

◆ getInboundTransactions()

InboundTransactions& ripple::ApplicationImp::getInboundTransactions ( )
overridevirtual

Implements ripple::Application.

Definition at line 642 of file Application.cpp.

◆ getAcceptedLedgerCache()

TaggedCache<uint256, AcceptedLedger>& ripple::ApplicationImp::getAcceptedLedgerCache ( )
overridevirtual

Implements ripple::Application.

Definition at line 648 of file Application.cpp.

◆ gotTXSet()

void ripple::ApplicationImp::gotTXSet ( std::shared_ptr< SHAMap > const &  set,
bool  fromAcquire 
)

Definition at line 654 of file Application.cpp.

◆ getMasterTransaction()

TransactionMaster& ripple::ApplicationImp::getMasterTransaction ( )
overridevirtual

Implements ripple::Application.

Definition at line 661 of file Application.cpp.

◆ getPerfLog()

perf::PerfLog& ripple::ApplicationImp::getPerfLog ( )
overridevirtual

Implements ripple::Application.

Definition at line 667 of file Application.cpp.

◆ getTempNodeCache()

NodeCache& ripple::ApplicationImp::getTempNodeCache ( )
overridevirtual

Implements ripple::Application.

Definition at line 673 of file Application.cpp.

◆ getNodeStore()

NodeStore::Database& ripple::ApplicationImp::getNodeStore ( )
overridevirtual

Implements ripple::Application.

Definition at line 679 of file Application.cpp.

◆ getShardStore()

NodeStore::DatabaseShard* ripple::ApplicationImp::getShardStore ( )
overridevirtual

Implements ripple::Application.

Definition at line 687 of file Application.cpp.

◆ getShardArchiveHandler()

RPC::ShardArchiveHandler* ripple::ApplicationImp::getShardArchiveHandler ( bool  tryRecovery)
overridevirtual

Implements ripple::Application.

Definition at line 693 of file Application.cpp.

◆ getMasterMutex()

Application::MutexType& ripple::ApplicationImp::getMasterMutex ( )
overridevirtual

Implements ripple::Application.

Definition at line 751 of file Application.cpp.

◆ getLoadManager()

LoadManager& ripple::ApplicationImp::getLoadManager ( )
overridevirtual

Implements ripple::Application.

Definition at line 757 of file Application.cpp.

◆ getResourceManager()

Resource::Manager& ripple::ApplicationImp::getResourceManager ( )
overridevirtual

Implements ripple::Application.

Definition at line 763 of file Application.cpp.

◆ getOrderBookDB()

OrderBookDB& ripple::ApplicationImp::getOrderBookDB ( )
overridevirtual

Implements ripple::Application.

Definition at line 769 of file Application.cpp.

◆ getPathRequests()

PathRequests& ripple::ApplicationImp::getPathRequests ( )
overridevirtual

Implements ripple::Application.

Definition at line 775 of file Application.cpp.

◆ cachedSLEs()

CachedSLEs& ripple::ApplicationImp::cachedSLEs ( )
overridevirtual

Implements ripple::Application.

Definition at line 781 of file Application.cpp.

◆ getAmendmentTable()

AmendmentTable& ripple::ApplicationImp::getAmendmentTable ( )
overridevirtual

Implements ripple::Application.

Definition at line 787 of file Application.cpp.

◆ getFeeTrack()

LoadFeeTrack& ripple::ApplicationImp::getFeeTrack ( )
overridevirtual

Implements ripple::Application.

Definition at line 793 of file Application.cpp.

◆ getHashRouter()

HashRouter& ripple::ApplicationImp::getHashRouter ( )
overridevirtual

Implements ripple::Application.

Definition at line 799 of file Application.cpp.

◆ getValidations()

RCLValidations& ripple::ApplicationImp::getValidations ( )
overridevirtual

Implements ripple::Application.

Definition at line 805 of file Application.cpp.

◆ validators()

ValidatorList& ripple::ApplicationImp::validators ( )
overridevirtual

Implements ripple::Application.

Definition at line 811 of file Application.cpp.

◆ validatorSites()

ValidatorSite& ripple::ApplicationImp::validatorSites ( )
overridevirtual

Implements ripple::Application.

Definition at line 817 of file Application.cpp.

◆ validatorManifests()

ManifestCache& ripple::ApplicationImp::validatorManifests ( )
overridevirtual

Implements ripple::Application.

Definition at line 823 of file Application.cpp.

◆ publisherManifests()

ManifestCache& ripple::ApplicationImp::publisherManifests ( )
overridevirtual

Implements ripple::Application.

Definition at line 829 of file Application.cpp.

◆ cluster()

Cluster& ripple::ApplicationImp::cluster ( )
overridevirtual

Implements ripple::Application.

Definition at line 835 of file Application.cpp.

◆ peerReservations()

PeerReservationTable& ripple::ApplicationImp::peerReservations ( )
overridevirtual

Implements ripple::Application.

Definition at line 841 of file Application.cpp.

◆ getSHAMapStore()

SHAMapStore& ripple::ApplicationImp::getSHAMapStore ( )
overridevirtual

Implements ripple::Application.

Definition at line 847 of file Application.cpp.

◆ pendingSaves()

PendingSaves& ripple::ApplicationImp::pendingSaves ( )
overridevirtual

Implements ripple::Application.

Definition at line 853 of file Application.cpp.

◆ openLedger() [1/2]

OpenLedger& ripple::ApplicationImp::openLedger ( )
overridevirtual

Implements ripple::Application.

Definition at line 859 of file Application.cpp.

◆ openLedger() [2/2]

OpenLedger const& ripple::ApplicationImp::openLedger ( ) const
overridevirtual

Implements ripple::Application.

Definition at line 867 of file Application.cpp.

◆ overlay()

Overlay& ripple::ApplicationImp::overlay ( )
overridevirtual

Implements ripple::Application.

Definition at line 875 of file Application.cpp.

◆ getTxQ()

TxQ& ripple::ApplicationImp::getTxQ ( )
overridevirtual

Implements ripple::Application.

Definition at line 882 of file Application.cpp.

◆ getRelationalDatabase()

RelationalDatabase& ripple::ApplicationImp::getRelationalDatabase ( )
overridevirtual

Implements ripple::Application.

Definition at line 889 of file Application.cpp.

◆ getWalletDB()

DatabaseCon& ripple::ApplicationImp::getWalletDB ( )
overridevirtual

Retrieve the "wallet database".

Implements ripple::Application.

Definition at line 896 of file Application.cpp.

◆ getReportingETL()

ReportingETL& ripple::ApplicationImp::getReportingETL ( )
overridevirtual

Implements ripple::Application.

Definition at line 903 of file Application.cpp.

◆ serverOkay()

bool ripple::ApplicationImp::serverOkay ( std::string reason)
overridevirtual

Implements ripple::Application.

Definition at line 2087 of file Application.cpp.

◆ journal()

beast::Journal ripple::ApplicationImp::journal ( std::string const &  name)
overridevirtual

Implements ripple::Application.

Definition at line 2135 of file Application.cpp.

◆ initRelationalDatabase()

bool ripple::ApplicationImp::initRelationalDatabase ( )

Definition at line 918 of file Application.cpp.

◆ initNodeStore()

bool ripple::ApplicationImp::initNodeStore ( )

Definition at line 944 of file Application.cpp.

◆ onWrite()

void ripple::ApplicationImp::onWrite ( beast::PropertyStream::Map )
overridevirtual

Subclass override.

The default version does nothing.

Reimplemented from beast::PropertyStream::Source.

Definition at line 982 of file Application.cpp.

◆ setSweepTimer()

void ripple::ApplicationImp::setSweepTimer ( )

Definition at line 989 of file Application.cpp.

◆ setEntropyTimer()

void ripple::ApplicationImp::setEntropyTimer ( )

Definition at line 1020 of file Application.cpp.

◆ doSweep()

void ripple::ApplicationImp::doSweep ( )

Definition at line 1049 of file Application.cpp.

◆ getMaxDisallowedLedger()

LedgerIndex ripple::ApplicationImp::getMaxDisallowedLedger ( )
overridevirtual

Ensure that a newly-started validator does not sign proposals older than the last ledger it persisted.

Implements ripple::Application.

Definition at line 1086 of file Application.cpp.

◆ nodeToShards()

bool ripple::ApplicationImp::nodeToShards ( )
private

Definition at line 2141 of file Application.cpp.

◆ startGenesisLedger()

void ripple::ApplicationImp::startGenesisLedger ( )
private

Definition at line 1700 of file Application.cpp.

◆ getLastFullLedger()

std::shared_ptr< Ledger > ripple::ApplicationImp::getLastFullLedger ( )
private

Definition at line 1723 of file Application.cpp.

◆ loadLedgerFromFile()

std::shared_ptr< Ledger > ripple::ApplicationImp::loadLedgerFromFile ( std::string const &  ledgerID)
private

Definition at line 1766 of file Application.cpp.

◆ loadOldLedger()

bool ripple::ApplicationImp::loadOldLedger ( std::string const &  ledgerID,
bool  replay,
bool  isFilename 
)
private

Definition at line 1904 of file Application.cpp.

◆ setMaxDisallowedLedger()

void ripple::ApplicationImp::setMaxDisallowedLedger ( )
private

Definition at line 2162 of file Application.cpp.

◆ name()

std::string const & beast::PropertyStream::Source::name ( ) const
inherited

Returns the name of this source.

Definition at line 190 of file beast_PropertyStream.cpp.

◆ add() [1/2]

void beast::PropertyStream::Source::add ( Source source)
inherited

Add a child source.

Definition at line 196 of file beast_PropertyStream.cpp.

◆ 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

Remove a child source from this Source.

Definition at line 208 of file beast_PropertyStream.cpp.

◆ removeAll()

void beast::PropertyStream::Source::removeAll ( )
inherited

Remove all child sources from this Source.

Definition at line 220 of file beast_PropertyStream.cpp.

◆ write_one()

void beast::PropertyStream::Source::write_one ( PropertyStream stream)
inherited

Write only this Source to the stream.

Definition at line 233 of file beast_PropertyStream.cpp.

◆ write() [1/2]

void beast::PropertyStream::Source::write ( PropertyStream stream)
inherited

write this source and all its children recursively to the stream.

Definition at line 240 of file beast_PropertyStream.cpp.

◆ write() [2/2]

void beast::PropertyStream::Source::write ( PropertyStream stream,
std::string const &  path 
)
inherited

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()

std::pair< PropertyStream::Source *, bool > beast::PropertyStream::Source::find ( std::string  path)
inherited

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

Definition at line 333 of file beast_PropertyStream.cpp.

◆ find_path()

PropertyStream::Source * beast::PropertyStream::Source::find_path ( std::string  path)
inherited

Definition at line 350 of file beast_PropertyStream.cpp.

◆ find_one()

PropertyStream::Source * beast::PropertyStream::Source::find_one ( std::string const &  name)
inherited

Definition at line 368 of file beast_PropertyStream.cpp.

◆ peel_leading_slash()

bool beast::PropertyStream::Source::peel_leading_slash ( std::string path)
staticinherited

Definition at line 286 of file beast_PropertyStream.cpp.

◆ peel_trailing_slashstar()

bool beast::PropertyStream::Source::peel_trailing_slashstar ( std::string path)
staticinherited

Definition at line 297 of file beast_PropertyStream.cpp.

◆ peel_name()

std::string beast::PropertyStream::Source::peel_name ( std::string path)
staticinherited

Definition at line 313 of file beast_PropertyStream.cpp.

◆ get_io_service()

boost::asio::io_service& BasicApp::get_io_service ( )
inherited

Definition at line 41 of file BasicApp.h.

Member Data Documentation

◆ config_

std::unique_ptr<Config> ripple::ApplicationImp::config_

Definition at line 166 of file Application.cpp.

◆ logs_

std::unique_ptr<Logs> ripple::ApplicationImp::logs_

Definition at line 167 of file Application.cpp.

◆ timeKeeper_

std::unique_ptr<TimeKeeper> ripple::ApplicationImp::timeKeeper_

Definition at line 168 of file Application.cpp.

◆ instanceCookie_

const std::uint64_t ripple::ApplicationImp::instanceCookie_

Definition at line 170 of file Application.cpp.

◆ m_journal

beast::Journal ripple::ApplicationImp::m_journal

Definition at line 172 of file Application.cpp.

◆ perfLog_

std::unique_ptr<perf::PerfLog> ripple::ApplicationImp::perfLog_

Definition at line 173 of file Application.cpp.

◆ m_masterMutex

Application::MutexType ripple::ApplicationImp::m_masterMutex

Definition at line 174 of file Application.cpp.

◆ m_txMaster

TransactionMaster ripple::ApplicationImp::m_txMaster

Definition at line 177 of file Application.cpp.

◆ m_collectorManager

std::unique_ptr<CollectorManager> ripple::ApplicationImp::m_collectorManager

Definition at line 179 of file Application.cpp.

◆ m_jobQueue

std::unique_ptr<JobQueue> ripple::ApplicationImp::m_jobQueue

Definition at line 180 of file Application.cpp.

◆ m_nodeStoreScheduler

NodeStoreScheduler ripple::ApplicationImp::m_nodeStoreScheduler

Definition at line 181 of file Application.cpp.

◆ m_shaMapStore

std::unique_ptr<SHAMapStore> ripple::ApplicationImp::m_shaMapStore

Definition at line 182 of file Application.cpp.

◆ pendingSaves_

PendingSaves ripple::ApplicationImp::pendingSaves_

Definition at line 183 of file Application.cpp.

◆ openLedger_

std::optional<OpenLedger> ripple::ApplicationImp::openLedger_

Definition at line 184 of file Application.cpp.

◆ m_tempNodeCache

NodeCache ripple::ApplicationImp::m_tempNodeCache

Definition at line 186 of file Application.cpp.

◆ cachedSLEs_

CachedSLEs ripple::ApplicationImp::cachedSLEs_

Definition at line 187 of file Application.cpp.

◆ nodeIdentity_

std::pair<PublicKey, SecretKey> ripple::ApplicationImp::nodeIdentity_

Definition at line 188 of file Application.cpp.

◆ validatorKeys_

const ValidatorKeys ripple::ApplicationImp::validatorKeys_

Definition at line 189 of file Application.cpp.

◆ m_resourceManager

std::unique_ptr<Resource::Manager> ripple::ApplicationImp::m_resourceManager

Definition at line 191 of file Application.cpp.

◆ m_nodeStore

std::unique_ptr<NodeStore::Database> ripple::ApplicationImp::m_nodeStore

Definition at line 193 of file Application.cpp.

◆ nodeFamily_

NodeFamily ripple::ApplicationImp::nodeFamily_

Definition at line 194 of file Application.cpp.

◆ shardStore_

std::unique_ptr<NodeStore::DatabaseShard> ripple::ApplicationImp::shardStore_

Definition at line 195 of file Application.cpp.

◆ shardFamily_

std::unique_ptr<ShardFamily> ripple::ApplicationImp::shardFamily_

Definition at line 196 of file Application.cpp.

◆ shardArchiveHandler_

std::unique_ptr<RPC::ShardArchiveHandler> ripple::ApplicationImp::shardArchiveHandler_

Definition at line 197 of file Application.cpp.

◆ m_orderBookDB

OrderBookDB ripple::ApplicationImp::m_orderBookDB

Definition at line 199 of file Application.cpp.

◆ m_pathRequests

std::unique_ptr<PathRequests> ripple::ApplicationImp::m_pathRequests

Definition at line 200 of file Application.cpp.

◆ m_ledgerMaster

std::unique_ptr<LedgerMaster> ripple::ApplicationImp::m_ledgerMaster

Definition at line 201 of file Application.cpp.

◆ ledgerCleaner_

std::unique_ptr<LedgerCleaner> ripple::ApplicationImp::ledgerCleaner_

Definition at line 202 of file Application.cpp.

◆ m_inboundLedgers

std::unique_ptr<InboundLedgers> ripple::ApplicationImp::m_inboundLedgers

Definition at line 203 of file Application.cpp.

◆ m_inboundTransactions

std::unique_ptr<InboundTransactions> ripple::ApplicationImp::m_inboundTransactions

Definition at line 204 of file Application.cpp.

◆ m_ledgerReplayer

std::unique_ptr<LedgerReplayer> ripple::ApplicationImp::m_ledgerReplayer

Definition at line 205 of file Application.cpp.

◆ m_acceptedLedgerCache

TaggedCache<uint256, AcceptedLedger> ripple::ApplicationImp::m_acceptedLedgerCache

Definition at line 206 of file Application.cpp.

◆ m_networkOPs

std::unique_ptr<NetworkOPs> ripple::ApplicationImp::m_networkOPs

Definition at line 207 of file Application.cpp.

◆ cluster_

std::unique_ptr<Cluster> ripple::ApplicationImp::cluster_

Definition at line 208 of file Application.cpp.

◆ peerReservations_

std::unique_ptr<PeerReservationTable> ripple::ApplicationImp::peerReservations_

Definition at line 209 of file Application.cpp.

◆ validatorManifests_

std::unique_ptr<ManifestCache> ripple::ApplicationImp::validatorManifests_

Definition at line 210 of file Application.cpp.

◆ publisherManifests_

std::unique_ptr<ManifestCache> ripple::ApplicationImp::publisherManifests_

Definition at line 211 of file Application.cpp.

◆ validators_

std::unique_ptr<ValidatorList> ripple::ApplicationImp::validators_

Definition at line 212 of file Application.cpp.

◆ validatorSites_

std::unique_ptr<ValidatorSite> ripple::ApplicationImp::validatorSites_

Definition at line 213 of file Application.cpp.

◆ serverHandler_

std::unique_ptr<ServerHandler> ripple::ApplicationImp::serverHandler_

Definition at line 214 of file Application.cpp.

◆ m_amendmentTable

std::unique_ptr<AmendmentTable> ripple::ApplicationImp::m_amendmentTable

Definition at line 215 of file Application.cpp.

◆ mFeeTrack

std::unique_ptr<LoadFeeTrack> ripple::ApplicationImp::mFeeTrack

Definition at line 216 of file Application.cpp.

◆ hashRouter_

std::unique_ptr<HashRouter> ripple::ApplicationImp::hashRouter_

Definition at line 217 of file Application.cpp.

◆ mValidations

RCLValidations ripple::ApplicationImp::mValidations

Definition at line 218 of file Application.cpp.

◆ m_loadManager

std::unique_ptr<LoadManager> ripple::ApplicationImp::m_loadManager

Definition at line 219 of file Application.cpp.

◆ txQ_

std::unique_ptr<TxQ> ripple::ApplicationImp::txQ_

Definition at line 220 of file Application.cpp.

◆ waitHandlerCounter_

ClosureCounter<void, boost::system::error_code const&> ripple::ApplicationImp::waitHandlerCounter_

Definition at line 221 of file Application.cpp.

◆ sweepTimer_

boost::asio::steady_timer ripple::ApplicationImp::sweepTimer_

Definition at line 222 of file Application.cpp.

◆ entropyTimer_

boost::asio::steady_timer ripple::ApplicationImp::entropyTimer_

Definition at line 223 of file Application.cpp.

◆ mRelationalDatabase

std::unique_ptr<RelationalDatabase> ripple::ApplicationImp::mRelationalDatabase

Definition at line 225 of file Application.cpp.

◆ mWalletDB

std::unique_ptr<DatabaseCon> ripple::ApplicationImp::mWalletDB

Definition at line 226 of file Application.cpp.

◆ overlay_

std::unique_ptr<Overlay> ripple::ApplicationImp::overlay_

Definition at line 227 of file Application.cpp.

◆ m_signals

boost::asio::signal_set ripple::ApplicationImp::m_signals

Definition at line 229 of file Application.cpp.

◆ stoppingCondition_

std::condition_variable ripple::ApplicationImp::stoppingCondition_

Definition at line 233 of file Application.cpp.

◆ stoppingMutex_

std::mutex ripple::ApplicationImp::stoppingMutex_
mutable

Definition at line 234 of file Application.cpp.

◆ isTimeToStop

std::atomic<bool> ripple::ApplicationImp::isTimeToStop = false

Definition at line 235 of file Application.cpp.

◆ checkSigs_

std::atomic<bool> ripple::ApplicationImp::checkSigs_

Definition at line 237 of file Application.cpp.

◆ m_resolver

std::unique_ptr<ResolverAsio> ripple::ApplicationImp::m_resolver

Definition at line 239 of file Application.cpp.

◆ m_io_latency_sampler

io_latency_sampler ripple::ApplicationImp::m_io_latency_sampler

Definition at line 241 of file Application.cpp.

◆ grpcServer_

std::unique_ptr<GRPCServer> ripple::ApplicationImp::grpcServer_

Definition at line 243 of file Application.cpp.

◆ reportingETL_

std::unique_ptr<ReportingETL> ripple::ApplicationImp::reportingETL_

Definition at line 244 of file Application.cpp.

◆ maxDisallowedLedger_

std::atomic<LedgerIndex> ripple::ApplicationImp::maxDisallowedLedger_ {0}
private

Definition at line 1094 of file Application.cpp.

◆ m_name

const std::string beast::PropertyStream::Source::m_name
privateinherited

Definition at line 333 of file PropertyStream.h.

◆ lock_

std::recursive_mutex beast::PropertyStream::Source::lock_
privateinherited

Definition at line 334 of file PropertyStream.h.

◆ item_

Item beast::PropertyStream::Source::item_
privateinherited

Definition at line 335 of file PropertyStream.h.

◆ parent_

Source* beast::PropertyStream::Source::parent_
privateinherited

Definition at line 336 of file PropertyStream.h.

◆ children_

List<Item> beast::PropertyStream::Source::children_
privateinherited

Definition at line 337 of file PropertyStream.h.

◆ work_

std::optional<boost::asio::io_service::work> BasicApp::work_
privateinherited

Definition at line 32 of file BasicApp.h.

◆ threads_

std::vector<std::thread> BasicApp::threads_
privateinherited

Definition at line 33 of file BasicApp.h.

◆ io_service_

boost::asio::io_service BasicApp::io_service_
privateinherited

Definition at line 34 of file BasicApp.h.