|
xrpld
|


Public Member Functions | |
| MemoryFactory (Manager &manager) | |
| std::string | getName () const override |
| Retrieve the name of this factory. | |
| std::unique_ptr< Backend > | createInstance (size_t keyBytes, Section const &keyValues, std::size_t burstSize, Scheduler &scheduler, beast::Journal journal) override |
| Create an instance of this factory's backend. | |
| MemoryDB & | open (std::string const &path) |
| virtual std::unique_ptr< Backend > | createInstance (size_t keyBytes, Section const ¶meters, std::size_t burstSize, Scheduler &scheduler, nudb::context &context, beast::Journal journal) |
| Create an instance of this factory's backend. | |
Private Attributes | |
| std::mutex | mutex_ |
| std::map< std::string, MemoryDB, boost::beast::iless > | map_ |
| Manager & | manager_ |
Definition at line 38 of file MemoryFactory.cpp.
|
explicit |
Definition at line 197 of file MemoryFactory.cpp.
|
nodiscardoverridevirtual |
Retrieve the name of this factory.
Implements xrpl::node_store::Factory.
Definition at line 203 of file MemoryFactory.cpp.
|
overridevirtual |
Create an instance of this factory's backend.
| keyBytes | The fixed number of bytes per key. |
| parameters | A set of key/value configuration pairs. |
| burstSize | Backend burst size in bytes. |
| scheduler | The scheduler to use for running tasks. |
Implements xrpl::node_store::Factory.
Definition at line 209 of file MemoryFactory.cpp.
| MemoryDB & xrpl::node_store::MemoryFactory::open | ( | std::string const & | path | ) |
Definition at line 60 of file MemoryFactory.cpp.
|
virtualinherited |
Create an instance of this factory's backend.
| keyBytes | The fixed number of bytes per key. |
| parameters | A set of key/value configuration pairs. |
| burstSize | Backend burst size in bytes. |
| scheduler | The scheduler to use for running tasks. |
| context | The context used by database. |
Reimplemented in xrpl::node_store::NuDBFactory.
|
private |
Definition at line 41 of file MemoryFactory.cpp.
|
private |
Definition at line 42 of file MemoryFactory.cpp.
|
private |
Definition at line 43 of file MemoryFactory.cpp.