|
Clio
develop
The XRP Ledger API server.
|


Public Member Functions | |
| Monitor (util::async::AnyExecutionContext ctx, std::shared_ptr< BackendInterface > backend, std::shared_ptr< NetworkValidatedLedgersInterface > validatedLedgers, uint32_t startSequence, std::chrono::steady_clock::duration dbStalledReportDelay) | |
| void | notifySequenceLoaded (uint32_t seq) override |
| Allows the loading process to notify of a freshly committed ledger. | |
| void | notifyWriteConflict (uint32_t seq) override |
| Notifies the monitor of a write conflict. | |
| void | run (std::chrono::steady_clock::duration repeatInterval) override |
| Run the monitor service. | |
| void | stop () override |
| Stops the monitor service. | |
| boost::signals2::scoped_connection | subscribeToNewSequence (NewSequenceSignalType::slot_type const &subscriber) override |
| Allows clients to get notified when a new ledger becomes available in Clio's database. | |
| boost::signals2::scoped_connection | subscribeToDbStalled (DbStalledSignalType::slot_type const &subscriber) override |
| Allows clients to get notified when no database update is detected for a configured period. | |
Additional Inherited Members | |
| Public Types inherited from etl::MonitorInterface | |
| using | NewSequenceSignalType = boost::signals2::signal<void(uint32_t)> |
| Signal fired with the sequence of each new ledger found in the database. | |
| using | DbStalledSignalType = boost::signals2::signal<void()> |
| Signal fired when no database update is detected for a configured period. | |
| Static Public Attributes inherited from etl::MonitorInterface | |
| static constexpr auto | kDefaultRepeatInterval = std::chrono::seconds{1} |
| Default interval between checks of the database for new ledgers. | |
|
overridevirtual |
Allows the loading process to notify of a freshly committed ledger.
| seq | The ledger sequence loaded |
Implements etl::MonitorInterface.
|
overridevirtual |
Notifies the monitor of a write conflict.
| seq | The sequence number of the ledger that encountered a write conflict |
Implements etl::MonitorInterface.
|
overridevirtual |
Run the monitor service.
| repeatInterval | The interval between attempts to check the database for new ledgers |
Implements etl::MonitorInterface.
|
overridevirtual |
Stops the monitor service.
Implements etl::MonitorInterface.
|
overridevirtual |
Allows clients to get notified when no database update is detected for a configured period.
| subscriber | The slot to connect |
Implements etl::MonitorInterface.
|
overridevirtual |
Allows clients to get notified when a new ledger becomes available in Clio's database.
| subscriber | The slot to connect |
Implements etl::MonitorInterface.