3#include <xrpl/basics/Log.h>
4#include <xrpl/basics/base_uint.h>
5#include <xrpl/basics/chrono.h>
6#include <xrpl/beast/utility/Journal.h>
7#include <xrpl/core/HashRouter.h>
8#include <xrpl/core/NetworkIDService.h>
9#include <xrpl/core/ServiceRegistry.h>
10#include <xrpl/ledger/PendingSaves.h>
11#include <xrpl/server/LoadFeeTrack.h>
13#include <boost/asio/io_context.hpp>
15#include <helpers/TestFamily.h>
16#include <helpers/TestSink.h>
85 logs_.journal(
"TaggedCache")};
91 logs_.journal(
"TaggedCache")};
103 throw std::logic_error(
"TestServiceRegistry::getCollectorManager() not implemented");
115 throw std::logic_error(
"TestServiceRegistry::timeKeeper() not implemented");
121 throw std::logic_error(
"TestServiceRegistry::getJobQueue() not implemented");
146 throw std::logic_error(
"TestServiceRegistry::getAmendmentTable() not implemented");
164 throw std::logic_error(
"TestServiceRegistry::getLoadManager() not implemented");
170 throw std::logic_error(
"TestServiceRegistry::getValidations() not implemented");
176 throw std::logic_error(
"TestServiceRegistry::validators() not implemented");
182 throw std::logic_error(
"TestServiceRegistry::validatorSites() not implemented");
188 throw std::logic_error(
"TestServiceRegistry::validatorManifests() not implemented");
194 throw std::logic_error(
"TestServiceRegistry::publisherManifests() not implemented");
213 throw std::logic_error(
"TestServiceRegistry::peerReservations() not implemented");
219 throw std::logic_error(
"TestServiceRegistry::getResourceManager() not implemented");
226 throw std::logic_error(
"TestServiceRegistry::getNodeStore() not implemented");
232 throw std::logic_error(
"TestServiceRegistry::getSHAMapStore() not implemented");
238 throw std::logic_error(
"TestServiceRegistry::getRelationalDatabase() not implemented");
245 throw std::logic_error(
"TestServiceRegistry::getInboundLedgers() not implemented");
251 throw std::logic_error(
"TestServiceRegistry::getInboundTransactions() not implemented");
257 throw std::logic_error(
"TestServiceRegistry::getAcceptedLedgerCache() not implemented");
263 throw std::logic_error(
"TestServiceRegistry::getLedgerMaster() not implemented");
269 throw std::logic_error(
"TestServiceRegistry::getLedgerCleaner() not implemented");
275 throw std::logic_error(
"TestServiceRegistry::getLedgerReplayer() not implemented");
287 throw std::logic_error(
"TestServiceRegistry::openLedger() not implemented");
293 throw std::logic_error(
"TestServiceRegistry::openLedger() const not implemented");
306 throw std::logic_error(
"TestServiceRegistry::getOrderBookDB() not implemented");
312 throw std::logic_error(
"TestServiceRegistry::getMasterTransaction() not implemented");
324 throw std::logic_error(
"TestServiceRegistry::getPathRequestManager() not implemented");
331 throw std::logic_error(
"TestServiceRegistry::getServerHandler() not implemented");
337 throw std::logic_error(
"TestServiceRegistry::getPerfLog() not implemented");
350 return logs_.journal(name);
353 boost::asio::io_context&
374 throw std::logic_error(
"TestServiceRegistry::getWalletDB() not implemented");
382 "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.
Represents the open ledger.
Tracks order books in the ledger.
Keeps track of which ledgers haven't been fully saved.
class to create database, launch online delete thread, and related SQLite database
ServiceRegistry()=default
Manages various times used by the server.
Persistency layer for NodeObject.
Singleton class that maintains performance counters and optionally writes Json-formatted data to a di...
Tracks load and resource consumption.
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
resource::Manager & getResourceManager() override
ValidatorList & getValidators() override
TestServiceRegistry()=default
ManifestCache & getPublisherManifests() override
DatabaseCon & getWalletDB() override
Retrieve the "wallet database".
boost::asio::io_context & getIOContext() 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
node_store::Database & getNodeStore() 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.