|
xrpld
|
Namespaces | |
| namespace | tests |
Classes | |
| class | Backend |
| A backend used for the NodeStore. More... | |
| class | Database |
| Persistency layer for NodeObject. More... | |
| class | DatabaseRotating |
| class | BatchWriter |
| Batch-writing assist logic. More... | |
| class | DatabaseNodeImp |
| class | DatabaseRotatingImp |
| class | DecodedBlob |
| Parsed key/value blob into NodeObject components. More... | |
| class | EncodedBlob |
| Convert a NodeObject from in-memory to database format. More... | |
| class | ManagerImp |
| struct | varint_traits |
| struct | varint_traits< T, true > |
| class | DummyScheduler |
| Simple NodeStore Scheduler that just performs the tasks synchronously. More... | |
| class | Factory |
| Base class for backend factories. More... | |
| class | Manager |
| Singleton for managing NodeStore factories and back ends. More... | |
| struct | FetchReport |
| Contains information about a fetch operation. More... | |
| struct | BatchWriteReport |
| Contains information about a batch write operation. More... | |
| class | Scheduler |
| Scheduling for asynchronous backend activity. More... | |
| struct | Task |
| Derived classes perform scheduled tasks. More... | |
| struct | MemoryDB |
| class | MemoryFactory |
| class | MemoryBackend |
| class | NuDBBackend |
| class | NuDBFactory |
| class | NullBackend |
| class | NullFactory |
| class | Backend_test |
| class | NodeStoreBasic_test |
| class | Database_test |
| class | Progress |
| class | NuDBFactory_test |
| struct | LessThan |
| Binary function that satisfies the strict-weak-ordering requirement. More... | |
| class | TestBase |
| class | Sequence |
| class | Timing_test |
Typedefs | |
| using | Batch = std::vector<std::shared_ptr<NodeObject>> |
| A batch of NodeObjects to write at once. | |
Enumerations | |
| enum class | FetchType { Synchronous , Async } |
| enum class | Status { Ok = 0 , NotFound = 1 , DataCorrupt = 2 , Unknown = 3 , BackendError = 4 , CustomCode = 100 } |
| Return codes from Backend operations. More... | |
Functions | |
| template<class BufferFactory> | |
| std::pair< void const *, std::size_t > | lz4Decompress (void const *in, std::size_t inSize, BufferFactory &&bf) |
| template<class BufferFactory> | |
| std::pair< void const *, std::size_t > | lz4Compress (void const *in, std::size_t inSize, BufferFactory &&bf) |
| template<class BufferFactory> | |
| std::pair< void const *, std::size_t > | nodeobjectDecompress (void const *in, std::size_t inSize, BufferFactory &&bf) |
| template<class = void> | |
| void const * | zero32 () |
| template<class BufferFactory> | |
| std::pair< void const *, std::size_t > | nodeobjectCompress (void const *in, std::size_t inSize, BufferFactory &&bf) |
| template<class = void> | |
| void | filterInner (void *in, std::size_t inSize) |
| template<class = void> | |
| std::size_t | readVarint (void const *buf, std::size_t buflen, std::size_t &t) |
| template<class T, std::enable_if_t< std::is_unsigned_v< T > > * = nullptr> | |
| std::size_t | sizeVarint (T v) |
| template<class = void> | |
| std::size_t | writeVarint (void *p0, std::size_t v) |
| template<class T, std::enable_if_t< std::is_same_v< T, varint > > * = nullptr> | |
| void | read (nudb::detail::istream &is, std::size_t &u) |
| template<class T, std::enable_if_t< std::is_same_v< T, varint > > * = nullptr> | |
| void | write (nudb::detail::ostream &os, std::size_t t) |
| void | registerMemoryFactory (Manager &manager) |
| void | registerNuDBFactory (Manager &manager) |
| void | registerNullFactory (Manager &manager) |
| BEAST_DEFINE_TESTSUITE (Backend, nodestore, xrpl) | |
| BEAST_DEFINE_TESTSUITE (NodeStoreBasic, nodestore, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Database, nodestore, xrpl) | |
| std::map< std::string, std::string, boost::beast::iless > | parseArgs (std::string const &s) |
| BEAST_DEFINE_TESTSUITE (NuDBFactory, xrpl_core, xrpl) | |
| bool | isSame (std::shared_ptr< NodeObject > const &lhs, std::shared_ptr< NodeObject > const &rhs) |
| Returns true if objects are identical. | |
| std::unique_ptr< Backend > | makeBackend (Section const &config, Scheduler &scheduler, beast::Journal journal) |
| template<class Generator> | |
| static void | rngcpy (void *buffer, std::size_t bytes, Generator &g) |
| BEAST_DEFINE_TESTSUITE_MANUAL_PRIO (Timing, nodestore, xrpl, 1) | |
Variables | |
| static constexpr auto | kBatchWritePreallocationSize = 256 |
| static constexpr auto | kBatchWriteLimitSize = 65536 |
| MemoryFactory * | gMemoryFactory = nullptr |
A batch of NodeObjects to write at once.
Definition at line 32 of file nodestore/Types.h.
|
strong |
| Enumerator | |
|---|---|
| Synchronous | |
| Async | |
Definition at line 9 of file include/xrpl/nodestore/Scheduler.h.
|
strong |
Return codes from Backend operations.
| Enumerator | |
|---|---|
| Ok | |
| NotFound | |
| DataCorrupt | |
| Unknown | |
| BackendError | |
| CustomCode | |
Definition at line 21 of file nodestore/Types.h.
| std::pair< void const *, std::size_t > xrpl::NodeStore::lz4Decompress | ( | void const * | in, |
| std::size_t | inSize, | ||
| BufferFactory && | bf ) |
| std::pair< void const *, std::size_t > xrpl::NodeStore::lz4Compress | ( | void const * | in, |
| std::size_t | inSize, | ||
| BufferFactory && | bf ) |
| std::pair< void const *, std::size_t > xrpl::NodeStore::nodeobjectDecompress | ( | void const * | in, |
| std::size_t | inSize, | ||
| BufferFactory && | bf ) |
| void const * xrpl::NodeStore::zero32 | ( | ) |
| std::pair< void const *, std::size_t > xrpl::NodeStore::nodeobjectCompress | ( | void const * | in, |
| std::size_t | inSize, | ||
| BufferFactory && | bf ) |
| void xrpl::NodeStore::filterInner | ( | void * | in, |
| std::size_t | inSize ) |
| std::size_t xrpl::NodeStore::readVarint | ( | void const * | buf, |
| std::size_t | buflen, | ||
| std::size_t & | t ) |
| std::size_t xrpl::NodeStore::sizeVarint | ( | T | v | ) |
| std::size_t xrpl::NodeStore::writeVarint | ( | void * | p0, |
| std::size_t | v ) |
| void xrpl::NodeStore::read | ( | nudb::detail::istream & | is, |
| std::size_t & | u ) |
| void xrpl::NodeStore::write | ( | nudb::detail::ostream & | os, |
| std::size_t | t ) |
| void xrpl::NodeStore::registerMemoryFactory | ( | Manager & | manager | ) |
Definition at line 75 of file MemoryFactory.cpp.
| void xrpl::NodeStore::registerNuDBFactory | ( | Manager & | manager | ) |
Definition at line 439 of file NuDBFactory.cpp.
| void xrpl::NodeStore::registerNullFactory | ( | Manager & | manager | ) |
Definition at line 121 of file NullFactory.cpp.
| xrpl::NodeStore::BEAST_DEFINE_TESTSUITE | ( | NodeStoreBasic | , |
| nodestore | , | ||
| xrpl | ) |
| std::map< std::string, std::string, boost::beast::iless > xrpl::NodeStore::parseArgs | ( | std::string const & | s | ) |
Definition at line 258 of file import_test.cpp.
| xrpl::NodeStore::BEAST_DEFINE_TESTSUITE | ( | NuDBFactory | , |
| xrpl_core | , | ||
| xrpl | ) |
| bool xrpl::NodeStore::isSame | ( | std::shared_ptr< NodeObject > const & | lhs, |
| std::shared_ptr< NodeObject > const & | rhs ) |
Returns true if objects are identical.
Definition at line 37 of file TestBase.h.
| std::unique_ptr< Backend > xrpl::NodeStore::makeBackend | ( | Section const & | config, |
| Scheduler & | scheduler, | ||
| beast::Journal | journal ) |
Definition at line 50 of file Timing_test.cpp.
|
static |
Definition at line 58 of file Timing_test.cpp.
| xrpl::NodeStore::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO | ( | Timing | , |
| nodestore | , | ||
| xrpl | , | ||
| 1 | ) |
|
staticconstexpr |
Definition at line 12 of file nodestore/Types.h.
|
staticconstexpr |
Definition at line 18 of file nodestore/Types.h.
| MemoryFactory* xrpl::NodeStore::gMemoryFactory = nullptr |
Definition at line 72 of file MemoryFactory.cpp.