3#include "etl/ETLState.hpp"
5#include <boost/json/object.hpp>
38 [[nodiscard]]
virtual boost::json::object
46 [[nodiscard]]
virtual bool
54 [[nodiscard]]
virtual bool
61 [[nodiscard]]
virtual std::optional<ETLState>
69 [[nodiscard]]
virtual std::uint32_t
This is a base class for any ETL service implementations.
Definition ETLServiceInterface.hpp:17
virtual bool isCorruptionDetected() const =0
Check whether Clio detected DB corruptions.
virtual std::uint32_t lastCloseAgeSeconds() const =0
Get time passed since last ledger close, in seconds.
virtual boost::json::object getInfo() const =0
Get state of ETL as a JSON object.
virtual bool isAmendmentBlocked() const =0
Check for the amendment blocked state.
virtual void stop()=0
Stop the ETL service.
virtual void run()=0
Start all components to run ETL service.
virtual std::optional< ETLState > getETLState() const =0
Get the etl nodes' state.