3#include <xrpl/basics/Log.h>
4#include <xrpl/basics/chrono.h>
5#include <xrpl/core/HashRouter.h>
6#include <xrpl/core/NetworkIDService.h>
7#include <xrpl/core/ServiceRegistry.h>
8#include <xrpl/ledger/PendingSaves.h>
9#include <xrpl/server/LoadFeeTrack.h>
11#include <boost/asio/io_context.hpp>
13#include <helpers/TestFamily.h>
14#include <helpers/TestSink.h>
75 logs_.journal(
"TaggedCache")};
81 logs_.journal(
"TaggedCache")};
93 throw std::logic_error(
"TestServiceRegistry::getCollectorManager() not implemented");
105 throw std::logic_error(
"TestServiceRegistry::timeKeeper() not implemented");
111 throw std::logic_error(
"TestServiceRegistry::getJobQueue() not implemented");
136 throw std::logic_error(
"TestServiceRegistry::getAmendmentTable() not implemented");
154 throw std::logic_error(
"TestServiceRegistry::getLoadManager() not implemented");
160 throw std::logic_error(
"TestServiceRegistry::getValidations() not implemented");
166 throw std::logic_error(
"TestServiceRegistry::validators() not implemented");
172 throw std::logic_error(
"TestServiceRegistry::validatorSites() not implemented");
178 throw std::logic_error(
"TestServiceRegistry::validatorManifests() not implemented");
184 throw std::logic_error(
"TestServiceRegistry::publisherManifests() not implemented");
203 throw std::logic_error(
"TestServiceRegistry::peerReservations() not implemented");
209 throw std::logic_error(
"TestServiceRegistry::getResourceManager() not implemented");
216 throw std::logic_error(
"TestServiceRegistry::getNodeStore() not implemented");
222 throw std::logic_error(
"TestServiceRegistry::getSHAMapStore() not implemented");
228 throw std::logic_error(
"TestServiceRegistry::getRelationalDatabase() not implemented");
235 throw std::logic_error(
"TestServiceRegistry::getInboundLedgers() not implemented");
241 throw std::logic_error(
"TestServiceRegistry::getInboundTransactions() not implemented");
247 throw std::logic_error(
"TestServiceRegistry::getAcceptedLedgerCache() not implemented");
253 throw std::logic_error(
"TestServiceRegistry::getLedgerMaster() not implemented");
259 throw std::logic_error(
"TestServiceRegistry::getLedgerCleaner() not implemented");
265 throw std::logic_error(
"TestServiceRegistry::getLedgerReplayer() not implemented");
277 throw std::logic_error(
"TestServiceRegistry::openLedger() not implemented");
283 throw std::logic_error(
"TestServiceRegistry::openLedger() const not implemented");
296 throw std::logic_error(
"TestServiceRegistry::getOrderBookDB() not implemented");
302 throw std::logic_error(
"TestServiceRegistry::getMasterTransaction() not implemented");
314 throw std::logic_error(
"TestServiceRegistry::getPathRequestManager() not implemented");
321 throw std::logic_error(
"TestServiceRegistry::getServerHandler() not implemented");
327 throw std::logic_error(
"TestServiceRegistry::getPerfLog() not implemented");
340 return logs_.journal(name);
343 boost::asio::io_context&
364 throw std::logic_error(
"TestServiceRegistry::getWalletDB() not implemented");
372 "TestServiceRegistry::app() not implemented - no Application available in tests");
A generic endpoint for log messages.
The amendment table stores the list of enabled and potential amendments.
Provides the beast::insight::Collector service.
Routing table for objects identified by hash.
Manages the lifetime of inbound ledgers.
Manages the acquisition and lifetime of transaction sets.
A pool of threads to perform work.
Check the ledger/transaction databases to make sure they have continuity.
Manages the lifetime of ledger replay tasks.
Manages the current fee schedule.
Manages partitions for logging.
beast::Severity threshold() const
Logs(beast::Severity level)
Remembers manifests with the highest sequence number.
Service that provides access to the network ID.
Provides server functionality for clients.
Persistency layer for NodeObject.
Represents the open ledger.
Tracks order books in the ledger.
Keeps track of which ledgers haven't been fully saved.
Tracks load and resource consumption.
class to create database, launch online delete thread, and related SQLite database
ServiceRegistry()=default
Manages various times used by the server.
Singleton class that maintains performance counters and optionally writes Json-formatted data to a di...
Simulate server's OverlayImpl.
Test implementation of Family for unit tests.
Logs implementation that creates TestSink instances.
std::unique_ptr< beast::Journal::Sink > makeSink(std::string const &, beast::Severity threshold) override
TestLogs(beast::Severity level=beast::Severity::Warning)
Simple NetworkIDService implementation for tests.
TestNetworkIDService(std::uint32_t networkID=0)
std::uint32_t getNetworkID() const noexcept override
Get the configured network ID.
OpenLedger const & getOpenLedger() const override
bool isStopping() const override
Overlay & getOverlay() override
InboundTransactions & getInboundTransactions() override
ManifestCache & getValidatorManifests() override
beast::Journal getJournal(std::string const &name) override
TimeKeeper & getTimeKeeper() override
RelationalDatabase & getRelationalDatabase() override
ValidatorList & getValidators() override
NodeStore::Database & getNodeStore() override
TestServiceRegistry()=default
ManifestCache & getPublisherManifests() override
DatabaseCon & getWalletDB() override
Retrieve the "wallet database".
boost::asio::io_context & getIOContext() override
Resource::Manager & getResourceManager() override
PendingSaves & getPendingSaves() override
InboundLedgers & getInboundLedgers() override
PeerReservationTable & getPeerReservations() override
LoadFeeTrack & getFeeTrack() override
CachedSLEs & getCachedSLEs() override
HashRouter & getHashRouter() override
TransactionMaster & getMasterTransaction() override
AmendmentTable & getAmendmentTable() override
perf::PerfLog & getPerfLog() override
NetworkIDService & getNetworkIDService() override
Cluster & getCluster() override
std::optional< uint256 > trapTxID_
SHAMapStore & getSHAMapStore() override
LoadManager & getLoadManager() override
NetworkOPs & getOPs() override
ValidatorSite & getValidatorSites() override
CollectorManager & getCollectorManager() override
Family & getNodeFamily() override
PendingSaves pendingSaves_
JobQueue & getJobQueue() override
PathRequestManager & getPathRequestManager() override
TaggedCache< uint256, AcceptedLedger > & getAcceptedLedgerCache() override
LedgerCleaner & getLedgerCleaner() override
OpenLedger & getOpenLedger() override
std::optional< uint256 > const & getTrapTxID() const override
LedgerReplayer & getLedgerReplayer() override
Application & getApp() override
OrderBookDB & getOrderBookDB() override
~TestServiceRegistry() override=default
Logs & getLogs() override
TestNetworkIDService networkIDService_
ServerHandler & getServerHandler() override
LedgerMaster & getLedgerMaster() override
RCLValidations & getValidations() override
boost::asio::io_context ioContext_
NodeCache & getTempNodeCache() override
Severity
Severity level / threshold of a Journal message.
Stopwatch & stopwatch()
Returns an instance of a wall clock.
Validations< RCLValidationsAdaptor > RCLValidations
Alias for RCL-specific instantiation of generic Validations.
TaggedCache< uint256, SLE const > CachedSLEs
TaggedCache< SHAMapHash, Blob > NodeCache
Structure used to customize HashRouter behavior.